diff --git a/static/assets/app.css b/static/assets/app.css index 3f00a5fc8..addb5654b 100644 --- a/static/assets/app.css +++ b/static/assets/app.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e1e8f0}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}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,samp,pre{font-family:JetBrains Mono,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-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,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#91a4b7}input::placeholder,textarea::placeholder{opacity:1;color:#91a4b7}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}:focus,button:focus{outline:none}menu{margin:0;padding:0}*,:before,:after{--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: rgb(101 131 255 / .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: rgb(101 131 255 / .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}}.button-base{display:inline-flex;align-items:center;white-space:nowrap;border-radius:.5rem;border-width:1px;border-color:transparent;padding:.5rem 1.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500}.button-blue{border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.button-blue:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.button-blue:focus{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.button-red{border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(219 25 32 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.button-red:hover{--tw-bg-opacity: 1;background-color:rgb(188 18 39 / var(--tw-bg-opacity))}.button-red:focus{--tw-bg-opacity: 1;background-color:rgb(188 18 39 / var(--tw-bg-opacity))}.button-gray{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.button-gray:hover{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.button-gray:focus{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.button-outlined-blue{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(245 247 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.button-outlined-blue:hover{--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}.button-outlined-blue:focus{--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}.button-outlined-red{--tw-border-opacity: 1;border-color:rgb(219 25 32 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}.button-outlined-red:hover{--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity))}.button-outlined-red:focus{--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity))}.button-outlined-gray{--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.button-outlined-gray:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-outlined-gray:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-base:disabled,.button-base.disabled{pointer-events:none;cursor:default;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(145 164 183 / var(--tw-text-opacity))}.button-small{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity));padding:.25rem .5rem;--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.button-small:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-small:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-square-icon{display:flex;align-items:center;justify-content:center;padding:.5rem}.button-square-icon i{font-size:1.25rem;line-height:1.75rem;line-height:1}.icon-button{display:flex;align-items:center;justify-content:center;border-radius:9999px;padding:.25rem;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.icon-button:hover{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}.icon-button:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.icon-button:disabled,.icon-button.disabled{pointer-events:none;cursor:default;--tw-text-opacity: 1;color:rgb(202 213 224 / var(--tw-text-opacity))}.icon-button i{line-height:1}.icon-outlined-button{border-radius:9999px;border-width:2px}.\!link{font-weight:500;--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity));text-decoration-line:underline}.\!link:hover{text-decoration-line:none}.link{font-weight:500;--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity));text-decoration-line:underline}.link:hover{text-decoration-line:none}.input{width:100%;border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity));padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.input::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}.input::placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}:not(.phx-no-feedback).show-errors .input{--tw-border-opacity: 1;border-color:rgb(241 163 166 / var(--tw-border-opacity))}.input[type=color]{width:4rem;padding-top:0;padding-bottom:0}.input-range{height:8px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.input-range::-webkit-slider-thumb{width:20px;height:20px;cursor:pointer;-webkit-appearance:none;appearance:none;border-radius:.75rem;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}.input-range::-webkit-slider-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.input-range::-moz-range-thumb{width:20px;height:20px;cursor:pointer;-moz-appearance:none;appearance:none;border-radius:.75rem;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}.input-range::-moz-range-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}select.input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01Ljk5OTg5IDQuOTc2NzFMMTAuMTI0OSAwLjg1MTcwOEwxMS4zMDMyIDIuMDMwMDRMNS45OTk4OSA3LjMzMzM3TDAuNjk2NTU1IDIuMDMwMDRMMS44NzQ4OSAwLjg1MTcwOEw1Ljk5OTg5IDQuOTc2NzFaIiBmaWxsPSIjNjE3NThBIi8+Cjwvc3ZnPgo=);background-repeat:no-repeat;background-position:center right 10px;background-size:10px;padding-right:28px}.radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:20px;height:20px;cursor:pointer;background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='10' cy='10' r='9.5' stroke='%23CAD5E0' fill='white' /%3e%3c/svg%3e");background-size:100% 100%;background-position:center;background-repeat:no-repeat}.radio:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='10' cy='10' r='9.5' stroke='%233E64FF' fill='white' /%3e%3ccircle cx='10' cy='10' r='6' fill='%233E64FF' /%3e%3c/svg%3e")}.checkbox{height:1.25rem;width:1.25rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.checkbox:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}.tiny-scrollbar::-webkit-scrollbar{width:.4rem;height:.4rem}.tiny-scrollbar::-webkit-scrollbar-thumb{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.tiny-scrollbar::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.tabs{display:flex;width:100%;overflow-x:auto}.tabs .tab{display:flex;align-items:center}.tabs .tab>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.tabs .tab{white-space:nowrap;border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(240 245 249 / var(--tw-border-opacity));padding:.5rem .75rem;--tw-text-opacity: 1;color:rgb(145 164 183 / var(--tw-text-opacity))}.tabs .tab.active{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.error-box{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(233 117 121 / var(--tw-text-opacity))}.info-box{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));padding:1rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-left-3{left:-.75rem}.-right-2{right:-.5rem}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-2{bottom:.5rem}.bottom-4{bottom:1rem}.bottom-\[0\.4rem\]{bottom:.4rem}.left-0{left:0}.left-\[64px\]{left:64px}.right-0{right:0}.right-1{right:.25rem}.right-1\.5{right:.375rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-6{right:1.5rem}.right-8{right:2rem}.right-\[1\.5rem\]{right:1.5rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1{top:.25rem}.top-1\.5{top:.375rem}.top-3{top:.75rem}.top-4{top:1rem}.top-5{top:1.25rem}.top-6{top:1.5rem}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-\[10000\]{z-index:10000}.z-\[1000\]{z-index:1000}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.z-\[500\]{z-index:500}.z-\[600\]{z-index:600}.z-\[90\]{z-index:90}.-m-1{margin:-.25rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-auto{margin:auto}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-2\.5{margin-left:.625rem;margin-right:.625rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mb-1{margin-bottom:-.25rem}.-mb-2{margin-bottom:-.5rem}.-ml-0{margin-left:-0px}.-ml-0\.5{margin-left:-.125rem}.-ml-1{margin-left:-.25rem}.-ml-1\.5{margin-left:-.375rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-mt-1{margin-top:-.25rem}.-mt-2{margin-top:-.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-32{margin-bottom:8rem}.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-5{margin-left:1.25rem}.ml-\[-1px\]{margin-left:-1px}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-0\.5{margin-right:.125rem}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-\[3px\]{margin-right:3px}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-0{height:0px}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-52{height:13rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-80{height:20rem}.h-96{height:24rem}.h-\[10px\]{height:10px}.h-\[12px\]{height:12px}.h-\[150px\]{height:150px}.h-\[20rem\]{height:20rem}.h-\[30px\]{height:30px}.h-full{height:100%}.h-screen{height:100vh}.max-h-52{max-height:13rem}.max-h-80{max-height:20rem}.max-h-\[300px\]{max-height:300px}.max-h-\[500px\]{max-height:500px}.max-h-full{max-height:100%}.min-h-\[30rem\]{min-height:30rem}.min-h-\[38px\]{min-height:38px}.w-0{width:0px}.w-1{width:.25rem}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-5{width:1.25rem}.w-5\/6{width:83.333333%}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-\[10px\]{width:10px}.w-\[12px\]{width:12px}.w-\[17rem\]{width:17rem}.w-\[20ch\]{width:20ch}.w-\[56px\]{width:56px}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.min-w-\[650px\]{min-width:650px}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-\[400px\]{max-width:400px}.max-w-\[600px\]{max-width:600px}.max-w-\[75\%\]{max-width:75%}.max-w-full{max-width:100%}.max-w-screen-lg{max-width:1024px}.max-w-screen-md{max-width:768px}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/2{flex-basis:50%}.basis-4\/5{flex-basis:80%}.-translate-x-full{--tw-translate-x: -100%;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%;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%;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%;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))}.transform{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 ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.scroll-mt-\[50px\]{scroll-margin-top:50px}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[minmax\(0\,_0\.5fr\)_minmax\(0\,_0\.75fr\)_minmax\(0\,_0\.5fr\)_minmax\(0\,_0\.5fr\)_minmax\(0\,_0\.5fr\)\]{grid-template-columns:minmax(0,.5fr) minmax(0,.75fr) minmax(0,.5fr) minmax(0,.5fr) minmax(0,.5fr)}.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}.flex-nowrap{flex-wrap:nowrap}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-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}.gap-0{gap:0px}.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}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-12>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(3rem * var(--tw-space-x-reverse));margin-left:calc(3rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-10>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2.5rem * var(--tw-space-y-reverse))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.space-x-reverse>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-b-2xl{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-\[3px\]{border-width:3px}.border-\[5px\]{border-width:5px}.border-x{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-l-\[1px\]{border-left-width:1px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-black\/10{border-color:#0000001a}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(139 162 255 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(101 131 255 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(240 245 249 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(145 164 183 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(97 117 138 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(48 66 84 / var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity: 1;border-color:rgb(13 24 41 / var(--tw-border-opacity))}.border-green-bright-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity))}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(241 163 166 / var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(233 117 121 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(226 71 77 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity: 1;border-color:rgb(255 220 178 / var(--tw-border-opacity))}.border-yellow-bright-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(216 224 255 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(139 162 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(101 131 255 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.bg-gray-200\/50{background-color:#e1e8f080}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(202 213 224 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(97 117 138 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(48 66 84 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(13 24 41 / var(--tw-bg-opacity))}.bg-gray-900\/95{background-color:#0d1829f2}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(233 244 233 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(119 184 118 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(74 161 72 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(29 137 26 / var(--tw-bg-opacity))}.bg-green-bright-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(248 209 210 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(233 117 121 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(226 71 77 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(255 247 236 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(255 238 217 / var(--tw-bg-opacity))}.bg-yellow-600{--tw-bg-opacity: 1;background-color:rgb(255 168 63 / var(--tw-bg-opacity))}.bg-yellow-bright-200{--tw-bg-opacity: 1;background-color:rgb(254 240 138 / var(--tw-bg-opacity))}.fill-blue-600{fill:#3e64ff}.p-0{padding:0}.p-1{padding:.25rem}.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}.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-2\.5{padding-left:.625rem;padding-right:.625rem}.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-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[1px\]{padding-left:1px;padding-right:1px}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pl-0{padding-left:0}.pl-0\.5{padding-left:.125rem}.pl-1{padding-left:.25rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-20{padding-right:5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-baseline{vertical-align:baseline}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.align-text-bottom{vertical-align:text-bottom}.font-logo{font-family:Red Hat Text}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.75em\]{font-size:.75em}.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-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.not-italic{font-style:normal}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.tracking-wider{letter-spacing:.05em}.text-blue-400{--tw-text-opacity: 1;color:rgb(139 162 255 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(101 131 255 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(45 76 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(31 55 183 / var(--tw-text-opacity))}.text-brand-pink{--tw-text-opacity: 1;color:rgb(228 76 117 / var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity: 1;color:rgb(240 245 249 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(225 232 240 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(202 213 224 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(145 164 183 / var(--tw-text-opacity))}.text-gray-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(48 66 84 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}.text-green-300{--tw-text-opacity: 1;color:rgb(165 208 163 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(119 184 118 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(13 98 25 / var(--tw-text-opacity))}.text-green-bright-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(233 117 121 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(226 71 77 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 7 43 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(255 203 140 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(255 168 63 / var(--tw-text-opacity))}.text-yellow-bright-300{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity))}.text-yellow-bright-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px 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-\[0_15px_99px_-0px_rgba\(12\,24\,41\,0\.15\)\]{--tw-shadow: 0 15px 99px -0px rgba(12,24,41,.15);--tw-shadow-colored: 0 15px 99px -0px 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-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 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-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(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)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));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)}.grayscale{--tw-grayscale: grayscale(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)}.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-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-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-200{transition-delay:.2s}.duration-100{transition-duration:.1s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.bg-editor{background-color:#282c34}body[data-editor-theme=light] .bg-editor{background-color:#fafafa}.font-editor{font-family:JetBrains Mono,Droid Sans Mono,"monospace";font-variant-ligatures:none;font-size:14px}.shadow-custom-1{box-shadow:10px 5px 25px -8px #0003}.flip-horizontally{transform:scaleY(-1)}.fade-in{animation:fade-in-frames .2s ease-out}.fade-out{animation:fade-out-frames .2s ease-in}@keyframes fade-in-frames{0%{opacity:0}to{opacity:1}}@keyframes fade-out-frames{0%{opacity:1}to{opacity:0}}.delay-200{animation:delay-frames .2s}@keyframes delay-frames{0%{opacity:0;height:0;width:0}99%{opacity:0;height:0;width:0}}iframe[hidden],.phx-no-feedback.invalid-feedback,.phx-no-feedback .invalid-feedback{display:none}.phx-click-loading{opacity:.5;transition:opacity 1s ease-out}.phx-loading{cursor:wait}.markdown{--tw-text-opacity: 1;color:rgb(48 66 84 / var(--tw-text-opacity))}.markdown h1{margin-top:2rem;margin-bottom:1rem;font-size:1.875rem;line-height:2.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h2{margin-top:2rem;margin-bottom:1rem;font-size:1.5rem;line-height:2rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h3{margin-top:2rem;margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h4{margin-top:2rem;margin-bottom:1rem;font-size:1.125rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h5,.markdown h6{margin-top:2rem;margin-bottom:1rem;font-size:1rem;line-height:1.5rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown p{margin-top:1rem;margin-bottom:1rem}.markdown ul{margin-top:1.25rem;margin-bottom:1.25rem;margin-left:2rem;list-style-position:outside;list-style-type:disc}.markdown ol{margin-top:1.25rem;margin-bottom:1.25rem;margin-left:2rem;list-style-position:outside;list-style-type:decimal}.markdown ul ul{list-style-type:circle}.markdown ul ul ul{list-style-type:square}.markdown .task-list-item{list-style-type:none}.markdown .task-list-item input[type=checkbox]{margin-left:-1.1rem;vertical-align:middle}.markdown ul>li,.markdown ol>li{margin-top:.25rem;margin-bottom:.25rem}.markdown li>ul,.markdown li>ol{margin-top:0;margin-bottom:0}.markdown blockquote{margin-top:1rem;margin-bottom:1rem;border-left-width:4px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.markdown a{font-weight:500;--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity));text-decoration-line:underline}.markdown a:hover{text-decoration-line:none}.markdown img{margin-left:auto;margin-right:auto;margin-top:1rem;margin-bottom:1rem}.markdown table::-webkit-scrollbar{width:.4rem;height:.4rem}.markdown table::-webkit-scrollbar-thumb{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.markdown table::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.markdown table{margin-top:1rem;margin-bottom:1rem;width:100%;border-radius:.5rem;box-shadow:0 0 25px -5px #0000001a,0 0 10px -5px #0000000a}.markdown table thead{text-align:left}.markdown table thead tr,.markdown table tbody tr{border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity))}.markdown table tbody tr:last-child{border-bottom-width:0px}.markdown table tbody tr:hover{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.markdown table th{padding:.75rem 1.5rem;font-weight:600;--tw-text-opacity: 1;color:rgb(48 66 84 / var(--tw-text-opacity))}.markdown table td{padding:.75rem 1.5rem;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.markdown table th[align=center],.markdown table td[align=center]{text-align:center}.markdown table th[align=right],.markdown table td[align=right]{text-align:right}.markdown code{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity));padding:.1rem .5rem;vertical-align:middle;font-family:JetBrains Mono,monospace;font-size:.875rem;line-height:1.25rem;font-variant-ligatures:none}.markdown pre{display:flex;overflow:hidden}.markdown pre>code{flex:1 1 0%;overflow:auto;border-radius:.5rem;padding:1rem;vertical-align:middle;background-color:#282c34}body[data-editor-theme=light] .markdown pre>code{background-color:#fafafa}.markdown pre>code{color:#c4cad6;font-family:JetBrains Mono,Droid Sans Mono,"monospace";font-variant-ligatures:none;font-size:14px}.markdown kbd{border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity));padding:.2rem .5rem;vertical-align:middle;font-family:JetBrains Mono,monospace;font-size:.75rem;line-height:1rem;box-shadow:#cad5e0 0 -2px inset}.markdown>:first-child{margin-top:0}.markdown>:last-child{margin-bottom:0}.markdown .katex-display{margin-top:2rem;margin-bottom:2rem}[data-el-cell][data-type=markdown] .markdown h1,[data-el-cell][data-type=markdown] .markdown h2{font-size:0}[data-el-cell][data-type=markdown] .markdown h1:after,[data-el-cell][data-type=markdown] .markdown h2:after{font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(233 117 121 / var(--tw-text-opacity));content:"warning: heading levels 1 and 2 are reserved for notebook and section names, please use heading 3 and above."}:root{--ansi-color-black: black;--ansi-color-red: #ca1243;--ansi-color-green: #50a14f;--ansi-color-yellow: #c18401;--ansi-color-blue: #4078f2;--ansi-color-magenta: #a726a4;--ansi-color-cyan: #0184bc;--ansi-color-white: white;--ansi-color-light-black: #5c6370;--ansi-color-light-red: #e45649;--ansi-color-light-green: #34d399;--ansi-color-light-yellow: #fde68a;--ansi-color-light-blue: #61afef;--ansi-color-light-magenta: #c678dd;--ansi-color-light-cyan: #56b6c2;--ansi-color-light-white: white}body[data-editor-theme=default] .editor-theme-aware-ansi{--ansi-color-black: black;--ansi-color-red: #be5046;--ansi-color-green: #98c379;--ansi-color-yellow: #e5c07b;--ansi-color-blue: #61afef;--ansi-color-magenta: #c678dd;--ansi-color-cyan: #56b6c2;--ansi-color-white: white;--ansi-color-light-black: #5c6370;--ansi-color-light-red: #e06c75;--ansi-color-light-green: #34d399;--ansi-color-light-yellow: #fde68a;--ansi-color-light-blue: #93c5fd;--ansi-color-light-magenta: #f472b6;--ansi-color-light-cyan: #6be3f2;--ansi-color-light-white: white}[phx-hook=Highlight][data-highlighted]>[data-source]{display:none}[phx-hook=Dropzone][data-js-dragging]{--tw-border-opacity: 1;border-color:rgb(178 193 255 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}[data-el-session]:not([data-js-insert-mode]) [data-el-insert-mode-indicator]{visibility:hidden}[data-el-session]:not([data-js-insert-mode]) [data-el-cell][data-type=markdown] [data-el-editor-box],[data-el-session][data-js-insert-mode] [data-el-cell][data-type=markdown]:not([data-js-focused]) [data-el-editor-box]{display:none}[data-el-session][data-js-insert-mode] [data-el-cell][data-js-focused] [data-el-enable-insert-mode-button]{display:none}[data-el-session]:not([data-js-insert-mode]) [data-el-cell][data-type=markdown][data-js-focused] [data-el-insert-image-button]{display:none}[data-el-notebook-headline]:hover [data-el-heading],[data-el-section-headline]:hover [data-el-heading]{--tw-border-opacity: 1;border-color:rgb(216 224 255 / var(--tw-border-opacity))}[data-el-notebook-headline][data-js-focused] [data-el-heading],[data-el-section-headline][data-js-focused] [data-el-heading]{--tw-border-opacity: 1;border-color:rgb(178 193 255 / var(--tw-border-opacity))}[data-el-section-headline]:not(:hover):not([data-js-focused]) [data-el-heading]+[data-el-section-actions]:not(:focus-within){display:none}[data-el-section][data-js-collapsed] [data-el-section-collapse-button],[data-el-section]:not([data-js-collapsed]) [data-el-section-headline]:not(:hover):not([data-js-focused]) [data-el-section-collapse-button],[data-el-section]:not([data-js-collapsed]) [data-el-section-expand-button],[data-el-session]:not([data-js-view=code-zen]) [data-el-section][data-js-collapsed]>[data-el-section-content],[data-el-section]:not([data-js-collapsed])>[data-el-section-subheadline-collapsed]{display:none}[data-el-session]:not([data-js-dragging]) [data-el-insert-drop-area]{display:none}[data-el-session]:not([data-js-dragging=external]) [data-el-files-drop-area]{display:none}[data-el-session][data-js-dragging=external] [data-el-files-add-button]{display:none}[data-el-cell][data-js-focused]{border-color:rgb(178 193 255 / var(--tw-border-opacity));--tw-border-opacity: 1}[data-el-cell]:not([data-js-focused]) [data-el-actions]:not(:focus-within){opacity:0}[data-el-cell]:not([data-js-focused]) [data-el-actions]:not([data-primary]):not(:focus-within){pointer-events:none}[data-el-cell]:not([data-js-focused])[data-js-hover] [data-el-actions][data-primary]{pointer-events:auto;opacity:1}[data-el-cell][data-js-changed] [data-el-cell-status]{font-style:italic}[data-el-cell]:not([data-js-changed]) [data-el-cell-status] [data-el-change-indicator]{visibility:hidden}[data-el-sections-list-item][data-js-is-viewed]{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}[data-el-cell]:not([data-js-focused])[data-js-hover] [data-el-cell-focus-indicator]{--tw-bg-opacity: 1;background-color:rgb(216 224 255 / var(--tw-bg-opacity))}[data-el-cell][data-js-focused] [data-el-cell-focus-indicator]{--tw-bg-opacity: 1;background-color:rgb(178 193 255 / var(--tw-bg-opacity))}[data-el-cell][data-js-amplified] [data-el-outputs-container]{margin:0;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-top:4rem;padding-bottom:4rem;width:90vw;position:relative;left:calc(-45vw + 50%)}[data-el-cell][data-js-amplified] [data-el-amplify-outputs-button] .icon-button{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}[data-el-cell][data-type=smart]:not([data-js-source-visible]) [data-el-editor-box]{height:0px;overflow:hidden}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-ui-box]{display:none}[data-el-session] [data-el-cell][data-type=setup]:not([data-eval-validity=fresh]:not([data-js-empty])):not([data-eval-errored]):not([data-js-changed]):not([data-js-focused]) [data-el-editor-box]{height:0px;overflow:hidden}[data-el-session] [data-el-cell][data-type=setup][data-js-focused] [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-eval-validity=fresh]:not([data-js-empty]) [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-eval-errored] [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-js-changed] [data-el-info-box]{display:none}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-toggle-source-button] .icon-button{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-cell-status-container]{position:absolute;bottom:.5rem;right:.5rem}[data-el-output][data-border]>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse));--tw-divide-opacity: 1;border-color:rgb(225 232 240 / var(--tw-divide-opacity))}[data-el-output][data-border]{border-width:1px;border-top-width:0px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));padding:1rem}[data-el-output][data-border]:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem;border-top-width:1px}[data-el-output]:not([data-border])+[data-el-output][data-border]{border-top-width:1px}[data-el-output][data-border]:last-child{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem;border-bottom-width:1px}[data-el-output]:not(:first-child){margin-top:.5rem}[data-el-output][data-border]+[data-el-output][data-border]{margin-top:0}[data-el-outputs-container]>[data-el-output]:first-child{margin-top:.5rem}[data-el-session]:not([data-js-side-panel-content]) [data-el-side-panel]{display:none}[data-el-session]:not([data-js-side-panel-content=sections-list]) [data-el-sections-list]{display:none}[data-el-session]:not([data-js-side-panel-content=clients-list]) [data-el-clients-list]{display:none}[data-el-session]:not([data-js-side-panel-content=secrets-list]) [data-el-secrets-list]{display:none}[data-el-session]:not([data-js-side-panel-content=files-list]) [data-el-files-list]{display:none}[data-el-session]:not([data-js-side-panel-content=runtime-info]) [data-el-runtime-info]{display:none}[data-el-session]:not([data-js-side-panel-content=app-info]) [data-el-app-info]{display:none}[data-el-session][data-js-side-panel-content=sections-list] [data-el-sections-list-toggle],[data-el-session][data-js-side-panel-content=clients-list] [data-el-clients-list-toggle],[data-el-session][data-js-side-panel-content=secrets-list] [data-el-secrets-list-toggle],[data-el-session][data-js-side-panel-content=files-list] [data-el-files-list-toggle],[data-el-session][data-js-side-panel-content=runtime-info] [data-el-runtime-info-toggle],[data-el-session][data-js-side-panel-content=app-info] [data-el-app-info-toggle]{--tw-bg-opacity: 1;background-color:rgb(48 66 84 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}[data-el-session][data-js-side-panel-content=app-info] [data-el-app-indicator]{--tw-border-opacity: 1;border-color:rgb(48 66 84 / var(--tw-border-opacity))}[data-el-clients-list-item]:not([data-js-followed]) [data-meta=unfollow]{display:none}[data-el-clients-list-item][data-js-followed] [data-meta=follow]{display:none}[phx-hook=VirtualizedLines]:not(:hover) [data-el-clipcopy]{display:none}[data-el-session][data-js-view=code-zen] [data-el-view-toggle=code-zen],[data-el-session][data-js-view=presentation] [data-el-view-toggle=presentation],[data-el-session][data-js-view=custom] [data-el-view-toggle=custom]{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}[data-el-session][data-js-view] :is([data-el-actions],[data-el-insert-buttons]){display:none}[data-el-session][data-js-view] [data-el-views-disabled]{display:none}[data-el-session]:not([data-js-view]) [data-el-views-enabled]{display:none}[data-js-hide-output] [data-el-output]{display:none}[data-js-hide-section] :is([data-el-section-headline],[data-el-section-subheadline],[data-el-section-subheadline-collapsed]){display:none}[data-js-hide-section] [data-el-sections-container]{margin-top:0}[data-js-hide-section] [data-el-sections-container]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}[data-js-hide-markdown] [data-el-cell][data-type=markdown]{display:none}[data-js-spotlight] :is([data-el-section-headline]:not([data-js-focused]),[data-el-section-subheadline]:not([data-js-focused]),[data-el-cell]:not([data-js-focused]),[data-el-js-view-iframes] iframe:not([data-js-focused])){opacity:.1}[data-js-spotlight] :is([data-el-sidebar],[data-el-side-panel],[data-el-toggle-sidebar]){display:none}.tooltip{position:relative;display:flex;--distance: 4px;--arrow-size: 5px;--show-delay: .5s}.tooltip.distant{--distance: 28px}.tooltip.distant-medium{--distance: 10px}.tooltip:before{position:absolute;content:attr(data-tooltip);white-space:pre;text-align:center;display:block;z-index:100;background-color:#1c273c;color:#f0f5f9;font-size:12px;font-weight:500;border-radius:4px;padding:3px 12px;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:0s}.tooltip:after{content:"";position:absolute;display:block;z-index:100;border-width:var(--arrow-size);border-style:solid;border-color:#1c273c;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:0s}.tooltip:hover:before{visibility:visible;transition-delay:var(--show-delay)}.tooltip:hover:after{visibility:visible;transition-delay:var(--show-delay)}.tooltip.top:before{bottom:100%;left:50%;transform:translate(-50%,calc(1px - var(--arrow-size) - var(--distance)))}.tooltip.top:after{bottom:100%;left:50%;transform:translate(-50%,calc(0px - var(--distance)));border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tooltip.bottom:before{top:100%;left:50%;transform:translate(-50%,calc(var(--arrow-size) - 1px + var(--distance)))}.tooltip.bottom-left:before{top:100%;right:0;transform:translateY(calc(var(--arrow-size) - 1px + var(--distance)))}.tooltip.bottom:after,.tooltip.bottom-left:after{top:100%;left:50%;transform:translate(-50%,var(--distance));border-top:none;border-left-color:transparent;border-right-color:transparent}.tooltip.right:before{top:50%;left:100%;transform:translate(calc(var(--arrow-size) - 1px + var(--distance)),-50%)}.tooltip.right:after{top:50%;left:100%;transform:translate(var(--distance),-50%);border-left:none;border-top-color:transparent;border-bottom-color:transparent}.tooltip.left:before{top:50%;right:100%;transform:translate(calc(1px - var(--arrow-size) - var(--distance)),-50%)}.tooltip.left:after{top:50%;right:100%;transform:translate(calc(0px - var(--distance)),-50%);border-right:none;border-top-color:transparent;border-bottom-color:transparent}.monaco-hover p,.suggest-details p,.parameter-hints-widget p{margin-top:.5rem!important;margin-bottom:.5rem!important}.suggest-details h1,.monaco-hover h1,.parameter-hints-widget h1{margin-top:1rem;margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.suggest-details h2,.monaco-hover h2,.parameter-hints-widget h2{margin-top:1rem;margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:500}.suggest-details h3,.monaco-hover h3,.parameter-hints-widget h3{margin-top:1rem;margin-bottom:.5rem;font-weight:500}.suggest-details ul,.monaco-hover ul,.parameter-hints-widget ul{list-style-type:disc}.suggest-details ol,.monaco-hover ol,.parameter-hints-widget ol{list-style-type:decimal}.suggest-details hr,.monaco-hover hr,.parameter-hints-widget hr{margin-top:.5rem!important;margin-bottom:.5rem!important}.suggest-details blockquote,.monaco-hover blockquote,.parameter-hints-widget blockquote{margin-top:.5rem;margin-bottom:.5rem;border-left-width:4px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));padding-top:.125rem;padding-bottom:.125rem;padding-left:1rem}.suggest-details div.monaco-tokenized-source,.monaco-hover div.monaco-tokenized-source,.parameter-hints-widget div.monaco-tokenized-source{margin-top:.5rem;margin-bottom:.5rem;white-space:pre-wrap}.suggest-details,.monaco-hover,.parameter-hints-widget{z-index:100!important}.suggest-details .header p{padding-bottom:0!important;padding-top:.75rem!important}.parameter-hints-widget .markdown-docs hr{border-top:1px solid rgba(69,69,69,.5);margin-right:-8px;margin-left:-8px}.monaco-hover-content{max-width:1000px!important;max-height:300px!important}.suggest-details-container,.suggest-details{width:-moz-fit-content!important;width:fit-content!important;height:-moz-fit-content!important;height:fit-content!important;max-width:420px!important;max-height:250px!important}.suggest-details .header .type{padding-top:0!important}.docs.markdown-docs{margin:0!important}.monaco-editor .quick-input-list .monaco-list{max-height:300px!important}.monaco-cursor-widget-container{pointer-events:none;z-index:100}.monaco-cursor-widget-container .monaco-cursor-widget-cursor{pointer-events:initial;width:2px}.monaco-cursor-widget-container .monaco-cursor-widget-label{pointer-events:initial;transform:translateY(-200%);white-space:nowrap;padding:1px 8px;font-size:12px;color:#f8fafc;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:1.5s}.monaco-cursor-widget-container .monaco-cursor-widget-label:hover{visibility:visible}.monaco-cursor-widget-container .monaco-cursor-widget-cursor:hover+.monaco-cursor-widget-label{visibility:visible;transition-delay:0s}.monaco-cursor-widget-container.inline{display:flex!important}.monaco-cursor-widget-container.inline .monaco-cursor-widget-label{margin-left:2px;transform:none}.doctest-status-decoration-running,.doctest-status-decoration-success,.doctest-status-decoration-failed{height:100%;position:relative;--decoration-size: 10px}@media (min-width: 768px){.doctest-status-decoration-running,.doctest-status-decoration-success,.doctest-status-decoration-failed{--decoration-size: 12px}}.doctest-status-decoration-running:after,.doctest-status-decoration-success:after,.doctest-status-decoration-failed:after{box-sizing:border-box;border-radius:2px;content:"";display:block;height:var(--decoration-size);width:var(--decoration-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.doctest-status-decoration-running:after{--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.doctest-status-decoration-success:after{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.doctest-status-decoration-failed:after{--tw-bg-opacity: 1;background-color:rgb(233 117 121 / var(--tw-bg-opacity))}.doctest-details-widget{font-family:JetBrains Mono,Droid Sans Mono,"monospace";font-variant-ligatures:none;font-size:14px;white-space:pre;background-color:#0000000d;padding-top:6px;padding-bottom:6px;position:absolute;width:100%;overflow-y:auto}.ri-livebook-sections,.ri-livebook-runtime,.ri-livebook-shortcuts,.ri-livebook-secrets,.ri-livebook-deploy,.ri-livebook-terminal,.ri-livebook-save{vertical-align:middle;font-size:1.25rem;line-height:1.75rem}.ri-livebook-sections:before{content:"\eade"}.ri-livebook-runtime:before{content:"\ebf0"}.ri-livebook-shortcuts:before{content:"\ee72"}.ri-livebook-secrets:before{content:"\eed0"}.ri-livebook-deploy:before{content:"\f096"}.ri-livebook-terminal:before{content:"\f1f8"}.ri-livebook-save:before{content:"\f0b3"}.invalid\:input--error:invalid{--tw-border-opacity: 1;border-color:rgb(219 25 32 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}.first\:rounded-l-lg:first-child{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.last\:rounded-r-lg:last-child{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.last\:border-b-0:last-child{border-bottom-width:0px}.last\:border-r:last-child{border-right-width:1px}.checked\:translate-x-full:checked{--tw-translate-x: 100%;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))}.checked\:border-blue-600:checked{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity))}.checked\:bg-white:checked{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.empty\:hidden:empty{display:none}.focus-within\:opacity-100:focus-within{opacity:1}.hover\:z-\[11\]:hover{z-index:11}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:rounded-md:hover{border-radius:.375rem}.hover\:border-none:hover{border-style:none}.hover\:border-gray-200:hover{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity))}.hover\:border-transparent:hover{border-color:transparent}.hover\:border-white:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(245 247 255 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.hover\:bg-green-bright-50:hover{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.hover\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity))}.hover\:bg-yellow-bright-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.hover\:text-gray-50:hover{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.hover\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:no-underline:hover{text-decoration-line:none}.hover\:\!opacity-100:hover{opacity:1!important}.hover\:opacity-100:hover{opacity:1}.focus\:bg-blue-50:focus{--tw-bg-opacity: 1;background-color:rgb(245 247 255 / var(--tw-bg-opacity))}.focus\:bg-blue-700:focus{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.focus\:bg-gray-100:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.focus\:bg-green-bright-50:focus{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.focus\:bg-red-50:focus{--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity))}.focus\:bg-yellow-bright-50:focus{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.focus\:text-gray-50:focus{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.focus\:text-gray-600:focus{--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.focus\:text-gray-800:focus{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.focus\:text-white:focus{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\:ring-1:focus{--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(1px + 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\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(145 164 183 / var(--tw-ring-opacity))}.active\:bg-gray-200:active{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.group:focus-within .group-focus-within\:flex{display:flex}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:flex{display:flex}.group:hover .group-hover\:text-blue-600{--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.group:hover .group-hover\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:hover .group-hover\:ring-2{--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(2px + 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-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:block{display:block}:not(.phx-no-feedback).show-errors .phx-form-error\:border-red-600{--tw-border-opacity: 1;border-color:rgb(219 25 32 / var(--tw-border-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:text-red-600{--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:placeholder-red-600::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(219 25 32 / var(--tw-placeholder-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:placeholder-red-600::placeholder{--tw-placeholder-opacity: 1;color:rgb(219 25 32 / var(--tw-placeholder-opacity))}.phx-submit-loading.phx-submit-loading\:block,.phx-submit-loading .phx-submit-loading\:block{display:block}@media (min-width: 640px){.sm\:fixed{position:fixed}.sm\:bottom-0{bottom:0}.sm\:bottom-auto{bottom:auto}.sm\:left-0{left:0}.sm\:left-auto{left:auto}.sm\:right-0{right:0}.sm\:right-auto{right:auto}.sm\:top-0{top:0}.sm\:top-auto{top:auto}.sm\:m-auto{margin:auto}.sm\:-mb-1{margin-bottom:-.25rem}.sm\:-mt-1{margin-top:-.25rem}.sm\:mb-0{margin-bottom:0}.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:w-72{width:18rem}.sm\:-translate-y-full{--tw-translate-y: -100%;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))}.sm\:translate-y-full{--tw-translate-y: 100%;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))}.sm\:transform{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))}.sm\:scroll-mt-0{scroll-margin-top:0px}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:gap-12{gap:3rem}.sm\:gap-3{gap:.75rem}.sm\:space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.sm\:space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.sm\:p-0{padding:0}.sm\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.sm\:pl-8{padding-left:2rem}.sm\:pr-16{padding-right:4rem}}@media (min-width: 768px){.md\:static{position:static}.md\:fixed{position:fixed}.md\:absolute{position:absolute}.md\:bottom-0{bottom:0}.md\:bottom-auto{bottom:auto}.md\:left-0{left:0}.md\:left-4{left:1rem}.md\:left-auto{left:auto}.md\:right-0{right:0}.md\:right-auto{right:auto}.md\:top-0{top:0}.md\:top-auto{top:auto}.md\:-mb-1{margin-bottom:-.25rem}.md\:-mt-1{margin-top:-.25rem}.md\:mb-0{margin-bottom:0}.md\:mt-0{margin-top:0}.md\:flex{display:flex}.md\:hidden{display:none}.md\:-translate-y-full{--tw-translate-y: -100%;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))}.md\:translate-y-full{--tw-translate-y: 100%;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))}.md\:transform{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))}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-\[minmax\(0\,_2fr\)_minmax\(0\,_2fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)\]{grid-template-columns:minmax(0,2fr) minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}.md\:flex-row{flex-direction:row}.md\:flex-col{flex-direction:column}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.md\:px-12{padding-left:3rem;padding-right:3rem}.md\:px-20{padding-left:5rem;padding-right:5rem}.md\:py-2{padding-top:.5rem;padding-bottom:.5rem}.md\:py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.md\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:py-7{padding-top:1.75rem;padding-bottom:1.75rem}.md\:py-8{padding-top:2rem;padding-bottom:2rem}.md\:pl-16{padding-left:4rem}.md\:pr-0{padding-right:0}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (min-width: 1024px){.lg\:flex{display:flex}.lg\:w-1\/2{width:50%}.lg\:grow{flex-grow:1}.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\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-\[minmax\(0\,_2fr\)_minmax\(0\,_2fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)\]{grid-template-columns:minmax(0,2fr) minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}.lg\:flex-row{flex-direction:row}.lg\:justify-end{justify-content:flex-end}.lg\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:whitespace-nowrap{white-space:nowrap}.lg\:pr-4{padding-right:1rem}}@media (min-width: 1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&\>\:first-child\:focus\]\:bg-gray-100>:first-child:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.\[\&\>\:first-child\:hover\]\:bg-gray-100>:first-child:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.\[\&\>\:first-child\]\:flex>:first-child{display:flex}.\[\&\>\:first-child\]\:w-full>:first-child{width:100%}.\[\&\>\:first-child\]\:items-center>:first-child{align-items:center}.\[\&\>\:first-child\]\:space-x-3>:first-child>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.\[\&\>\:first-child\]\:whitespace-nowrap>:first-child{white-space:nowrap}.\[\&\>\:first-child\]\:px-5>:first-child{padding-left:1.25rem;padding-right:1.25rem}.\[\&\>\:first-child\]\:py-2>:first-child{padding-top:.5rem;padding-bottom:.5rem}@font-face{font-family:remixicon;src:url(./remixicon-EJ57KKHX.eot?t=1690730386070);src:url(./remixicon-EJ57KKHX.eot?t=1690730386070#iefix) format("embedded-opentype"),url(./remixicon-LVVQUEYC.woff2?t=1690730386070) format("woff2"),url(./remixicon-E3YYWUKU.woff?t=1690730386070) format("woff"),url(./remixicon-PTCXODVZ.ttf?t=1690730386070) format("truetype"),url(./remixicon-4CSUN567.svg?t=1690730386070#remixicon) format("svg");font-display:swap}[class^=ri-],[class*=" ri-"]{font-family:remixicon!important;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ri-lg{font-size:1.3333em;line-height:.75em;vertical-align:-.0667em}.ri-xl{font-size:1.5em;line-height:.6666em;vertical-align:-.075em}.ri-xxs{font-size:.5em}.ri-xs{font-size:.75em}.ri-sm{font-size:.875em}.ri-1x{font-size:1em}.ri-2x{font-size:2em}.ri-3x{font-size:3em}.ri-4x{font-size:4em}.ri-5x{font-size:5em}.ri-6x{font-size:6em}.ri-7x{font-size:7em}.ri-8x{font-size:8em}.ri-9x{font-size:9em}.ri-10x{font-size:10em}.ri-fw{text-align:center;width:1.25em}.ri-24-hours-fill:before{content:"\ea01"}.ri-24-hours-line:before{content:"\ea02"}.ri-4k-fill:before{content:"\ea03"}.ri-4k-line:before{content:"\ea04"}.ri-a-b:before{content:"\ea05"}.ri-account-box-fill:before{content:"\ea06"}.ri-account-box-line:before{content:"\ea07"}.ri-account-circle-fill:before{content:"\ea08"}.ri-account-circle-line:before{content:"\ea09"}.ri-account-pin-box-fill:before{content:"\ea0a"}.ri-account-pin-box-line:before{content:"\ea0b"}.ri-account-pin-circle-fill:before{content:"\ea0c"}.ri-account-pin-circle-line:before{content:"\ea0d"}.ri-add-box-fill:before{content:"\ea0e"}.ri-add-box-line:before{content:"\ea0f"}.ri-add-circle-fill:before{content:"\ea10"}.ri-add-circle-line:before{content:"\ea11"}.ri-add-fill:before{content:"\ea12"}.ri-add-line:before{content:"\ea13"}.ri-admin-fill:before{content:"\ea14"}.ri-admin-line:before{content:"\ea15"}.ri-advertisement-fill:before{content:"\ea16"}.ri-advertisement-line:before{content:"\ea17"}.ri-airplay-fill:before{content:"\ea18"}.ri-airplay-line:before{content:"\ea19"}.ri-alarm-fill:before{content:"\ea1a"}.ri-alarm-line:before{content:"\ea1b"}.ri-alarm-warning-fill:before{content:"\ea1c"}.ri-alarm-warning-line:before{content:"\ea1d"}.ri-album-fill:before{content:"\ea1e"}.ri-album-line:before{content:"\ea1f"}.ri-alert-fill:before{content:"\ea20"}.ri-alert-line:before{content:"\ea21"}.ri-aliens-fill:before{content:"\ea22"}.ri-aliens-line:before{content:"\ea23"}.ri-align-bottom:before{content:"\ea24"}.ri-align-center:before{content:"\ea25"}.ri-align-justify:before{content:"\ea26"}.ri-align-left:before{content:"\ea27"}.ri-align-right:before{content:"\ea28"}.ri-align-top:before{content:"\ea29"}.ri-align-vertically:before{content:"\ea2a"}.ri-alipay-fill:before{content:"\ea2b"}.ri-alipay-line:before{content:"\ea2c"}.ri-amazon-fill:before{content:"\ea2d"}.ri-amazon-line:before{content:"\ea2e"}.ri-anchor-fill:before{content:"\ea2f"}.ri-anchor-line:before{content:"\ea30"}.ri-ancient-gate-fill:before{content:"\ea31"}.ri-ancient-gate-line:before{content:"\ea32"}.ri-ancient-pavilion-fill:before{content:"\ea33"}.ri-ancient-pavilion-line:before{content:"\ea34"}.ri-android-fill:before{content:"\ea35"}.ri-android-line:before{content:"\ea36"}.ri-angularjs-fill:before{content:"\ea37"}.ri-angularjs-line:before{content:"\ea38"}.ri-anticlockwise-2-fill:before{content:"\ea39"}.ri-anticlockwise-2-line:before{content:"\ea3a"}.ri-anticlockwise-fill:before{content:"\ea3b"}.ri-anticlockwise-line:before{content:"\ea3c"}.ri-app-store-fill:before{content:"\ea3d"}.ri-app-store-line:before{content:"\ea3e"}.ri-apple-fill:before{content:"\ea3f"}.ri-apple-line:before{content:"\ea40"}.ri-apps-2-fill:before{content:"\ea41"}.ri-apps-2-line:before{content:"\ea42"}.ri-apps-fill:before{content:"\ea43"}.ri-apps-line:before{content:"\ea44"}.ri-archive-drawer-fill:before{content:"\ea45"}.ri-archive-drawer-line:before{content:"\ea46"}.ri-archive-fill:before{content:"\ea47"}.ri-archive-line:before{content:"\ea48"}.ri-arrow-down-circle-fill:before{content:"\ea49"}.ri-arrow-down-circle-line:before{content:"\ea4a"}.ri-arrow-down-fill:before{content:"\ea4b"}.ri-arrow-down-line:before{content:"\ea4c"}.ri-arrow-down-s-fill:before{content:"\ea4d"}.ri-arrow-down-s-line:before{content:"\ea4e"}.ri-arrow-drop-down-fill:before{content:"\ea4f"}.ri-arrow-drop-down-line:before{content:"\ea50"}.ri-arrow-drop-left-fill:before{content:"\ea51"}.ri-arrow-drop-left-line:before{content:"\ea52"}.ri-arrow-drop-right-fill:before{content:"\ea53"}.ri-arrow-drop-right-line:before{content:"\ea54"}.ri-arrow-drop-up-fill:before{content:"\ea55"}.ri-arrow-drop-up-line:before{content:"\ea56"}.ri-arrow-go-back-fill:before{content:"\ea57"}.ri-arrow-go-back-line:before{content:"\ea58"}.ri-arrow-go-forward-fill:before{content:"\ea59"}.ri-arrow-go-forward-line:before{content:"\ea5a"}.ri-arrow-left-circle-fill:before{content:"\ea5b"}.ri-arrow-left-circle-line:before{content:"\ea5c"}.ri-arrow-left-down-fill:before{content:"\ea5d"}.ri-arrow-left-down-line:before{content:"\ea5e"}.ri-arrow-left-fill:before{content:"\ea5f"}.ri-arrow-left-line:before{content:"\ea60"}.ri-arrow-left-right-fill:before{content:"\ea61"}.ri-arrow-left-right-line:before{content:"\ea62"}.ri-arrow-left-s-fill:before{content:"\ea63"}.ri-arrow-left-s-line:before{content:"\ea64"}.ri-arrow-left-up-fill:before{content:"\ea65"}.ri-arrow-left-up-line:before{content:"\ea66"}.ri-arrow-right-circle-fill:before{content:"\ea67"}.ri-arrow-right-circle-line:before{content:"\ea68"}.ri-arrow-right-down-fill:before{content:"\ea69"}.ri-arrow-right-down-line:before{content:"\ea6a"}.ri-arrow-right-fill:before{content:"\ea6b"}.ri-arrow-right-line:before{content:"\ea6c"}.ri-arrow-right-s-fill:before{content:"\ea6d"}.ri-arrow-right-s-line:before{content:"\ea6e"}.ri-arrow-right-up-fill:before{content:"\ea6f"}.ri-arrow-right-up-line:before{content:"\ea70"}.ri-arrow-up-circle-fill:before{content:"\ea71"}.ri-arrow-up-circle-line:before{content:"\ea72"}.ri-arrow-up-down-fill:before{content:"\ea73"}.ri-arrow-up-down-line:before{content:"\ea74"}.ri-arrow-up-fill:before{content:"\ea75"}.ri-arrow-up-line:before{content:"\ea76"}.ri-arrow-up-s-fill:before{content:"\ea77"}.ri-arrow-up-s-line:before{content:"\ea78"}.ri-artboard-2-fill:before{content:"\ea79"}.ri-artboard-2-line:before{content:"\ea7a"}.ri-artboard-fill:before{content:"\ea7b"}.ri-artboard-line:before{content:"\ea7c"}.ri-article-fill:before{content:"\ea7d"}.ri-article-line:before{content:"\ea7e"}.ri-aspect-ratio-fill:before{content:"\ea7f"}.ri-aspect-ratio-line:before{content:"\ea80"}.ri-asterisk:before{content:"\ea81"}.ri-at-fill:before{content:"\ea82"}.ri-at-line:before{content:"\ea83"}.ri-attachment-2:before{content:"\ea84"}.ri-attachment-fill:before{content:"\ea85"}.ri-attachment-line:before{content:"\ea86"}.ri-auction-fill:before{content:"\ea87"}.ri-auction-line:before{content:"\ea88"}.ri-award-fill:before{content:"\ea89"}.ri-award-line:before{content:"\ea8a"}.ri-baidu-fill:before{content:"\ea8b"}.ri-baidu-line:before{content:"\ea8c"}.ri-ball-pen-fill:before{content:"\ea8d"}.ri-ball-pen-line:before{content:"\ea8e"}.ri-bank-card-2-fill:before{content:"\ea8f"}.ri-bank-card-2-line:before{content:"\ea90"}.ri-bank-card-fill:before{content:"\ea91"}.ri-bank-card-line:before{content:"\ea92"}.ri-bank-fill:before{content:"\ea93"}.ri-bank-line:before{content:"\ea94"}.ri-bar-chart-2-fill:before{content:"\ea95"}.ri-bar-chart-2-line:before{content:"\ea96"}.ri-bar-chart-box-fill:before{content:"\ea97"}.ri-bar-chart-box-line:before{content:"\ea98"}.ri-bar-chart-fill:before{content:"\ea99"}.ri-bar-chart-grouped-fill:before{content:"\ea9a"}.ri-bar-chart-grouped-line:before{content:"\ea9b"}.ri-bar-chart-horizontal-fill:before{content:"\ea9c"}.ri-bar-chart-horizontal-line:before{content:"\ea9d"}.ri-bar-chart-line:before{content:"\ea9e"}.ri-barcode-box-fill:before{content:"\ea9f"}.ri-barcode-box-line:before{content:"\eaa0"}.ri-barcode-fill:before{content:"\eaa1"}.ri-barcode-line:before{content:"\eaa2"}.ri-barricade-fill:before{content:"\eaa3"}.ri-barricade-line:before{content:"\eaa4"}.ri-base-station-fill:before{content:"\eaa5"}.ri-base-station-line:before{content:"\eaa6"}.ri-basketball-fill:before{content:"\eaa7"}.ri-basketball-line:before{content:"\eaa8"}.ri-battery-2-charge-fill:before{content:"\eaa9"}.ri-battery-2-charge-line:before{content:"\eaaa"}.ri-battery-2-fill:before{content:"\eaab"}.ri-battery-2-line:before{content:"\eaac"}.ri-battery-charge-fill:before{content:"\eaad"}.ri-battery-charge-line:before{content:"\eaae"}.ri-battery-fill:before{content:"\eaaf"}.ri-battery-line:before{content:"\eab0"}.ri-battery-low-fill:before{content:"\eab1"}.ri-battery-low-line:before{content:"\eab2"}.ri-battery-saver-fill:before{content:"\eab3"}.ri-battery-saver-line:before{content:"\eab4"}.ri-battery-share-fill:before{content:"\eab5"}.ri-battery-share-line:before{content:"\eab6"}.ri-bear-smile-fill:before{content:"\eab7"}.ri-bear-smile-line:before{content:"\eab8"}.ri-behance-fill:before{content:"\eab9"}.ri-behance-line:before{content:"\eaba"}.ri-bell-fill:before{content:"\eabb"}.ri-bell-line:before{content:"\eabc"}.ri-bike-fill:before{content:"\eabd"}.ri-bike-line:before{content:"\eabe"}.ri-bilibili-fill:before{content:"\eabf"}.ri-bilibili-line:before{content:"\eac0"}.ri-bill-fill:before{content:"\eac1"}.ri-bill-line:before{content:"\eac2"}.ri-billiards-fill:before{content:"\eac3"}.ri-billiards-line:before{content:"\eac4"}.ri-bit-coin-fill:before{content:"\eac5"}.ri-bit-coin-line:before{content:"\eac6"}.ri-blaze-fill:before{content:"\eac7"}.ri-blaze-line:before{content:"\eac8"}.ri-bluetooth-connect-fill:before{content:"\eac9"}.ri-bluetooth-connect-line:before{content:"\eaca"}.ri-bluetooth-fill:before{content:"\eacb"}.ri-bluetooth-line:before{content:"\eacc"}.ri-blur-off-fill:before{content:"\eacd"}.ri-blur-off-line:before{content:"\eace"}.ri-body-scan-fill:before{content:"\eacf"}.ri-body-scan-line:before{content:"\ead0"}.ri-bold:before{content:"\ead1"}.ri-book-2-fill:before{content:"\ead2"}.ri-book-2-line:before{content:"\ead3"}.ri-book-3-fill:before{content:"\ead4"}.ri-book-3-line:before{content:"\ead5"}.ri-book-fill:before{content:"\ead6"}.ri-book-line:before{content:"\ead7"}.ri-book-mark-fill:before{content:"\ead8"}.ri-book-mark-line:before{content:"\ead9"}.ri-book-open-fill:before{content:"\eada"}.ri-book-open-line:before{content:"\eadb"}.ri-book-read-fill:before{content:"\eadc"}.ri-book-read-line:before{content:"\eadd"}.ri-booklet-fill:before{content:"\eade"}.ri-booklet-line:before{content:"\eadf"}.ri-bookmark-2-fill:before{content:"\eae0"}.ri-bookmark-2-line:before{content:"\eae1"}.ri-bookmark-3-fill:before{content:"\eae2"}.ri-bookmark-3-line:before{content:"\eae3"}.ri-bookmark-fill:before{content:"\eae4"}.ri-bookmark-line:before{content:"\eae5"}.ri-boxing-fill:before{content:"\eae6"}.ri-boxing-line:before{content:"\eae7"}.ri-braces-fill:before{content:"\eae8"}.ri-braces-line:before{content:"\eae9"}.ri-brackets-fill:before{content:"\eaea"}.ri-brackets-line:before{content:"\eaeb"}.ri-briefcase-2-fill:before{content:"\eaec"}.ri-briefcase-2-line:before{content:"\eaed"}.ri-briefcase-3-fill:before{content:"\eaee"}.ri-briefcase-3-line:before{content:"\eaef"}.ri-briefcase-4-fill:before{content:"\eaf0"}.ri-briefcase-4-line:before{content:"\eaf1"}.ri-briefcase-5-fill:before{content:"\eaf2"}.ri-briefcase-5-line:before{content:"\eaf3"}.ri-briefcase-fill:before{content:"\eaf4"}.ri-briefcase-line:before{content:"\eaf5"}.ri-bring-forward:before{content:"\eaf6"}.ri-bring-to-front:before{content:"\eaf7"}.ri-broadcast-fill:before{content:"\eaf8"}.ri-broadcast-line:before{content:"\eaf9"}.ri-brush-2-fill:before{content:"\eafa"}.ri-brush-2-line:before{content:"\eafb"}.ri-brush-3-fill:before{content:"\eafc"}.ri-brush-3-line:before{content:"\eafd"}.ri-brush-4-fill:before{content:"\eafe"}.ri-brush-4-line:before{content:"\eaff"}.ri-brush-fill:before{content:"\eb00"}.ri-brush-line:before{content:"\eb01"}.ri-bubble-chart-fill:before{content:"\eb02"}.ri-bubble-chart-line:before{content:"\eb03"}.ri-bug-2-fill:before{content:"\eb04"}.ri-bug-2-line:before{content:"\eb05"}.ri-bug-fill:before{content:"\eb06"}.ri-bug-line:before{content:"\eb07"}.ri-building-2-fill:before{content:"\eb08"}.ri-building-2-line:before{content:"\eb09"}.ri-building-3-fill:before{content:"\eb0a"}.ri-building-3-line:before{content:"\eb0b"}.ri-building-4-fill:before{content:"\eb0c"}.ri-building-4-line:before{content:"\eb0d"}.ri-building-fill:before{content:"\eb0e"}.ri-building-line:before{content:"\eb0f"}.ri-bus-2-fill:before{content:"\eb10"}.ri-bus-2-line:before{content:"\eb11"}.ri-bus-fill:before{content:"\eb12"}.ri-bus-line:before{content:"\eb13"}.ri-bus-wifi-fill:before{content:"\eb14"}.ri-bus-wifi-line:before{content:"\eb15"}.ri-cactus-fill:before{content:"\eb16"}.ri-cactus-line:before{content:"\eb17"}.ri-cake-2-fill:before{content:"\eb18"}.ri-cake-2-line:before{content:"\eb19"}.ri-cake-3-fill:before{content:"\eb1a"}.ri-cake-3-line:before{content:"\eb1b"}.ri-cake-fill:before{content:"\eb1c"}.ri-cake-line:before{content:"\eb1d"}.ri-calculator-fill:before{content:"\eb1e"}.ri-calculator-line:before{content:"\eb1f"}.ri-calendar-2-fill:before{content:"\eb20"}.ri-calendar-2-line:before{content:"\eb21"}.ri-calendar-check-fill:before{content:"\eb22"}.ri-calendar-check-line:before{content:"\eb23"}.ri-calendar-event-fill:before{content:"\eb24"}.ri-calendar-event-line:before{content:"\eb25"}.ri-calendar-fill:before{content:"\eb26"}.ri-calendar-line:before{content:"\eb27"}.ri-calendar-todo-fill:before{content:"\eb28"}.ri-calendar-todo-line:before{content:"\eb29"}.ri-camera-2-fill:before{content:"\eb2a"}.ri-camera-2-line:before{content:"\eb2b"}.ri-camera-3-fill:before{content:"\eb2c"}.ri-camera-3-line:before{content:"\eb2d"}.ri-camera-fill:before{content:"\eb2e"}.ri-camera-lens-fill:before{content:"\eb2f"}.ri-camera-lens-line:before{content:"\eb30"}.ri-camera-line:before{content:"\eb31"}.ri-camera-off-fill:before{content:"\eb32"}.ri-camera-off-line:before{content:"\eb33"}.ri-camera-switch-fill:before{content:"\eb34"}.ri-camera-switch-line:before{content:"\eb35"}.ri-capsule-fill:before{content:"\eb36"}.ri-capsule-line:before{content:"\eb37"}.ri-car-fill:before{content:"\eb38"}.ri-car-line:before{content:"\eb39"}.ri-car-washing-fill:before{content:"\eb3a"}.ri-car-washing-line:before{content:"\eb3b"}.ri-caravan-fill:before{content:"\eb3c"}.ri-caravan-line:before{content:"\eb3d"}.ri-cast-fill:before{content:"\eb3e"}.ri-cast-line:before{content:"\eb3f"}.ri-cellphone-fill:before{content:"\eb40"}.ri-cellphone-line:before{content:"\eb41"}.ri-celsius-fill:before{content:"\eb42"}.ri-celsius-line:before{content:"\eb43"}.ri-centos-fill:before{content:"\eb44"}.ri-centos-line:before{content:"\eb45"}.ri-character-recognition-fill:before{content:"\eb46"}.ri-character-recognition-line:before{content:"\eb47"}.ri-charging-pile-2-fill:before{content:"\eb48"}.ri-charging-pile-2-line:before{content:"\eb49"}.ri-charging-pile-fill:before{content:"\eb4a"}.ri-charging-pile-line:before{content:"\eb4b"}.ri-chat-1-fill:before{content:"\eb4c"}.ri-chat-1-line:before{content:"\eb4d"}.ri-chat-2-fill:before{content:"\eb4e"}.ri-chat-2-line:before{content:"\eb4f"}.ri-chat-3-fill:before{content:"\eb50"}.ri-chat-3-line:before{content:"\eb51"}.ri-chat-4-fill:before{content:"\eb52"}.ri-chat-4-line:before{content:"\eb53"}.ri-chat-check-fill:before{content:"\eb54"}.ri-chat-check-line:before{content:"\eb55"}.ri-chat-delete-fill:before{content:"\eb56"}.ri-chat-delete-line:before{content:"\eb57"}.ri-chat-download-fill:before{content:"\eb58"}.ri-chat-download-line:before{content:"\eb59"}.ri-chat-follow-up-fill:before{content:"\eb5a"}.ri-chat-follow-up-line:before{content:"\eb5b"}.ri-chat-forward-fill:before{content:"\eb5c"}.ri-chat-forward-line:before{content:"\eb5d"}.ri-chat-heart-fill:before{content:"\eb5e"}.ri-chat-heart-line:before{content:"\eb5f"}.ri-chat-history-fill:before{content:"\eb60"}.ri-chat-history-line:before{content:"\eb61"}.ri-chat-new-fill:before{content:"\eb62"}.ri-chat-new-line:before{content:"\eb63"}.ri-chat-off-fill:before{content:"\eb64"}.ri-chat-off-line:before{content:"\eb65"}.ri-chat-poll-fill:before{content:"\eb66"}.ri-chat-poll-line:before{content:"\eb67"}.ri-chat-private-fill:before{content:"\eb68"}.ri-chat-private-line:before{content:"\eb69"}.ri-chat-quote-fill:before{content:"\eb6a"}.ri-chat-quote-line:before{content:"\eb6b"}.ri-chat-settings-fill:before{content:"\eb6c"}.ri-chat-settings-line:before{content:"\eb6d"}.ri-chat-smile-2-fill:before{content:"\eb6e"}.ri-chat-smile-2-line:before{content:"\eb6f"}.ri-chat-smile-3-fill:before{content:"\eb70"}.ri-chat-smile-3-line:before{content:"\eb71"}.ri-chat-smile-fill:before{content:"\eb72"}.ri-chat-smile-line:before{content:"\eb73"}.ri-chat-upload-fill:before{content:"\eb74"}.ri-chat-upload-line:before{content:"\eb75"}.ri-chat-voice-fill:before{content:"\eb76"}.ri-chat-voice-line:before{content:"\eb77"}.ri-check-double-fill:before{content:"\eb78"}.ri-check-double-line:before{content:"\eb79"}.ri-check-fill:before{content:"\eb7a"}.ri-check-line:before{content:"\eb7b"}.ri-checkbox-blank-circle-fill:before{content:"\eb7c"}.ri-checkbox-blank-circle-line:before{content:"\eb7d"}.ri-checkbox-blank-fill:before{content:"\eb7e"}.ri-checkbox-blank-line:before{content:"\eb7f"}.ri-checkbox-circle-fill:before{content:"\eb80"}.ri-checkbox-circle-line:before{content:"\eb81"}.ri-checkbox-fill:before{content:"\eb82"}.ri-checkbox-indeterminate-fill:before{content:"\eb83"}.ri-checkbox-indeterminate-line:before{content:"\eb84"}.ri-checkbox-line:before{content:"\eb85"}.ri-checkbox-multiple-blank-fill:before{content:"\eb86"}.ri-checkbox-multiple-blank-line:before{content:"\eb87"}.ri-checkbox-multiple-fill:before{content:"\eb88"}.ri-checkbox-multiple-line:before{content:"\eb89"}.ri-china-railway-fill:before{content:"\eb8a"}.ri-china-railway-line:before{content:"\eb8b"}.ri-chrome-fill:before{content:"\eb8c"}.ri-chrome-line:before{content:"\eb8d"}.ri-clapperboard-fill:before{content:"\eb8e"}.ri-clapperboard-line:before{content:"\eb8f"}.ri-clipboard-fill:before{content:"\eb90"}.ri-clipboard-line:before{content:"\eb91"}.ri-clockwise-2-fill:before{content:"\eb92"}.ri-clockwise-2-line:before{content:"\eb93"}.ri-clockwise-fill:before{content:"\eb94"}.ri-clockwise-line:before{content:"\eb95"}.ri-close-circle-fill:before{content:"\eb96"}.ri-close-circle-line:before{content:"\eb97"}.ri-close-fill:before{content:"\eb98"}.ri-close-line:before{content:"\eb99"}.ri-closed-captioning-fill:before{content:"\eb9a"}.ri-closed-captioning-line:before{content:"\eb9b"}.ri-cloud-fill:before{content:"\eb9c"}.ri-cloud-line:before{content:"\eb9d"}.ri-cloud-off-fill:before{content:"\eb9e"}.ri-cloud-off-line:before{content:"\eb9f"}.ri-cloud-windy-fill:before{content:"\eba0"}.ri-cloud-windy-line:before{content:"\eba1"}.ri-cloudy-2-fill:before{content:"\eba2"}.ri-cloudy-2-line:before{content:"\eba3"}.ri-cloudy-fill:before{content:"\eba4"}.ri-cloudy-line:before{content:"\eba5"}.ri-code-box-fill:before{content:"\eba6"}.ri-code-box-line:before{content:"\eba7"}.ri-code-fill:before{content:"\eba8"}.ri-code-line:before{content:"\eba9"}.ri-code-s-fill:before{content:"\ebaa"}.ri-code-s-line:before{content:"\ebab"}.ri-code-s-slash-fill:before{content:"\ebac"}.ri-code-s-slash-line:before{content:"\ebad"}.ri-code-view:before{content:"\ebae"}.ri-codepen-fill:before{content:"\ebaf"}.ri-codepen-line:before{content:"\ebb0"}.ri-coin-fill:before{content:"\ebb1"}.ri-coin-line:before{content:"\ebb2"}.ri-coins-fill:before{content:"\ebb3"}.ri-coins-line:before{content:"\ebb4"}.ri-collage-fill:before{content:"\ebb5"}.ri-collage-line:before{content:"\ebb6"}.ri-command-fill:before{content:"\ebb7"}.ri-command-line:before{content:"\ebb8"}.ri-community-fill:before{content:"\ebb9"}.ri-community-line:before{content:"\ebba"}.ri-compass-2-fill:before{content:"\ebbb"}.ri-compass-2-line:before{content:"\ebbc"}.ri-compass-3-fill:before{content:"\ebbd"}.ri-compass-3-line:before{content:"\ebbe"}.ri-compass-4-fill:before{content:"\ebbf"}.ri-compass-4-line:before{content:"\ebc0"}.ri-compass-discover-fill:before{content:"\ebc1"}.ri-compass-discover-line:before{content:"\ebc2"}.ri-compass-fill:before{content:"\ebc3"}.ri-compass-line:before{content:"\ebc4"}.ri-compasses-2-fill:before{content:"\ebc5"}.ri-compasses-2-line:before{content:"\ebc6"}.ri-compasses-fill:before{content:"\ebc7"}.ri-compasses-line:before{content:"\ebc8"}.ri-computer-fill:before{content:"\ebc9"}.ri-computer-line:before{content:"\ebca"}.ri-contacts-book-2-fill:before{content:"\ebcb"}.ri-contacts-book-2-line:before{content:"\ebcc"}.ri-contacts-book-fill:before{content:"\ebcd"}.ri-contacts-book-line:before{content:"\ebce"}.ri-contacts-book-upload-fill:before{content:"\ebcf"}.ri-contacts-book-upload-line:before{content:"\ebd0"}.ri-contacts-fill:before{content:"\ebd1"}.ri-contacts-line:before{content:"\ebd2"}.ri-contrast-2-fill:before{content:"\ebd3"}.ri-contrast-2-line:before{content:"\ebd4"}.ri-contrast-drop-2-fill:before{content:"\ebd5"}.ri-contrast-drop-2-line:before{content:"\ebd6"}.ri-contrast-drop-fill:before{content:"\ebd7"}.ri-contrast-drop-line:before{content:"\ebd8"}.ri-contrast-fill:before{content:"\ebd9"}.ri-contrast-line:before{content:"\ebda"}.ri-copper-coin-fill:before{content:"\ebdb"}.ri-copper-coin-line:before{content:"\ebdc"}.ri-copper-diamond-fill:before{content:"\ebdd"}.ri-copper-diamond-line:before{content:"\ebde"}.ri-copyleft-fill:before{content:"\ebdf"}.ri-copyleft-line:before{content:"\ebe0"}.ri-copyright-fill:before{content:"\ebe1"}.ri-copyright-line:before{content:"\ebe2"}.ri-coreos-fill:before{content:"\ebe3"}.ri-coreos-line:before{content:"\ebe4"}.ri-coupon-2-fill:before{content:"\ebe5"}.ri-coupon-2-line:before{content:"\ebe6"}.ri-coupon-3-fill:before{content:"\ebe7"}.ri-coupon-3-line:before{content:"\ebe8"}.ri-coupon-4-fill:before{content:"\ebe9"}.ri-coupon-4-line:before{content:"\ebea"}.ri-coupon-5-fill:before{content:"\ebeb"}.ri-coupon-5-line:before{content:"\ebec"}.ri-coupon-fill:before{content:"\ebed"}.ri-coupon-line:before{content:"\ebee"}.ri-cpu-fill:before{content:"\ebef"}.ri-cpu-line:before{content:"\ebf0"}.ri-creative-commons-by-fill:before{content:"\ebf1"}.ri-creative-commons-by-line:before{content:"\ebf2"}.ri-creative-commons-fill:before{content:"\ebf3"}.ri-creative-commons-line:before{content:"\ebf4"}.ri-creative-commons-nc-fill:before{content:"\ebf5"}.ri-creative-commons-nc-line:before{content:"\ebf6"}.ri-creative-commons-nd-fill:before{content:"\ebf7"}.ri-creative-commons-nd-line:before{content:"\ebf8"}.ri-creative-commons-sa-fill:before{content:"\ebf9"}.ri-creative-commons-sa-line:before{content:"\ebfa"}.ri-creative-commons-zero-fill:before{content:"\ebfb"}.ri-creative-commons-zero-line:before{content:"\ebfc"}.ri-criminal-fill:before{content:"\ebfd"}.ri-criminal-line:before{content:"\ebfe"}.ri-crop-2-fill:before{content:"\ebff"}.ri-crop-2-line:before{content:"\ec00"}.ri-crop-fill:before{content:"\ec01"}.ri-crop-line:before{content:"\ec02"}.ri-css3-fill:before{content:"\ec03"}.ri-css3-line:before{content:"\ec04"}.ri-cup-fill:before{content:"\ec05"}.ri-cup-line:before{content:"\ec06"}.ri-currency-fill:before{content:"\ec07"}.ri-currency-line:before{content:"\ec08"}.ri-cursor-fill:before{content:"\ec09"}.ri-cursor-line:before{content:"\ec0a"}.ri-customer-service-2-fill:before{content:"\ec0b"}.ri-customer-service-2-line:before{content:"\ec0c"}.ri-customer-service-fill:before{content:"\ec0d"}.ri-customer-service-line:before{content:"\ec0e"}.ri-dashboard-2-fill:before{content:"\ec0f"}.ri-dashboard-2-line:before{content:"\ec10"}.ri-dashboard-3-fill:before{content:"\ec11"}.ri-dashboard-3-line:before{content:"\ec12"}.ri-dashboard-fill:before{content:"\ec13"}.ri-dashboard-line:before{content:"\ec14"}.ri-database-2-fill:before{content:"\ec15"}.ri-database-2-line:before{content:"\ec16"}.ri-database-fill:before{content:"\ec17"}.ri-database-line:before{content:"\ec18"}.ri-delete-back-2-fill:before{content:"\ec19"}.ri-delete-back-2-line:before{content:"\ec1a"}.ri-delete-back-fill:before{content:"\ec1b"}.ri-delete-back-line:before{content:"\ec1c"}.ri-delete-bin-2-fill:before{content:"\ec1d"}.ri-delete-bin-2-line:before{content:"\ec1e"}.ri-delete-bin-3-fill:before{content:"\ec1f"}.ri-delete-bin-3-line:before{content:"\ec20"}.ri-delete-bin-4-fill:before{content:"\ec21"}.ri-delete-bin-4-line:before{content:"\ec22"}.ri-delete-bin-5-fill:before{content:"\ec23"}.ri-delete-bin-5-line:before{content:"\ec24"}.ri-delete-bin-6-fill:before{content:"\ec25"}.ri-delete-bin-6-line:before{content:"\ec26"}.ri-delete-bin-7-fill:before{content:"\ec27"}.ri-delete-bin-7-line:before{content:"\ec28"}.ri-delete-bin-fill:before{content:"\ec29"}.ri-delete-bin-line:before{content:"\ec2a"}.ri-delete-column:before{content:"\ec2b"}.ri-delete-row:before{content:"\ec2c"}.ri-device-fill:before{content:"\ec2d"}.ri-device-line:before{content:"\ec2e"}.ri-device-recover-fill:before{content:"\ec2f"}.ri-device-recover-line:before{content:"\ec30"}.ri-dingding-fill:before{content:"\ec31"}.ri-dingding-line:before{content:"\ec32"}.ri-direction-fill:before{content:"\ec33"}.ri-direction-line:before{content:"\ec34"}.ri-disc-fill:before{content:"\ec35"}.ri-disc-line:before{content:"\ec36"}.ri-discord-fill:before{content:"\ec37"}.ri-discord-line:before{content:"\ec38"}.ri-discuss-fill:before{content:"\ec39"}.ri-discuss-line:before{content:"\ec3a"}.ri-dislike-fill:before{content:"\ec3b"}.ri-dislike-line:before{content:"\ec3c"}.ri-disqus-fill:before{content:"\ec3d"}.ri-disqus-line:before{content:"\ec3e"}.ri-divide-fill:before{content:"\ec3f"}.ri-divide-line:before{content:"\ec40"}.ri-donut-chart-fill:before{content:"\ec41"}.ri-donut-chart-line:before{content:"\ec42"}.ri-door-closed-fill:before{content:"\ec43"}.ri-door-closed-line:before{content:"\ec44"}.ri-door-fill:before{content:"\ec45"}.ri-door-line:before{content:"\ec46"}.ri-door-lock-box-fill:before{content:"\ec47"}.ri-door-lock-box-line:before{content:"\ec48"}.ri-door-lock-fill:before{content:"\ec49"}.ri-door-lock-line:before{content:"\ec4a"}.ri-door-open-fill:before{content:"\ec4b"}.ri-door-open-line:before{content:"\ec4c"}.ri-dossier-fill:before{content:"\ec4d"}.ri-dossier-line:before{content:"\ec4e"}.ri-douban-fill:before{content:"\ec4f"}.ri-douban-line:before{content:"\ec50"}.ri-double-quotes-l:before{content:"\ec51"}.ri-double-quotes-r:before{content:"\ec52"}.ri-download-2-fill:before{content:"\ec53"}.ri-download-2-line:before{content:"\ec54"}.ri-download-cloud-2-fill:before{content:"\ec55"}.ri-download-cloud-2-line:before{content:"\ec56"}.ri-download-cloud-fill:before{content:"\ec57"}.ri-download-cloud-line:before{content:"\ec58"}.ri-download-fill:before{content:"\ec59"}.ri-download-line:before{content:"\ec5a"}.ri-draft-fill:before{content:"\ec5b"}.ri-draft-line:before{content:"\ec5c"}.ri-drag-drop-fill:before{content:"\ec5d"}.ri-drag-drop-line:before{content:"\ec5e"}.ri-drag-move-2-fill:before{content:"\ec5f"}.ri-drag-move-2-line:before{content:"\ec60"}.ri-drag-move-fill:before{content:"\ec61"}.ri-drag-move-line:before{content:"\ec62"}.ri-dribbble-fill:before{content:"\ec63"}.ri-dribbble-line:before{content:"\ec64"}.ri-drive-fill:before{content:"\ec65"}.ri-drive-line:before{content:"\ec66"}.ri-drizzle-fill:before{content:"\ec67"}.ri-drizzle-line:before{content:"\ec68"}.ri-drop-fill:before{content:"\ec69"}.ri-drop-line:before{content:"\ec6a"}.ri-dropbox-fill:before{content:"\ec6b"}.ri-dropbox-line:before{content:"\ec6c"}.ri-dual-sim-1-fill:before{content:"\ec6d"}.ri-dual-sim-1-line:before{content:"\ec6e"}.ri-dual-sim-2-fill:before{content:"\ec6f"}.ri-dual-sim-2-line:before{content:"\ec70"}.ri-dv-fill:before{content:"\ec71"}.ri-dv-line:before{content:"\ec72"}.ri-dvd-fill:before{content:"\ec73"}.ri-dvd-line:before{content:"\ec74"}.ri-e-bike-2-fill:before{content:"\ec75"}.ri-e-bike-2-line:before{content:"\ec76"}.ri-e-bike-fill:before{content:"\ec77"}.ri-e-bike-line:before{content:"\ec78"}.ri-earth-fill:before{content:"\ec79"}.ri-earth-line:before{content:"\ec7a"}.ri-earthquake-fill:before{content:"\ec7b"}.ri-earthquake-line:before{content:"\ec7c"}.ri-edge-fill:before{content:"\ec7d"}.ri-edge-line:before{content:"\ec7e"}.ri-edit-2-fill:before{content:"\ec7f"}.ri-edit-2-line:before{content:"\ec80"}.ri-edit-box-fill:before{content:"\ec81"}.ri-edit-box-line:before{content:"\ec82"}.ri-edit-circle-fill:before{content:"\ec83"}.ri-edit-circle-line:before{content:"\ec84"}.ri-edit-fill:before{content:"\ec85"}.ri-edit-line:before{content:"\ec86"}.ri-eject-fill:before{content:"\ec87"}.ri-eject-line:before{content:"\ec88"}.ri-emotion-2-fill:before{content:"\ec89"}.ri-emotion-2-line:before{content:"\ec8a"}.ri-emotion-fill:before{content:"\ec8b"}.ri-emotion-happy-fill:before{content:"\ec8c"}.ri-emotion-happy-line:before{content:"\ec8d"}.ri-emotion-laugh-fill:before{content:"\ec8e"}.ri-emotion-laugh-line:before{content:"\ec8f"}.ri-emotion-line:before{content:"\ec90"}.ri-emotion-normal-fill:before{content:"\ec91"}.ri-emotion-normal-line:before{content:"\ec92"}.ri-emotion-sad-fill:before{content:"\ec93"}.ri-emotion-sad-line:before{content:"\ec94"}.ri-emotion-unhappy-fill:before{content:"\ec95"}.ri-emotion-unhappy-line:before{content:"\ec96"}.ri-empathize-fill:before{content:"\ec97"}.ri-empathize-line:before{content:"\ec98"}.ri-emphasis-cn:before{content:"\ec99"}.ri-emphasis:before{content:"\ec9a"}.ri-english-input:before{content:"\ec9b"}.ri-equalizer-fill:before{content:"\ec9c"}.ri-equalizer-line:before{content:"\ec9d"}.ri-eraser-fill:before{content:"\ec9e"}.ri-eraser-line:before{content:"\ec9f"}.ri-error-warning-fill:before{content:"\eca0"}.ri-error-warning-line:before{content:"\eca1"}.ri-evernote-fill:before{content:"\eca2"}.ri-evernote-line:before{content:"\eca3"}.ri-exchange-box-fill:before{content:"\eca4"}.ri-exchange-box-line:before{content:"\eca5"}.ri-exchange-cny-fill:before{content:"\eca6"}.ri-exchange-cny-line:before{content:"\eca7"}.ri-exchange-dollar-fill:before{content:"\eca8"}.ri-exchange-dollar-line:before{content:"\eca9"}.ri-exchange-fill:before{content:"\ecaa"}.ri-exchange-funds-fill:before{content:"\ecab"}.ri-exchange-funds-line:before{content:"\ecac"}.ri-exchange-line:before{content:"\ecad"}.ri-external-link-fill:before{content:"\ecae"}.ri-external-link-line:before{content:"\ecaf"}.ri-eye-2-fill:before{content:"\ecb0"}.ri-eye-2-line:before{content:"\ecb1"}.ri-eye-close-fill:before{content:"\ecb2"}.ri-eye-close-line:before{content:"\ecb3"}.ri-eye-fill:before{content:"\ecb4"}.ri-eye-line:before{content:"\ecb5"}.ri-eye-off-fill:before{content:"\ecb6"}.ri-eye-off-line:before{content:"\ecb7"}.ri-facebook-box-fill:before{content:"\ecb8"}.ri-facebook-box-line:before{content:"\ecb9"}.ri-facebook-circle-fill:before{content:"\ecba"}.ri-facebook-circle-line:before{content:"\ecbb"}.ri-facebook-fill:before{content:"\ecbc"}.ri-facebook-line:before{content:"\ecbd"}.ri-fahrenheit-fill:before{content:"\ecbe"}.ri-fahrenheit-line:before{content:"\ecbf"}.ri-feedback-fill:before{content:"\ecc0"}.ri-feedback-line:before{content:"\ecc1"}.ri-file-2-fill:before{content:"\ecc2"}.ri-file-2-line:before{content:"\ecc3"}.ri-file-3-fill:before{content:"\ecc4"}.ri-file-3-line:before{content:"\ecc5"}.ri-file-4-fill:before{content:"\ecc6"}.ri-file-4-line:before{content:"\ecc7"}.ri-file-add-fill:before{content:"\ecc8"}.ri-file-add-line:before{content:"\ecc9"}.ri-file-chart-2-fill:before{content:"\ecca"}.ri-file-chart-2-line:before{content:"\eccb"}.ri-file-chart-fill:before{content:"\eccc"}.ri-file-chart-line:before{content:"\eccd"}.ri-file-cloud-fill:before{content:"\ecce"}.ri-file-cloud-line:before{content:"\eccf"}.ri-file-code-fill:before{content:"\ecd0"}.ri-file-code-line:before{content:"\ecd1"}.ri-file-copy-2-fill:before{content:"\ecd2"}.ri-file-copy-2-line:before{content:"\ecd3"}.ri-file-copy-fill:before{content:"\ecd4"}.ri-file-copy-line:before{content:"\ecd5"}.ri-file-damage-fill:before{content:"\ecd6"}.ri-file-damage-line:before{content:"\ecd7"}.ri-file-download-fill:before{content:"\ecd8"}.ri-file-download-line:before{content:"\ecd9"}.ri-file-edit-fill:before{content:"\ecda"}.ri-file-edit-line:before{content:"\ecdb"}.ri-file-excel-2-fill:before{content:"\ecdc"}.ri-file-excel-2-line:before{content:"\ecdd"}.ri-file-excel-fill:before{content:"\ecde"}.ri-file-excel-line:before{content:"\ecdf"}.ri-file-fill:before{content:"\ece0"}.ri-file-forbid-fill:before{content:"\ece1"}.ri-file-forbid-line:before{content:"\ece2"}.ri-file-gif-fill:before{content:"\ece3"}.ri-file-gif-line:before{content:"\ece4"}.ri-file-history-fill:before{content:"\ece5"}.ri-file-history-line:before{content:"\ece6"}.ri-file-hwp-fill:before{content:"\ece7"}.ri-file-hwp-line:before{content:"\ece8"}.ri-file-info-fill:before{content:"\ece9"}.ri-file-info-line:before{content:"\ecea"}.ri-file-line:before{content:"\eceb"}.ri-file-list-2-fill:before{content:"\ecec"}.ri-file-list-2-line:before{content:"\eced"}.ri-file-list-3-fill:before{content:"\ecee"}.ri-file-list-3-line:before{content:"\ecef"}.ri-file-list-fill:before{content:"\ecf0"}.ri-file-list-line:before{content:"\ecf1"}.ri-file-lock-fill:before{content:"\ecf2"}.ri-file-lock-line:before{content:"\ecf3"}.ri-file-mark-fill:before{content:"\ecf4"}.ri-file-mark-line:before{content:"\ecf5"}.ri-file-music-fill:before{content:"\ecf6"}.ri-file-music-line:before{content:"\ecf7"}.ri-file-paper-2-fill:before{content:"\ecf8"}.ri-file-paper-2-line:before{content:"\ecf9"}.ri-file-paper-fill:before{content:"\ecfa"}.ri-file-paper-line:before{content:"\ecfb"}.ri-file-pdf-fill:before{content:"\ecfc"}.ri-file-pdf-line:before{content:"\ecfd"}.ri-file-ppt-2-fill:before{content:"\ecfe"}.ri-file-ppt-2-line:before{content:"\ecff"}.ri-file-ppt-fill:before{content:"\ed00"}.ri-file-ppt-line:before{content:"\ed01"}.ri-file-reduce-fill:before{content:"\ed02"}.ri-file-reduce-line:before{content:"\ed03"}.ri-file-search-fill:before{content:"\ed04"}.ri-file-search-line:before{content:"\ed05"}.ri-file-settings-fill:before{content:"\ed06"}.ri-file-settings-line:before{content:"\ed07"}.ri-file-shield-2-fill:before{content:"\ed08"}.ri-file-shield-2-line:before{content:"\ed09"}.ri-file-shield-fill:before{content:"\ed0a"}.ri-file-shield-line:before{content:"\ed0b"}.ri-file-shred-fill:before{content:"\ed0c"}.ri-file-shred-line:before{content:"\ed0d"}.ri-file-text-fill:before{content:"\ed0e"}.ri-file-text-line:before{content:"\ed0f"}.ri-file-transfer-fill:before{content:"\ed10"}.ri-file-transfer-line:before{content:"\ed11"}.ri-file-unknow-fill:before{content:"\ed12"}.ri-file-unknow-line:before{content:"\ed13"}.ri-file-upload-fill:before{content:"\ed14"}.ri-file-upload-line:before{content:"\ed15"}.ri-file-user-fill:before{content:"\ed16"}.ri-file-user-line:before{content:"\ed17"}.ri-file-warning-fill:before{content:"\ed18"}.ri-file-warning-line:before{content:"\ed19"}.ri-file-word-2-fill:before{content:"\ed1a"}.ri-file-word-2-line:before{content:"\ed1b"}.ri-file-word-fill:before{content:"\ed1c"}.ri-file-word-line:before{content:"\ed1d"}.ri-file-zip-fill:before{content:"\ed1e"}.ri-file-zip-line:before{content:"\ed1f"}.ri-film-fill:before{content:"\ed20"}.ri-film-line:before{content:"\ed21"}.ri-filter-2-fill:before{content:"\ed22"}.ri-filter-2-line:before{content:"\ed23"}.ri-filter-3-fill:before{content:"\ed24"}.ri-filter-3-line:before{content:"\ed25"}.ri-filter-fill:before{content:"\ed26"}.ri-filter-line:before{content:"\ed27"}.ri-filter-off-fill:before{content:"\ed28"}.ri-filter-off-line:before{content:"\ed29"}.ri-find-replace-fill:before{content:"\ed2a"}.ri-find-replace-line:before{content:"\ed2b"}.ri-finder-fill:before{content:"\ed2c"}.ri-finder-line:before{content:"\ed2d"}.ri-fingerprint-2-fill:before{content:"\ed2e"}.ri-fingerprint-2-line:before{content:"\ed2f"}.ri-fingerprint-fill:before{content:"\ed30"}.ri-fingerprint-line:before{content:"\ed31"}.ri-fire-fill:before{content:"\ed32"}.ri-fire-line:before{content:"\ed33"}.ri-firefox-fill:before{content:"\ed34"}.ri-firefox-line:before{content:"\ed35"}.ri-first-aid-kit-fill:before{content:"\ed36"}.ri-first-aid-kit-line:before{content:"\ed37"}.ri-flag-2-fill:before{content:"\ed38"}.ri-flag-2-line:before{content:"\ed39"}.ri-flag-fill:before{content:"\ed3a"}.ri-flag-line:before{content:"\ed3b"}.ri-flashlight-fill:before{content:"\ed3c"}.ri-flashlight-line:before{content:"\ed3d"}.ri-flask-fill:before{content:"\ed3e"}.ri-flask-line:before{content:"\ed3f"}.ri-flight-land-fill:before{content:"\ed40"}.ri-flight-land-line:before{content:"\ed41"}.ri-flight-takeoff-fill:before{content:"\ed42"}.ri-flight-takeoff-line:before{content:"\ed43"}.ri-flood-fill:before{content:"\ed44"}.ri-flood-line:before{content:"\ed45"}.ri-flow-chart:before{content:"\ed46"}.ri-flutter-fill:before{content:"\ed47"}.ri-flutter-line:before{content:"\ed48"}.ri-focus-2-fill:before{content:"\ed49"}.ri-focus-2-line:before{content:"\ed4a"}.ri-focus-3-fill:before{content:"\ed4b"}.ri-focus-3-line:before{content:"\ed4c"}.ri-focus-fill:before{content:"\ed4d"}.ri-focus-line:before{content:"\ed4e"}.ri-foggy-fill:before{content:"\ed4f"}.ri-foggy-line:before{content:"\ed50"}.ri-folder-2-fill:before{content:"\ed51"}.ri-folder-2-line:before{content:"\ed52"}.ri-folder-3-fill:before{content:"\ed53"}.ri-folder-3-line:before{content:"\ed54"}.ri-folder-4-fill:before{content:"\ed55"}.ri-folder-4-line:before{content:"\ed56"}.ri-folder-5-fill:before{content:"\ed57"}.ri-folder-5-line:before{content:"\ed58"}.ri-folder-add-fill:before{content:"\ed59"}.ri-folder-add-line:before{content:"\ed5a"}.ri-folder-chart-2-fill:before{content:"\ed5b"}.ri-folder-chart-2-line:before{content:"\ed5c"}.ri-folder-chart-fill:before{content:"\ed5d"}.ri-folder-chart-line:before{content:"\ed5e"}.ri-folder-download-fill:before{content:"\ed5f"}.ri-folder-download-line:before{content:"\ed60"}.ri-folder-fill:before{content:"\ed61"}.ri-folder-forbid-fill:before{content:"\ed62"}.ri-folder-forbid-line:before{content:"\ed63"}.ri-folder-history-fill:before{content:"\ed64"}.ri-folder-history-line:before{content:"\ed65"}.ri-folder-info-fill:before{content:"\ed66"}.ri-folder-info-line:before{content:"\ed67"}.ri-folder-keyhole-fill:before{content:"\ed68"}.ri-folder-keyhole-line:before{content:"\ed69"}.ri-folder-line:before{content:"\ed6a"}.ri-folder-lock-fill:before{content:"\ed6b"}.ri-folder-lock-line:before{content:"\ed6c"}.ri-folder-music-fill:before{content:"\ed6d"}.ri-folder-music-line:before{content:"\ed6e"}.ri-folder-open-fill:before{content:"\ed6f"}.ri-folder-open-line:before{content:"\ed70"}.ri-folder-received-fill:before{content:"\ed71"}.ri-folder-received-line:before{content:"\ed72"}.ri-folder-reduce-fill:before{content:"\ed73"}.ri-folder-reduce-line:before{content:"\ed74"}.ri-folder-settings-fill:before{content:"\ed75"}.ri-folder-settings-line:before{content:"\ed76"}.ri-folder-shared-fill:before{content:"\ed77"}.ri-folder-shared-line:before{content:"\ed78"}.ri-folder-shield-2-fill:before{content:"\ed79"}.ri-folder-shield-2-line:before{content:"\ed7a"}.ri-folder-shield-fill:before{content:"\ed7b"}.ri-folder-shield-line:before{content:"\ed7c"}.ri-folder-transfer-fill:before{content:"\ed7d"}.ri-folder-transfer-line:before{content:"\ed7e"}.ri-folder-unknow-fill:before{content:"\ed7f"}.ri-folder-unknow-line:before{content:"\ed80"}.ri-folder-upload-fill:before{content:"\ed81"}.ri-folder-upload-line:before{content:"\ed82"}.ri-folder-user-fill:before{content:"\ed83"}.ri-folder-user-line:before{content:"\ed84"}.ri-folder-warning-fill:before{content:"\ed85"}.ri-folder-warning-line:before{content:"\ed86"}.ri-folder-zip-fill:before{content:"\ed87"}.ri-folder-zip-line:before{content:"\ed88"}.ri-folders-fill:before{content:"\ed89"}.ri-folders-line:before{content:"\ed8a"}.ri-font-color:before{content:"\ed8b"}.ri-font-size-2:before{content:"\ed8c"}.ri-font-size:before{content:"\ed8d"}.ri-football-fill:before{content:"\ed8e"}.ri-football-line:before{content:"\ed8f"}.ri-footprint-fill:before{content:"\ed90"}.ri-footprint-line:before{content:"\ed91"}.ri-forbid-2-fill:before{content:"\ed92"}.ri-forbid-2-line:before{content:"\ed93"}.ri-forbid-fill:before{content:"\ed94"}.ri-forbid-line:before{content:"\ed95"}.ri-format-clear:before{content:"\ed96"}.ri-fridge-fill:before{content:"\ed97"}.ri-fridge-line:before{content:"\ed98"}.ri-fullscreen-exit-fill:before{content:"\ed99"}.ri-fullscreen-exit-line:before{content:"\ed9a"}.ri-fullscreen-fill:before{content:"\ed9b"}.ri-fullscreen-line:before{content:"\ed9c"}.ri-function-fill:before{content:"\ed9d"}.ri-function-line:before{content:"\ed9e"}.ri-functions:before{content:"\ed9f"}.ri-funds-box-fill:before{content:"\eda0"}.ri-funds-box-line:before{content:"\eda1"}.ri-funds-fill:before{content:"\eda2"}.ri-funds-line:before{content:"\eda3"}.ri-gallery-fill:before{content:"\eda4"}.ri-gallery-line:before{content:"\eda5"}.ri-gallery-upload-fill:before{content:"\eda6"}.ri-gallery-upload-line:before{content:"\eda7"}.ri-game-fill:before{content:"\eda8"}.ri-game-line:before{content:"\eda9"}.ri-gamepad-fill:before{content:"\edaa"}.ri-gamepad-line:before{content:"\edab"}.ri-gas-station-fill:before{content:"\edac"}.ri-gas-station-line:before{content:"\edad"}.ri-gatsby-fill:before{content:"\edae"}.ri-gatsby-line:before{content:"\edaf"}.ri-genderless-fill:before{content:"\edb0"}.ri-genderless-line:before{content:"\edb1"}.ri-ghost-2-fill:before{content:"\edb2"}.ri-ghost-2-line:before{content:"\edb3"}.ri-ghost-fill:before{content:"\edb4"}.ri-ghost-line:before{content:"\edb5"}.ri-ghost-smile-fill:before{content:"\edb6"}.ri-ghost-smile-line:before{content:"\edb7"}.ri-gift-2-fill:before{content:"\edb8"}.ri-gift-2-line:before{content:"\edb9"}.ri-gift-fill:before{content:"\edba"}.ri-gift-line:before{content:"\edbb"}.ri-git-branch-fill:before{content:"\edbc"}.ri-git-branch-line:before{content:"\edbd"}.ri-git-commit-fill:before{content:"\edbe"}.ri-git-commit-line:before{content:"\edbf"}.ri-git-merge-fill:before{content:"\edc0"}.ri-git-merge-line:before{content:"\edc1"}.ri-git-pull-request-fill:before{content:"\edc2"}.ri-git-pull-request-line:before{content:"\edc3"}.ri-git-repository-commits-fill:before{content:"\edc4"}.ri-git-repository-commits-line:before{content:"\edc5"}.ri-git-repository-fill:before{content:"\edc6"}.ri-git-repository-line:before{content:"\edc7"}.ri-git-repository-private-fill:before{content:"\edc8"}.ri-git-repository-private-line:before{content:"\edc9"}.ri-github-fill:before{content:"\edca"}.ri-github-line:before{content:"\edcb"}.ri-gitlab-fill:before{content:"\edcc"}.ri-gitlab-line:before{content:"\edcd"}.ri-global-fill:before{content:"\edce"}.ri-global-line:before{content:"\edcf"}.ri-globe-fill:before{content:"\edd0"}.ri-globe-line:before{content:"\edd1"}.ri-goblet-fill:before{content:"\edd2"}.ri-goblet-line:before{content:"\edd3"}.ri-google-fill:before{content:"\edd4"}.ri-google-line:before{content:"\edd5"}.ri-google-play-fill:before{content:"\edd6"}.ri-google-play-line:before{content:"\edd7"}.ri-government-fill:before{content:"\edd8"}.ri-government-line:before{content:"\edd9"}.ri-gps-fill:before{content:"\edda"}.ri-gps-line:before{content:"\eddb"}.ri-gradienter-fill:before{content:"\eddc"}.ri-gradienter-line:before{content:"\eddd"}.ri-grid-fill:before{content:"\edde"}.ri-grid-line:before{content:"\eddf"}.ri-group-2-fill:before{content:"\ede0"}.ri-group-2-line:before{content:"\ede1"}.ri-group-fill:before{content:"\ede2"}.ri-group-line:before{content:"\ede3"}.ri-guide-fill:before{content:"\ede4"}.ri-guide-line:before{content:"\ede5"}.ri-h-1:before{content:"\ede6"}.ri-h-2:before{content:"\ede7"}.ri-h-3:before{content:"\ede8"}.ri-h-4:before{content:"\ede9"}.ri-h-5:before{content:"\edea"}.ri-h-6:before{content:"\edeb"}.ri-hail-fill:before{content:"\edec"}.ri-hail-line:before{content:"\eded"}.ri-hammer-fill:before{content:"\edee"}.ri-hammer-line:before{content:"\edef"}.ri-hand-coin-fill:before{content:"\edf0"}.ri-hand-coin-line:before{content:"\edf1"}.ri-hand-heart-fill:before{content:"\edf2"}.ri-hand-heart-line:before{content:"\edf3"}.ri-hand-sanitizer-fill:before{content:"\edf4"}.ri-hand-sanitizer-line:before{content:"\edf5"}.ri-handbag-fill:before{content:"\edf6"}.ri-handbag-line:before{content:"\edf7"}.ri-hard-drive-2-fill:before{content:"\edf8"}.ri-hard-drive-2-line:before{content:"\edf9"}.ri-hard-drive-fill:before{content:"\edfa"}.ri-hard-drive-line:before{content:"\edfb"}.ri-hashtag:before{content:"\edfc"}.ri-haze-2-fill:before{content:"\edfd"}.ri-haze-2-line:before{content:"\edfe"}.ri-haze-fill:before{content:"\edff"}.ri-haze-line:before{content:"\ee00"}.ri-hd-fill:before{content:"\ee01"}.ri-hd-line:before{content:"\ee02"}.ri-heading:before{content:"\ee03"}.ri-headphone-fill:before{content:"\ee04"}.ri-headphone-line:before{content:"\ee05"}.ri-health-book-fill:before{content:"\ee06"}.ri-health-book-line:before{content:"\ee07"}.ri-heart-2-fill:before{content:"\ee08"}.ri-heart-2-line:before{content:"\ee09"}.ri-heart-3-fill:before{content:"\ee0a"}.ri-heart-3-line:before{content:"\ee0b"}.ri-heart-add-fill:before{content:"\ee0c"}.ri-heart-add-line:before{content:"\ee0d"}.ri-heart-fill:before{content:"\ee0e"}.ri-heart-line:before{content:"\ee0f"}.ri-heart-pulse-fill:before{content:"\ee10"}.ri-heart-pulse-line:before{content:"\ee11"}.ri-hearts-fill:before{content:"\ee12"}.ri-hearts-line:before{content:"\ee13"}.ri-heavy-showers-fill:before{content:"\ee14"}.ri-heavy-showers-line:before{content:"\ee15"}.ri-history-fill:before{content:"\ee16"}.ri-history-line:before{content:"\ee17"}.ri-home-2-fill:before{content:"\ee18"}.ri-home-2-line:before{content:"\ee19"}.ri-home-3-fill:before{content:"\ee1a"}.ri-home-3-line:before{content:"\ee1b"}.ri-home-4-fill:before{content:"\ee1c"}.ri-home-4-line:before{content:"\ee1d"}.ri-home-5-fill:before{content:"\ee1e"}.ri-home-5-line:before{content:"\ee1f"}.ri-home-6-fill:before{content:"\ee20"}.ri-home-6-line:before{content:"\ee21"}.ri-home-7-fill:before{content:"\ee22"}.ri-home-7-line:before{content:"\ee23"}.ri-home-8-fill:before{content:"\ee24"}.ri-home-8-line:before{content:"\ee25"}.ri-home-fill:before{content:"\ee26"}.ri-home-gear-fill:before{content:"\ee27"}.ri-home-gear-line:before{content:"\ee28"}.ri-home-heart-fill:before{content:"\ee29"}.ri-home-heart-line:before{content:"\ee2a"}.ri-home-line:before{content:"\ee2b"}.ri-home-smile-2-fill:before{content:"\ee2c"}.ri-home-smile-2-line:before{content:"\ee2d"}.ri-home-smile-fill:before{content:"\ee2e"}.ri-home-smile-line:before{content:"\ee2f"}.ri-home-wifi-fill:before{content:"\ee30"}.ri-home-wifi-line:before{content:"\ee31"}.ri-honor-of-kings-fill:before{content:"\ee32"}.ri-honor-of-kings-line:before{content:"\ee33"}.ri-honour-fill:before{content:"\ee34"}.ri-honour-line:before{content:"\ee35"}.ri-hospital-fill:before{content:"\ee36"}.ri-hospital-line:before{content:"\ee37"}.ri-hotel-bed-fill:before{content:"\ee38"}.ri-hotel-bed-line:before{content:"\ee39"}.ri-hotel-fill:before{content:"\ee3a"}.ri-hotel-line:before{content:"\ee3b"}.ri-hotspot-fill:before{content:"\ee3c"}.ri-hotspot-line:before{content:"\ee3d"}.ri-hq-fill:before{content:"\ee3e"}.ri-hq-line:before{content:"\ee3f"}.ri-html5-fill:before{content:"\ee40"}.ri-html5-line:before{content:"\ee41"}.ri-ie-fill:before{content:"\ee42"}.ri-ie-line:before{content:"\ee43"}.ri-image-2-fill:before{content:"\ee44"}.ri-image-2-line:before{content:"\ee45"}.ri-image-add-fill:before{content:"\ee46"}.ri-image-add-line:before{content:"\ee47"}.ri-image-edit-fill:before{content:"\ee48"}.ri-image-edit-line:before{content:"\ee49"}.ri-image-fill:before{content:"\ee4a"}.ri-image-line:before{content:"\ee4b"}.ri-inbox-archive-fill:before{content:"\ee4c"}.ri-inbox-archive-line:before{content:"\ee4d"}.ri-inbox-fill:before{content:"\ee4e"}.ri-inbox-line:before{content:"\ee4f"}.ri-inbox-unarchive-fill:before{content:"\ee50"}.ri-inbox-unarchive-line:before{content:"\ee51"}.ri-increase-decrease-fill:before{content:"\ee52"}.ri-increase-decrease-line:before{content:"\ee53"}.ri-indent-decrease:before{content:"\ee54"}.ri-indent-increase:before{content:"\ee55"}.ri-indeterminate-circle-fill:before{content:"\ee56"}.ri-indeterminate-circle-line:before{content:"\ee57"}.ri-information-fill:before{content:"\ee58"}.ri-information-line:before{content:"\ee59"}.ri-infrared-thermometer-fill:before{content:"\ee5a"}.ri-infrared-thermometer-line:before{content:"\ee5b"}.ri-ink-bottle-fill:before{content:"\ee5c"}.ri-ink-bottle-line:before{content:"\ee5d"}.ri-input-cursor-move:before{content:"\ee5e"}.ri-input-method-fill:before{content:"\ee5f"}.ri-input-method-line:before{content:"\ee60"}.ri-insert-column-left:before{content:"\ee61"}.ri-insert-column-right:before{content:"\ee62"}.ri-insert-row-bottom:before{content:"\ee63"}.ri-insert-row-top:before{content:"\ee64"}.ri-instagram-fill:before{content:"\ee65"}.ri-instagram-line:before{content:"\ee66"}.ri-install-fill:before{content:"\ee67"}.ri-install-line:before{content:"\ee68"}.ri-invision-fill:before{content:"\ee69"}.ri-invision-line:before{content:"\ee6a"}.ri-italic:before{content:"\ee6b"}.ri-kakao-talk-fill:before{content:"\ee6c"}.ri-kakao-talk-line:before{content:"\ee6d"}.ri-key-2-fill:before{content:"\ee6e"}.ri-key-2-line:before{content:"\ee6f"}.ri-key-fill:before{content:"\ee70"}.ri-key-line:before{content:"\ee71"}.ri-keyboard-box-fill:before{content:"\ee72"}.ri-keyboard-box-line:before{content:"\ee73"}.ri-keyboard-fill:before{content:"\ee74"}.ri-keyboard-line:before{content:"\ee75"}.ri-keynote-fill:before{content:"\ee76"}.ri-keynote-line:before{content:"\ee77"}.ri-knife-blood-fill:before{content:"\ee78"}.ri-knife-blood-line:before{content:"\ee79"}.ri-knife-fill:before{content:"\ee7a"}.ri-knife-line:before{content:"\ee7b"}.ri-landscape-fill:before{content:"\ee7c"}.ri-landscape-line:before{content:"\ee7d"}.ri-layout-2-fill:before{content:"\ee7e"}.ri-layout-2-line:before{content:"\ee7f"}.ri-layout-3-fill:before{content:"\ee80"}.ri-layout-3-line:before{content:"\ee81"}.ri-layout-4-fill:before{content:"\ee82"}.ri-layout-4-line:before{content:"\ee83"}.ri-layout-5-fill:before{content:"\ee84"}.ri-layout-5-line:before{content:"\ee85"}.ri-layout-6-fill:before{content:"\ee86"}.ri-layout-6-line:before{content:"\ee87"}.ri-layout-bottom-2-fill:before{content:"\ee88"}.ri-layout-bottom-2-line:before{content:"\ee89"}.ri-layout-bottom-fill:before{content:"\ee8a"}.ri-layout-bottom-line:before{content:"\ee8b"}.ri-layout-column-fill:before{content:"\ee8c"}.ri-layout-column-line:before{content:"\ee8d"}.ri-layout-fill:before{content:"\ee8e"}.ri-layout-grid-fill:before{content:"\ee8f"}.ri-layout-grid-line:before{content:"\ee90"}.ri-layout-left-2-fill:before{content:"\ee91"}.ri-layout-left-2-line:before{content:"\ee92"}.ri-layout-left-fill:before{content:"\ee93"}.ri-layout-left-line:before{content:"\ee94"}.ri-layout-line:before{content:"\ee95"}.ri-layout-masonry-fill:before{content:"\ee96"}.ri-layout-masonry-line:before{content:"\ee97"}.ri-layout-right-2-fill:before{content:"\ee98"}.ri-layout-right-2-line:before{content:"\ee99"}.ri-layout-right-fill:before{content:"\ee9a"}.ri-layout-right-line:before{content:"\ee9b"}.ri-layout-row-fill:before{content:"\ee9c"}.ri-layout-row-line:before{content:"\ee9d"}.ri-layout-top-2-fill:before{content:"\ee9e"}.ri-layout-top-2-line:before{content:"\ee9f"}.ri-layout-top-fill:before{content:"\eea0"}.ri-layout-top-line:before{content:"\eea1"}.ri-leaf-fill:before{content:"\eea2"}.ri-leaf-line:before{content:"\eea3"}.ri-lifebuoy-fill:before{content:"\eea4"}.ri-lifebuoy-line:before{content:"\eea5"}.ri-lightbulb-fill:before{content:"\eea6"}.ri-lightbulb-flash-fill:before{content:"\eea7"}.ri-lightbulb-flash-line:before{content:"\eea8"}.ri-lightbulb-line:before{content:"\eea9"}.ri-line-chart-fill:before{content:"\eeaa"}.ri-line-chart-line:before{content:"\eeab"}.ri-line-fill:before{content:"\eeac"}.ri-line-height:before{content:"\eead"}.ri-line-line:before{content:"\eeae"}.ri-link-m:before{content:"\eeaf"}.ri-link-unlink-m:before{content:"\eeb0"}.ri-link-unlink:before{content:"\eeb1"}.ri-link:before{content:"\eeb2"}.ri-linkedin-box-fill:before{content:"\eeb3"}.ri-linkedin-box-line:before{content:"\eeb4"}.ri-linkedin-fill:before{content:"\eeb5"}.ri-linkedin-line:before{content:"\eeb6"}.ri-links-fill:before{content:"\eeb7"}.ri-links-line:before{content:"\eeb8"}.ri-list-check-2:before{content:"\eeb9"}.ri-list-check:before{content:"\eeba"}.ri-list-ordered:before{content:"\eebb"}.ri-list-settings-fill:before{content:"\eebc"}.ri-list-settings-line:before{content:"\eebd"}.ri-list-unordered:before{content:"\eebe"}.ri-live-fill:before{content:"\eebf"}.ri-live-line:before{content:"\eec0"}.ri-loader-2-fill:before{content:"\eec1"}.ri-loader-2-line:before{content:"\eec2"}.ri-loader-3-fill:before{content:"\eec3"}.ri-loader-3-line:before{content:"\eec4"}.ri-loader-4-fill:before{content:"\eec5"}.ri-loader-4-line:before{content:"\eec6"}.ri-loader-5-fill:before{content:"\eec7"}.ri-loader-5-line:before{content:"\eec8"}.ri-loader-fill:before{content:"\eec9"}.ri-loader-line:before{content:"\eeca"}.ri-lock-2-fill:before{content:"\eecb"}.ri-lock-2-line:before{content:"\eecc"}.ri-lock-fill:before{content:"\eecd"}.ri-lock-line:before{content:"\eece"}.ri-lock-password-fill:before{content:"\eecf"}.ri-lock-password-line:before{content:"\eed0"}.ri-lock-unlock-fill:before{content:"\eed1"}.ri-lock-unlock-line:before{content:"\eed2"}.ri-login-box-fill:before{content:"\eed3"}.ri-login-box-line:before{content:"\eed4"}.ri-login-circle-fill:before{content:"\eed5"}.ri-login-circle-line:before{content:"\eed6"}.ri-logout-box-fill:before{content:"\eed7"}.ri-logout-box-line:before{content:"\eed8"}.ri-logout-box-r-fill:before{content:"\eed9"}.ri-logout-box-r-line:before{content:"\eeda"}.ri-logout-circle-fill:before{content:"\eedb"}.ri-logout-circle-line:before{content:"\eedc"}.ri-logout-circle-r-fill:before{content:"\eedd"}.ri-logout-circle-r-line:before{content:"\eede"}.ri-luggage-cart-fill:before{content:"\eedf"}.ri-luggage-cart-line:before{content:"\eee0"}.ri-luggage-deposit-fill:before{content:"\eee1"}.ri-luggage-deposit-line:before{content:"\eee2"}.ri-lungs-fill:before{content:"\eee3"}.ri-lungs-line:before{content:"\eee4"}.ri-mac-fill:before{content:"\eee5"}.ri-mac-line:before{content:"\eee6"}.ri-macbook-fill:before{content:"\eee7"}.ri-macbook-line:before{content:"\eee8"}.ri-magic-fill:before{content:"\eee9"}.ri-magic-line:before{content:"\eeea"}.ri-mail-add-fill:before{content:"\eeeb"}.ri-mail-add-line:before{content:"\eeec"}.ri-mail-check-fill:before{content:"\eeed"}.ri-mail-check-line:before{content:"\eeee"}.ri-mail-close-fill:before{content:"\eeef"}.ri-mail-close-line:before{content:"\eef0"}.ri-mail-download-fill:before{content:"\eef1"}.ri-mail-download-line:before{content:"\eef2"}.ri-mail-fill:before{content:"\eef3"}.ri-mail-forbid-fill:before{content:"\eef4"}.ri-mail-forbid-line:before{content:"\eef5"}.ri-mail-line:before{content:"\eef6"}.ri-mail-lock-fill:before{content:"\eef7"}.ri-mail-lock-line:before{content:"\eef8"}.ri-mail-open-fill:before{content:"\eef9"}.ri-mail-open-line:before{content:"\eefa"}.ri-mail-send-fill:before{content:"\eefb"}.ri-mail-send-line:before{content:"\eefc"}.ri-mail-settings-fill:before{content:"\eefd"}.ri-mail-settings-line:before{content:"\eefe"}.ri-mail-star-fill:before{content:"\eeff"}.ri-mail-star-line:before{content:"\ef00"}.ri-mail-unread-fill:before{content:"\ef01"}.ri-mail-unread-line:before{content:"\ef02"}.ri-mail-volume-fill:before{content:"\ef03"}.ri-mail-volume-line:before{content:"\ef04"}.ri-map-2-fill:before{content:"\ef05"}.ri-map-2-line:before{content:"\ef06"}.ri-map-fill:before{content:"\ef07"}.ri-map-line:before{content:"\ef08"}.ri-map-pin-2-fill:before{content:"\ef09"}.ri-map-pin-2-line:before{content:"\ef0a"}.ri-map-pin-3-fill:before{content:"\ef0b"}.ri-map-pin-3-line:before{content:"\ef0c"}.ri-map-pin-4-fill:before{content:"\ef0d"}.ri-map-pin-4-line:before{content:"\ef0e"}.ri-map-pin-5-fill:before{content:"\ef0f"}.ri-map-pin-5-line:before{content:"\ef10"}.ri-map-pin-add-fill:before{content:"\ef11"}.ri-map-pin-add-line:before{content:"\ef12"}.ri-map-pin-fill:before{content:"\ef13"}.ri-map-pin-line:before{content:"\ef14"}.ri-map-pin-range-fill:before{content:"\ef15"}.ri-map-pin-range-line:before{content:"\ef16"}.ri-map-pin-time-fill:before{content:"\ef17"}.ri-map-pin-time-line:before{content:"\ef18"}.ri-map-pin-user-fill:before{content:"\ef19"}.ri-map-pin-user-line:before{content:"\ef1a"}.ri-mark-pen-fill:before{content:"\ef1b"}.ri-mark-pen-line:before{content:"\ef1c"}.ri-markdown-fill:before{content:"\ef1d"}.ri-markdown-line:before{content:"\ef1e"}.ri-markup-fill:before{content:"\ef1f"}.ri-markup-line:before{content:"\ef20"}.ri-mastercard-fill:before{content:"\ef21"}.ri-mastercard-line:before{content:"\ef22"}.ri-mastodon-fill:before{content:"\ef23"}.ri-mastodon-line:before{content:"\ef24"}.ri-medal-2-fill:before{content:"\ef25"}.ri-medal-2-line:before{content:"\ef26"}.ri-medal-fill:before{content:"\ef27"}.ri-medal-line:before{content:"\ef28"}.ri-medicine-bottle-fill:before{content:"\ef29"}.ri-medicine-bottle-line:before{content:"\ef2a"}.ri-medium-fill:before{content:"\ef2b"}.ri-medium-line:before{content:"\ef2c"}.ri-men-fill:before{content:"\ef2d"}.ri-men-line:before{content:"\ef2e"}.ri-mental-health-fill:before{content:"\ef2f"}.ri-mental-health-line:before{content:"\ef30"}.ri-menu-2-fill:before{content:"\ef31"}.ri-menu-2-line:before{content:"\ef32"}.ri-menu-3-fill:before{content:"\ef33"}.ri-menu-3-line:before{content:"\ef34"}.ri-menu-4-fill:before{content:"\ef35"}.ri-menu-4-line:before{content:"\ef36"}.ri-menu-5-fill:before{content:"\ef37"}.ri-menu-5-line:before{content:"\ef38"}.ri-menu-add-fill:before{content:"\ef39"}.ri-menu-add-line:before{content:"\ef3a"}.ri-menu-fill:before{content:"\ef3b"}.ri-menu-fold-fill:before{content:"\ef3c"}.ri-menu-fold-line:before{content:"\ef3d"}.ri-menu-line:before{content:"\ef3e"}.ri-menu-unfold-fill:before{content:"\ef3f"}.ri-menu-unfold-line:before{content:"\ef40"}.ri-merge-cells-horizontal:before{content:"\ef41"}.ri-merge-cells-vertical:before{content:"\ef42"}.ri-message-2-fill:before{content:"\ef43"}.ri-message-2-line:before{content:"\ef44"}.ri-message-3-fill:before{content:"\ef45"}.ri-message-3-line:before{content:"\ef46"}.ri-message-fill:before{content:"\ef47"}.ri-message-line:before{content:"\ef48"}.ri-messenger-fill:before{content:"\ef49"}.ri-messenger-line:before{content:"\ef4a"}.ri-meteor-fill:before{content:"\ef4b"}.ri-meteor-line:before{content:"\ef4c"}.ri-mic-2-fill:before{content:"\ef4d"}.ri-mic-2-line:before{content:"\ef4e"}.ri-mic-fill:before{content:"\ef4f"}.ri-mic-line:before{content:"\ef50"}.ri-mic-off-fill:before{content:"\ef51"}.ri-mic-off-line:before{content:"\ef52"}.ri-mickey-fill:before{content:"\ef53"}.ri-mickey-line:before{content:"\ef54"}.ri-microscope-fill:before{content:"\ef55"}.ri-microscope-line:before{content:"\ef56"}.ri-microsoft-fill:before{content:"\ef57"}.ri-microsoft-line:before{content:"\ef58"}.ri-mind-map:before{content:"\ef59"}.ri-mini-program-fill:before{content:"\ef5a"}.ri-mini-program-line:before{content:"\ef5b"}.ri-mist-fill:before{content:"\ef5c"}.ri-mist-line:before{content:"\ef5d"}.ri-money-cny-box-fill:before{content:"\ef5e"}.ri-money-cny-box-line:before{content:"\ef5f"}.ri-money-cny-circle-fill:before{content:"\ef60"}.ri-money-cny-circle-line:before{content:"\ef61"}.ri-money-dollar-box-fill:before{content:"\ef62"}.ri-money-dollar-box-line:before{content:"\ef63"}.ri-money-dollar-circle-fill:before{content:"\ef64"}.ri-money-dollar-circle-line:before{content:"\ef65"}.ri-money-euro-box-fill:before{content:"\ef66"}.ri-money-euro-box-line:before{content:"\ef67"}.ri-money-euro-circle-fill:before{content:"\ef68"}.ri-money-euro-circle-line:before{content:"\ef69"}.ri-money-pound-box-fill:before{content:"\ef6a"}.ri-money-pound-box-line:before{content:"\ef6b"}.ri-money-pound-circle-fill:before{content:"\ef6c"}.ri-money-pound-circle-line:before{content:"\ef6d"}.ri-moon-clear-fill:before{content:"\ef6e"}.ri-moon-clear-line:before{content:"\ef6f"}.ri-moon-cloudy-fill:before{content:"\ef70"}.ri-moon-cloudy-line:before{content:"\ef71"}.ri-moon-fill:before{content:"\ef72"}.ri-moon-foggy-fill:before{content:"\ef73"}.ri-moon-foggy-line:before{content:"\ef74"}.ri-moon-line:before{content:"\ef75"}.ri-more-2-fill:before{content:"\ef76"}.ri-more-2-line:before{content:"\ef77"}.ri-more-fill:before{content:"\ef78"}.ri-more-line:before{content:"\ef79"}.ri-motorbike-fill:before{content:"\ef7a"}.ri-motorbike-line:before{content:"\ef7b"}.ri-mouse-fill:before{content:"\ef7c"}.ri-mouse-line:before{content:"\ef7d"}.ri-movie-2-fill:before{content:"\ef7e"}.ri-movie-2-line:before{content:"\ef7f"}.ri-movie-fill:before{content:"\ef80"}.ri-movie-line:before{content:"\ef81"}.ri-music-2-fill:before{content:"\ef82"}.ri-music-2-line:before{content:"\ef83"}.ri-music-fill:before{content:"\ef84"}.ri-music-line:before{content:"\ef85"}.ri-mv-fill:before{content:"\ef86"}.ri-mv-line:before{content:"\ef87"}.ri-navigation-fill:before{content:"\ef88"}.ri-navigation-line:before{content:"\ef89"}.ri-netease-cloud-music-fill:before{content:"\ef8a"}.ri-netease-cloud-music-line:before{content:"\ef8b"}.ri-netflix-fill:before{content:"\ef8c"}.ri-netflix-line:before{content:"\ef8d"}.ri-newspaper-fill:before{content:"\ef8e"}.ri-newspaper-line:before{content:"\ef8f"}.ri-node-tree:before{content:"\ef90"}.ri-notification-2-fill:before{content:"\ef91"}.ri-notification-2-line:before{content:"\ef92"}.ri-notification-3-fill:before{content:"\ef93"}.ri-notification-3-line:before{content:"\ef94"}.ri-notification-4-fill:before{content:"\ef95"}.ri-notification-4-line:before{content:"\ef96"}.ri-notification-badge-fill:before{content:"\ef97"}.ri-notification-badge-line:before{content:"\ef98"}.ri-notification-fill:before{content:"\ef99"}.ri-notification-line:before{content:"\ef9a"}.ri-notification-off-fill:before{content:"\ef9b"}.ri-notification-off-line:before{content:"\ef9c"}.ri-npmjs-fill:before{content:"\ef9d"}.ri-npmjs-line:before{content:"\ef9e"}.ri-number-0:before{content:"\ef9f"}.ri-number-1:before{content:"\efa0"}.ri-number-2:before{content:"\efa1"}.ri-number-3:before{content:"\efa2"}.ri-number-4:before{content:"\efa3"}.ri-number-5:before{content:"\efa4"}.ri-number-6:before{content:"\efa5"}.ri-number-7:before{content:"\efa6"}.ri-number-8:before{content:"\efa7"}.ri-number-9:before{content:"\efa8"}.ri-numbers-fill:before{content:"\efa9"}.ri-numbers-line:before{content:"\efaa"}.ri-nurse-fill:before{content:"\efab"}.ri-nurse-line:before{content:"\efac"}.ri-oil-fill:before{content:"\efad"}.ri-oil-line:before{content:"\efae"}.ri-omega:before{content:"\efaf"}.ri-open-arm-fill:before{content:"\efb0"}.ri-open-arm-line:before{content:"\efb1"}.ri-open-source-fill:before{content:"\efb2"}.ri-open-source-line:before{content:"\efb3"}.ri-opera-fill:before{content:"\efb4"}.ri-opera-line:before{content:"\efb5"}.ri-order-play-fill:before{content:"\efb6"}.ri-order-play-line:before{content:"\efb7"}.ri-organization-chart:before{content:"\efb8"}.ri-outlet-2-fill:before{content:"\efb9"}.ri-outlet-2-line:before{content:"\efba"}.ri-outlet-fill:before{content:"\efbb"}.ri-outlet-line:before{content:"\efbc"}.ri-page-separator:before{content:"\efbd"}.ri-pages-fill:before{content:"\efbe"}.ri-pages-line:before{content:"\efbf"}.ri-paint-brush-fill:before{content:"\efc0"}.ri-paint-brush-line:before{content:"\efc1"}.ri-paint-fill:before{content:"\efc2"}.ri-paint-line:before{content:"\efc3"}.ri-palette-fill:before{content:"\efc4"}.ri-palette-line:before{content:"\efc5"}.ri-pantone-fill:before{content:"\efc6"}.ri-pantone-line:before{content:"\efc7"}.ri-paragraph:before{content:"\efc8"}.ri-parent-fill:before{content:"\efc9"}.ri-parent-line:before{content:"\efca"}.ri-parentheses-fill:before{content:"\efcb"}.ri-parentheses-line:before{content:"\efcc"}.ri-parking-box-fill:before{content:"\efcd"}.ri-parking-box-line:before{content:"\efce"}.ri-parking-fill:before{content:"\efcf"}.ri-parking-line:before{content:"\efd0"}.ri-passport-fill:before{content:"\efd1"}.ri-passport-line:before{content:"\efd2"}.ri-patreon-fill:before{content:"\efd3"}.ri-patreon-line:before{content:"\efd4"}.ri-pause-circle-fill:before{content:"\efd5"}.ri-pause-circle-line:before{content:"\efd6"}.ri-pause-fill:before{content:"\efd7"}.ri-pause-line:before{content:"\efd8"}.ri-pause-mini-fill:before{content:"\efd9"}.ri-pause-mini-line:before{content:"\efda"}.ri-paypal-fill:before{content:"\efdb"}.ri-paypal-line:before{content:"\efdc"}.ri-pen-nib-fill:before{content:"\efdd"}.ri-pen-nib-line:before{content:"\efde"}.ri-pencil-fill:before{content:"\efdf"}.ri-pencil-line:before{content:"\efe0"}.ri-pencil-ruler-2-fill:before{content:"\efe1"}.ri-pencil-ruler-2-line:before{content:"\efe2"}.ri-pencil-ruler-fill:before{content:"\efe3"}.ri-pencil-ruler-line:before{content:"\efe4"}.ri-percent-fill:before{content:"\efe5"}.ri-percent-line:before{content:"\efe6"}.ri-phone-camera-fill:before{content:"\efe7"}.ri-phone-camera-line:before{content:"\efe8"}.ri-phone-fill:before{content:"\efe9"}.ri-phone-find-fill:before{content:"\efea"}.ri-phone-find-line:before{content:"\efeb"}.ri-phone-line:before{content:"\efec"}.ri-phone-lock-fill:before{content:"\efed"}.ri-phone-lock-line:before{content:"\efee"}.ri-picture-in-picture-2-fill:before{content:"\efef"}.ri-picture-in-picture-2-line:before{content:"\eff0"}.ri-picture-in-picture-exit-fill:before{content:"\eff1"}.ri-picture-in-picture-exit-line:before{content:"\eff2"}.ri-picture-in-picture-fill:before{content:"\eff3"}.ri-picture-in-picture-line:before{content:"\eff4"}.ri-pie-chart-2-fill:before{content:"\eff5"}.ri-pie-chart-2-line:before{content:"\eff6"}.ri-pie-chart-box-fill:before{content:"\eff7"}.ri-pie-chart-box-line:before{content:"\eff8"}.ri-pie-chart-fill:before{content:"\eff9"}.ri-pie-chart-line:before{content:"\effa"}.ri-pin-distance-fill:before{content:"\effb"}.ri-pin-distance-line:before{content:"\effc"}.ri-ping-pong-fill:before{content:"\effd"}.ri-ping-pong-line:before{content:"\effe"}.ri-pinterest-fill:before{content:"\efff"}.ri-pinterest-line:before{content:"\f000"}.ri-pinyin-input:before{content:"\f001"}.ri-pixelfed-fill:before{content:"\f002"}.ri-pixelfed-line:before{content:"\f003"}.ri-plane-fill:before{content:"\f004"}.ri-plane-line:before{content:"\f005"}.ri-plant-fill:before{content:"\f006"}.ri-plant-line:before{content:"\f007"}.ri-play-circle-fill:before{content:"\f008"}.ri-play-circle-line:before{content:"\f009"}.ri-play-fill:before{content:"\f00a"}.ri-play-line:before{content:"\f00b"}.ri-play-list-2-fill:before{content:"\f00c"}.ri-play-list-2-line:before{content:"\f00d"}.ri-play-list-add-fill:before{content:"\f00e"}.ri-play-list-add-line:before{content:"\f00f"}.ri-play-list-fill:before{content:"\f010"}.ri-play-list-line:before{content:"\f011"}.ri-play-mini-fill:before{content:"\f012"}.ri-play-mini-line:before{content:"\f013"}.ri-playstation-fill:before{content:"\f014"}.ri-playstation-line:before{content:"\f015"}.ri-plug-2-fill:before{content:"\f016"}.ri-plug-2-line:before{content:"\f017"}.ri-plug-fill:before{content:"\f018"}.ri-plug-line:before{content:"\f019"}.ri-polaroid-2-fill:before{content:"\f01a"}.ri-polaroid-2-line:before{content:"\f01b"}.ri-polaroid-fill:before{content:"\f01c"}.ri-polaroid-line:before{content:"\f01d"}.ri-police-car-fill:before{content:"\f01e"}.ri-police-car-line:before{content:"\f01f"}.ri-price-tag-2-fill:before{content:"\f020"}.ri-price-tag-2-line:before{content:"\f021"}.ri-price-tag-3-fill:before{content:"\f022"}.ri-price-tag-3-line:before{content:"\f023"}.ri-price-tag-fill:before{content:"\f024"}.ri-price-tag-line:before{content:"\f025"}.ri-printer-cloud-fill:before{content:"\f026"}.ri-printer-cloud-line:before{content:"\f027"}.ri-printer-fill:before{content:"\f028"}.ri-printer-line:before{content:"\f029"}.ri-product-hunt-fill:before{content:"\f02a"}.ri-product-hunt-line:before{content:"\f02b"}.ri-profile-fill:before{content:"\f02c"}.ri-profile-line:before{content:"\f02d"}.ri-projector-2-fill:before{content:"\f02e"}.ri-projector-2-line:before{content:"\f02f"}.ri-projector-fill:before{content:"\f030"}.ri-projector-line:before{content:"\f031"}.ri-psychotherapy-fill:before{content:"\f032"}.ri-psychotherapy-line:before{content:"\f033"}.ri-pulse-fill:before{content:"\f034"}.ri-pulse-line:before{content:"\f035"}.ri-pushpin-2-fill:before{content:"\f036"}.ri-pushpin-2-line:before{content:"\f037"}.ri-pushpin-fill:before{content:"\f038"}.ri-pushpin-line:before{content:"\f039"}.ri-qq-fill:before{content:"\f03a"}.ri-qq-line:before{content:"\f03b"}.ri-qr-code-fill:before{content:"\f03c"}.ri-qr-code-line:before{content:"\f03d"}.ri-qr-scan-2-fill:before{content:"\f03e"}.ri-qr-scan-2-line:before{content:"\f03f"}.ri-qr-scan-fill:before{content:"\f040"}.ri-qr-scan-line:before{content:"\f041"}.ri-question-answer-fill:before{content:"\f042"}.ri-question-answer-line:before{content:"\f043"}.ri-question-fill:before{content:"\f044"}.ri-question-line:before{content:"\f045"}.ri-question-mark:before{content:"\f046"}.ri-questionnaire-fill:before{content:"\f047"}.ri-questionnaire-line:before{content:"\f048"}.ri-quill-pen-fill:before{content:"\f049"}.ri-quill-pen-line:before{content:"\f04a"}.ri-radar-fill:before{content:"\f04b"}.ri-radar-line:before{content:"\f04c"}.ri-radio-2-fill:before{content:"\f04d"}.ri-radio-2-line:before{content:"\f04e"}.ri-radio-button-fill:before{content:"\f04f"}.ri-radio-button-line:before{content:"\f050"}.ri-radio-fill:before{content:"\f051"}.ri-radio-line:before{content:"\f052"}.ri-rainbow-fill:before{content:"\f053"}.ri-rainbow-line:before{content:"\f054"}.ri-rainy-fill:before{content:"\f055"}.ri-rainy-line:before{content:"\f056"}.ri-reactjs-fill:before{content:"\f057"}.ri-reactjs-line:before{content:"\f058"}.ri-record-circle-fill:before{content:"\f059"}.ri-record-circle-line:before{content:"\f05a"}.ri-record-mail-fill:before{content:"\f05b"}.ri-record-mail-line:before{content:"\f05c"}.ri-recycle-fill:before{content:"\f05d"}.ri-recycle-line:before{content:"\f05e"}.ri-red-packet-fill:before{content:"\f05f"}.ri-red-packet-line:before{content:"\f060"}.ri-reddit-fill:before{content:"\f061"}.ri-reddit-line:before{content:"\f062"}.ri-refresh-fill:before{content:"\f063"}.ri-refresh-line:before{content:"\f064"}.ri-refund-2-fill:before{content:"\f065"}.ri-refund-2-line:before{content:"\f066"}.ri-refund-fill:before{content:"\f067"}.ri-refund-line:before{content:"\f068"}.ri-registered-fill:before{content:"\f069"}.ri-registered-line:before{content:"\f06a"}.ri-remixicon-fill:before{content:"\f06b"}.ri-remixicon-line:before{content:"\f06c"}.ri-remote-control-2-fill:before{content:"\f06d"}.ri-remote-control-2-line:before{content:"\f06e"}.ri-remote-control-fill:before{content:"\f06f"}.ri-remote-control-line:before{content:"\f070"}.ri-repeat-2-fill:before{content:"\f071"}.ri-repeat-2-line:before{content:"\f072"}.ri-repeat-fill:before{content:"\f073"}.ri-repeat-line:before{content:"\f074"}.ri-repeat-one-fill:before{content:"\f075"}.ri-repeat-one-line:before{content:"\f076"}.ri-reply-all-fill:before{content:"\f077"}.ri-reply-all-line:before{content:"\f078"}.ri-reply-fill:before{content:"\f079"}.ri-reply-line:before{content:"\f07a"}.ri-reserved-fill:before{content:"\f07b"}.ri-reserved-line:before{content:"\f07c"}.ri-rest-time-fill:before{content:"\f07d"}.ri-rest-time-line:before{content:"\f07e"}.ri-restart-fill:before{content:"\f07f"}.ri-restart-line:before{content:"\f080"}.ri-restaurant-2-fill:before{content:"\f081"}.ri-restaurant-2-line:before{content:"\f082"}.ri-restaurant-fill:before{content:"\f083"}.ri-restaurant-line:before{content:"\f084"}.ri-rewind-fill:before{content:"\f085"}.ri-rewind-line:before{content:"\f086"}.ri-rewind-mini-fill:before{content:"\f087"}.ri-rewind-mini-line:before{content:"\f088"}.ri-rhythm-fill:before{content:"\f089"}.ri-rhythm-line:before{content:"\f08a"}.ri-riding-fill:before{content:"\f08b"}.ri-riding-line:before{content:"\f08c"}.ri-road-map-fill:before{content:"\f08d"}.ri-road-map-line:before{content:"\f08e"}.ri-roadster-fill:before{content:"\f08f"}.ri-roadster-line:before{content:"\f090"}.ri-robot-fill:before{content:"\f091"}.ri-robot-line:before{content:"\f092"}.ri-rocket-2-fill:before{content:"\f093"}.ri-rocket-2-line:before{content:"\f094"}.ri-rocket-fill:before{content:"\f095"}.ri-rocket-line:before{content:"\f096"}.ri-rotate-lock-fill:before{content:"\f097"}.ri-rotate-lock-line:before{content:"\f098"}.ri-rounded-corner:before{content:"\f099"}.ri-route-fill:before{content:"\f09a"}.ri-route-line:before{content:"\f09b"}.ri-router-fill:before{content:"\f09c"}.ri-router-line:before{content:"\f09d"}.ri-rss-fill:before{content:"\f09e"}.ri-rss-line:before{content:"\f09f"}.ri-ruler-2-fill:before{content:"\f0a0"}.ri-ruler-2-line:before{content:"\f0a1"}.ri-ruler-fill:before{content:"\f0a2"}.ri-ruler-line:before{content:"\f0a3"}.ri-run-fill:before{content:"\f0a4"}.ri-run-line:before{content:"\f0a5"}.ri-safari-fill:before{content:"\f0a6"}.ri-safari-line:before{content:"\f0a7"}.ri-safe-2-fill:before{content:"\f0a8"}.ri-safe-2-line:before{content:"\f0a9"}.ri-safe-fill:before{content:"\f0aa"}.ri-safe-line:before{content:"\f0ab"}.ri-sailboat-fill:before{content:"\f0ac"}.ri-sailboat-line:before{content:"\f0ad"}.ri-save-2-fill:before{content:"\f0ae"}.ri-save-2-line:before{content:"\f0af"}.ri-save-3-fill:before{content:"\f0b0"}.ri-save-3-line:before{content:"\f0b1"}.ri-save-fill:before{content:"\f0b2"}.ri-save-line:before{content:"\f0b3"}.ri-scales-2-fill:before{content:"\f0b4"}.ri-scales-2-line:before{content:"\f0b5"}.ri-scales-3-fill:before{content:"\f0b6"}.ri-scales-3-line:before{content:"\f0b7"}.ri-scales-fill:before{content:"\f0b8"}.ri-scales-line:before{content:"\f0b9"}.ri-scan-2-fill:before{content:"\f0ba"}.ri-scan-2-line:before{content:"\f0bb"}.ri-scan-fill:before{content:"\f0bc"}.ri-scan-line:before{content:"\f0bd"}.ri-scissors-2-fill:before{content:"\f0be"}.ri-scissors-2-line:before{content:"\f0bf"}.ri-scissors-cut-fill:before{content:"\f0c0"}.ri-scissors-cut-line:before{content:"\f0c1"}.ri-scissors-fill:before{content:"\f0c2"}.ri-scissors-line:before{content:"\f0c3"}.ri-screenshot-2-fill:before{content:"\f0c4"}.ri-screenshot-2-line:before{content:"\f0c5"}.ri-screenshot-fill:before{content:"\f0c6"}.ri-screenshot-line:before{content:"\f0c7"}.ri-sd-card-fill:before{content:"\f0c8"}.ri-sd-card-line:before{content:"\f0c9"}.ri-sd-card-mini-fill:before{content:"\f0ca"}.ri-sd-card-mini-line:before{content:"\f0cb"}.ri-search-2-fill:before{content:"\f0cc"}.ri-search-2-line:before{content:"\f0cd"}.ri-search-eye-fill:before{content:"\f0ce"}.ri-search-eye-line:before{content:"\f0cf"}.ri-search-fill:before{content:"\f0d0"}.ri-search-line:before{content:"\f0d1"}.ri-secure-payment-fill:before{content:"\f0d2"}.ri-secure-payment-line:before{content:"\f0d3"}.ri-seedling-fill:before{content:"\f0d4"}.ri-seedling-line:before{content:"\f0d5"}.ri-send-backward:before{content:"\f0d6"}.ri-send-plane-2-fill:before{content:"\f0d7"}.ri-send-plane-2-line:before{content:"\f0d8"}.ri-send-plane-fill:before{content:"\f0d9"}.ri-send-plane-line:before{content:"\f0da"}.ri-send-to-back:before{content:"\f0db"}.ri-sensor-fill:before{content:"\f0dc"}.ri-sensor-line:before{content:"\f0dd"}.ri-separator:before{content:"\f0de"}.ri-server-fill:before{content:"\f0df"}.ri-server-line:before{content:"\f0e0"}.ri-service-fill:before{content:"\f0e1"}.ri-service-line:before{content:"\f0e2"}.ri-settings-2-fill:before{content:"\f0e3"}.ri-settings-2-line:before{content:"\f0e4"}.ri-settings-3-fill:before{content:"\f0e5"}.ri-settings-3-line:before{content:"\f0e6"}.ri-settings-4-fill:before{content:"\f0e7"}.ri-settings-4-line:before{content:"\f0e8"}.ri-settings-5-fill:before{content:"\f0e9"}.ri-settings-5-line:before{content:"\f0ea"}.ri-settings-6-fill:before{content:"\f0eb"}.ri-settings-6-line:before{content:"\f0ec"}.ri-settings-fill:before{content:"\f0ed"}.ri-settings-line:before{content:"\f0ee"}.ri-shape-2-fill:before{content:"\f0ef"}.ri-shape-2-line:before{content:"\f0f0"}.ri-shape-fill:before{content:"\f0f1"}.ri-shape-line:before{content:"\f0f2"}.ri-share-box-fill:before{content:"\f0f3"}.ri-share-box-line:before{content:"\f0f4"}.ri-share-circle-fill:before{content:"\f0f5"}.ri-share-circle-line:before{content:"\f0f6"}.ri-share-fill:before{content:"\f0f7"}.ri-share-forward-2-fill:before{content:"\f0f8"}.ri-share-forward-2-line:before{content:"\f0f9"}.ri-share-forward-box-fill:before{content:"\f0fa"}.ri-share-forward-box-line:before{content:"\f0fb"}.ri-share-forward-fill:before{content:"\f0fc"}.ri-share-forward-line:before{content:"\f0fd"}.ri-share-line:before{content:"\f0fe"}.ri-shield-check-fill:before{content:"\f0ff"}.ri-shield-check-line:before{content:"\f100"}.ri-shield-cross-fill:before{content:"\f101"}.ri-shield-cross-line:before{content:"\f102"}.ri-shield-fill:before{content:"\f103"}.ri-shield-flash-fill:before{content:"\f104"}.ri-shield-flash-line:before{content:"\f105"}.ri-shield-keyhole-fill:before{content:"\f106"}.ri-shield-keyhole-line:before{content:"\f107"}.ri-shield-line:before{content:"\f108"}.ri-shield-star-fill:before{content:"\f109"}.ri-shield-star-line:before{content:"\f10a"}.ri-shield-user-fill:before{content:"\f10b"}.ri-shield-user-line:before{content:"\f10c"}.ri-ship-2-fill:before{content:"\f10d"}.ri-ship-2-line:before{content:"\f10e"}.ri-ship-fill:before{content:"\f10f"}.ri-ship-line:before{content:"\f110"}.ri-shirt-fill:before{content:"\f111"}.ri-shirt-line:before{content:"\f112"}.ri-shopping-bag-2-fill:before{content:"\f113"}.ri-shopping-bag-2-line:before{content:"\f114"}.ri-shopping-bag-3-fill:before{content:"\f115"}.ri-shopping-bag-3-line:before{content:"\f116"}.ri-shopping-bag-fill:before{content:"\f117"}.ri-shopping-bag-line:before{content:"\f118"}.ri-shopping-basket-2-fill:before{content:"\f119"}.ri-shopping-basket-2-line:before{content:"\f11a"}.ri-shopping-basket-fill:before{content:"\f11b"}.ri-shopping-basket-line:before{content:"\f11c"}.ri-shopping-cart-2-fill:before{content:"\f11d"}.ri-shopping-cart-2-line:before{content:"\f11e"}.ri-shopping-cart-fill:before{content:"\f11f"}.ri-shopping-cart-line:before{content:"\f120"}.ri-showers-fill:before{content:"\f121"}.ri-showers-line:before{content:"\f122"}.ri-shuffle-fill:before{content:"\f123"}.ri-shuffle-line:before{content:"\f124"}.ri-shut-down-fill:before{content:"\f125"}.ri-shut-down-line:before{content:"\f126"}.ri-side-bar-fill:before{content:"\f127"}.ri-side-bar-line:before{content:"\f128"}.ri-signal-tower-fill:before{content:"\f129"}.ri-signal-tower-line:before{content:"\f12a"}.ri-signal-wifi-1-fill:before{content:"\f12b"}.ri-signal-wifi-1-line:before{content:"\f12c"}.ri-signal-wifi-2-fill:before{content:"\f12d"}.ri-signal-wifi-2-line:before{content:"\f12e"}.ri-signal-wifi-3-fill:before{content:"\f12f"}.ri-signal-wifi-3-line:before{content:"\f130"}.ri-signal-wifi-error-fill:before{content:"\f131"}.ri-signal-wifi-error-line:before{content:"\f132"}.ri-signal-wifi-fill:before{content:"\f133"}.ri-signal-wifi-line:before{content:"\f134"}.ri-signal-wifi-off-fill:before{content:"\f135"}.ri-signal-wifi-off-line:before{content:"\f136"}.ri-sim-card-2-fill:before{content:"\f137"}.ri-sim-card-2-line:before{content:"\f138"}.ri-sim-card-fill:before{content:"\f139"}.ri-sim-card-line:before{content:"\f13a"}.ri-single-quotes-l:before{content:"\f13b"}.ri-single-quotes-r:before{content:"\f13c"}.ri-sip-fill:before{content:"\f13d"}.ri-sip-line:before{content:"\f13e"}.ri-skip-back-fill:before{content:"\f13f"}.ri-skip-back-line:before{content:"\f140"}.ri-skip-back-mini-fill:before{content:"\f141"}.ri-skip-back-mini-line:before{content:"\f142"}.ri-skip-forward-fill:before{content:"\f143"}.ri-skip-forward-line:before{content:"\f144"}.ri-skip-forward-mini-fill:before{content:"\f145"}.ri-skip-forward-mini-line:before{content:"\f146"}.ri-skull-2-fill:before{content:"\f147"}.ri-skull-2-line:before{content:"\f148"}.ri-skull-fill:before{content:"\f149"}.ri-skull-line:before{content:"\f14a"}.ri-skype-fill:before{content:"\f14b"}.ri-skype-line:before{content:"\f14c"}.ri-slack-fill:before{content:"\f14d"}.ri-slack-line:before{content:"\f14e"}.ri-slice-fill:before{content:"\f14f"}.ri-slice-line:before{content:"\f150"}.ri-slideshow-2-fill:before{content:"\f151"}.ri-slideshow-2-line:before{content:"\f152"}.ri-slideshow-3-fill:before{content:"\f153"}.ri-slideshow-3-line:before{content:"\f154"}.ri-slideshow-4-fill:before{content:"\f155"}.ri-slideshow-4-line:before{content:"\f156"}.ri-slideshow-fill:before{content:"\f157"}.ri-slideshow-line:before{content:"\f158"}.ri-smartphone-fill:before{content:"\f159"}.ri-smartphone-line:before{content:"\f15a"}.ri-snapchat-fill:before{content:"\f15b"}.ri-snapchat-line:before{content:"\f15c"}.ri-snowy-fill:before{content:"\f15d"}.ri-snowy-line:before{content:"\f15e"}.ri-sort-asc:before{content:"\f15f"}.ri-sort-desc:before{content:"\f160"}.ri-sound-module-fill:before{content:"\f161"}.ri-sound-module-line:before{content:"\f162"}.ri-soundcloud-fill:before{content:"\f163"}.ri-soundcloud-line:before{content:"\f164"}.ri-space-ship-fill:before{content:"\f165"}.ri-space-ship-line:before{content:"\f166"}.ri-space:before{content:"\f167"}.ri-spam-2-fill:before{content:"\f168"}.ri-spam-2-line:before{content:"\f169"}.ri-spam-3-fill:before{content:"\f16a"}.ri-spam-3-line:before{content:"\f16b"}.ri-spam-fill:before{content:"\f16c"}.ri-spam-line:before{content:"\f16d"}.ri-speaker-2-fill:before{content:"\f16e"}.ri-speaker-2-line:before{content:"\f16f"}.ri-speaker-3-fill:before{content:"\f170"}.ri-speaker-3-line:before{content:"\f171"}.ri-speaker-fill:before{content:"\f172"}.ri-speaker-line:before{content:"\f173"}.ri-spectrum-fill:before{content:"\f174"}.ri-spectrum-line:before{content:"\f175"}.ri-speed-fill:before{content:"\f176"}.ri-speed-line:before{content:"\f177"}.ri-speed-mini-fill:before{content:"\f178"}.ri-speed-mini-line:before{content:"\f179"}.ri-split-cells-horizontal:before{content:"\f17a"}.ri-split-cells-vertical:before{content:"\f17b"}.ri-spotify-fill:before{content:"\f17c"}.ri-spotify-line:before{content:"\f17d"}.ri-spy-fill:before{content:"\f17e"}.ri-spy-line:before{content:"\f17f"}.ri-stack-fill:before{content:"\f180"}.ri-stack-line:before{content:"\f181"}.ri-stack-overflow-fill:before{content:"\f182"}.ri-stack-overflow-line:before{content:"\f183"}.ri-stackshare-fill:before{content:"\f184"}.ri-stackshare-line:before{content:"\f185"}.ri-star-fill:before{content:"\f186"}.ri-star-half-fill:before{content:"\f187"}.ri-star-half-line:before{content:"\f188"}.ri-star-half-s-fill:before{content:"\f189"}.ri-star-half-s-line:before{content:"\f18a"}.ri-star-line:before{content:"\f18b"}.ri-star-s-fill:before{content:"\f18c"}.ri-star-s-line:before{content:"\f18d"}.ri-star-smile-fill:before{content:"\f18e"}.ri-star-smile-line:before{content:"\f18f"}.ri-steam-fill:before{content:"\f190"}.ri-steam-line:before{content:"\f191"}.ri-steering-2-fill:before{content:"\f192"}.ri-steering-2-line:before{content:"\f193"}.ri-steering-fill:before{content:"\f194"}.ri-steering-line:before{content:"\f195"}.ri-stethoscope-fill:before{content:"\f196"}.ri-stethoscope-line:before{content:"\f197"}.ri-sticky-note-2-fill:before{content:"\f198"}.ri-sticky-note-2-line:before{content:"\f199"}.ri-sticky-note-fill:before{content:"\f19a"}.ri-sticky-note-line:before{content:"\f19b"}.ri-stock-fill:before{content:"\f19c"}.ri-stock-line:before{content:"\f19d"}.ri-stop-circle-fill:before{content:"\f19e"}.ri-stop-circle-line:before{content:"\f19f"}.ri-stop-fill:before{content:"\f1a0"}.ri-stop-line:before{content:"\f1a1"}.ri-stop-mini-fill:before{content:"\f1a2"}.ri-stop-mini-line:before{content:"\f1a3"}.ri-store-2-fill:before{content:"\f1a4"}.ri-store-2-line:before{content:"\f1a5"}.ri-store-3-fill:before{content:"\f1a6"}.ri-store-3-line:before{content:"\f1a7"}.ri-store-fill:before{content:"\f1a8"}.ri-store-line:before{content:"\f1a9"}.ri-strikethrough-2:before{content:"\f1aa"}.ri-strikethrough:before{content:"\f1ab"}.ri-subscript-2:before{content:"\f1ac"}.ri-subscript:before{content:"\f1ad"}.ri-subtract-fill:before{content:"\f1ae"}.ri-subtract-line:before{content:"\f1af"}.ri-subway-fill:before{content:"\f1b0"}.ri-subway-line:before{content:"\f1b1"}.ri-subway-wifi-fill:before{content:"\f1b2"}.ri-subway-wifi-line:before{content:"\f1b3"}.ri-suitcase-2-fill:before{content:"\f1b4"}.ri-suitcase-2-line:before{content:"\f1b5"}.ri-suitcase-3-fill:before{content:"\f1b6"}.ri-suitcase-3-line:before{content:"\f1b7"}.ri-suitcase-fill:before{content:"\f1b8"}.ri-suitcase-line:before{content:"\f1b9"}.ri-sun-cloudy-fill:before{content:"\f1ba"}.ri-sun-cloudy-line:before{content:"\f1bb"}.ri-sun-fill:before{content:"\f1bc"}.ri-sun-foggy-fill:before{content:"\f1bd"}.ri-sun-foggy-line:before{content:"\f1be"}.ri-sun-line:before{content:"\f1bf"}.ri-superscript-2:before{content:"\f1c0"}.ri-superscript:before{content:"\f1c1"}.ri-surgical-mask-fill:before{content:"\f1c2"}.ri-surgical-mask-line:before{content:"\f1c3"}.ri-surround-sound-fill:before{content:"\f1c4"}.ri-surround-sound-line:before{content:"\f1c5"}.ri-survey-fill:before{content:"\f1c6"}.ri-survey-line:before{content:"\f1c7"}.ri-swap-box-fill:before{content:"\f1c8"}.ri-swap-box-line:before{content:"\f1c9"}.ri-swap-fill:before{content:"\f1ca"}.ri-swap-line:before{content:"\f1cb"}.ri-switch-fill:before{content:"\f1cc"}.ri-switch-line:before{content:"\f1cd"}.ri-sword-fill:before{content:"\f1ce"}.ri-sword-line:before{content:"\f1cf"}.ri-syringe-fill:before{content:"\f1d0"}.ri-syringe-line:before{content:"\f1d1"}.ri-t-box-fill:before{content:"\f1d2"}.ri-t-box-line:before{content:"\f1d3"}.ri-t-shirt-2-fill:before{content:"\f1d4"}.ri-t-shirt-2-line:before{content:"\f1d5"}.ri-t-shirt-air-fill:before{content:"\f1d6"}.ri-t-shirt-air-line:before{content:"\f1d7"}.ri-t-shirt-fill:before{content:"\f1d8"}.ri-t-shirt-line:before{content:"\f1d9"}.ri-table-2:before{content:"\f1da"}.ri-table-alt-fill:before{content:"\f1db"}.ri-table-alt-line:before{content:"\f1dc"}.ri-table-fill:before{content:"\f1dd"}.ri-table-line:before{content:"\f1de"}.ri-tablet-fill:before{content:"\f1df"}.ri-tablet-line:before{content:"\f1e0"}.ri-takeaway-fill:before{content:"\f1e1"}.ri-takeaway-line:before{content:"\f1e2"}.ri-taobao-fill:before{content:"\f1e3"}.ri-taobao-line:before{content:"\f1e4"}.ri-tape-fill:before{content:"\f1e5"}.ri-tape-line:before{content:"\f1e6"}.ri-task-fill:before{content:"\f1e7"}.ri-task-line:before{content:"\f1e8"}.ri-taxi-fill:before{content:"\f1e9"}.ri-taxi-line:before{content:"\f1ea"}.ri-taxi-wifi-fill:before{content:"\f1eb"}.ri-taxi-wifi-line:before{content:"\f1ec"}.ri-team-fill:before{content:"\f1ed"}.ri-team-line:before{content:"\f1ee"}.ri-telegram-fill:before{content:"\f1ef"}.ri-telegram-line:before{content:"\f1f0"}.ri-temp-cold-fill:before{content:"\f1f1"}.ri-temp-cold-line:before{content:"\f1f2"}.ri-temp-hot-fill:before{content:"\f1f3"}.ri-temp-hot-line:before{content:"\f1f4"}.ri-terminal-box-fill:before{content:"\f1f5"}.ri-terminal-box-line:before{content:"\f1f6"}.ri-terminal-fill:before{content:"\f1f7"}.ri-terminal-line:before{content:"\f1f8"}.ri-terminal-window-fill:before{content:"\f1f9"}.ri-terminal-window-line:before{content:"\f1fa"}.ri-test-tube-fill:before{content:"\f1fb"}.ri-test-tube-line:before{content:"\f1fc"}.ri-text-direction-l:before{content:"\f1fd"}.ri-text-direction-r:before{content:"\f1fe"}.ri-text-spacing:before{content:"\f1ff"}.ri-text-wrap:before{content:"\f200"}.ri-text:before{content:"\f201"}.ri-thermometer-fill:before{content:"\f202"}.ri-thermometer-line:before{content:"\f203"}.ri-thumb-down-fill:before{content:"\f204"}.ri-thumb-down-line:before{content:"\f205"}.ri-thumb-up-fill:before{content:"\f206"}.ri-thumb-up-line:before{content:"\f207"}.ri-thunderstorms-fill:before{content:"\f208"}.ri-thunderstorms-line:before{content:"\f209"}.ri-ticket-2-fill:before{content:"\f20a"}.ri-ticket-2-line:before{content:"\f20b"}.ri-ticket-fill:before{content:"\f20c"}.ri-ticket-line:before{content:"\f20d"}.ri-time-fill:before{content:"\f20e"}.ri-time-line:before{content:"\f20f"}.ri-timer-2-fill:before{content:"\f210"}.ri-timer-2-line:before{content:"\f211"}.ri-timer-fill:before{content:"\f212"}.ri-timer-flash-fill:before{content:"\f213"}.ri-timer-flash-line:before{content:"\f214"}.ri-timer-line:before{content:"\f215"}.ri-todo-fill:before{content:"\f216"}.ri-todo-line:before{content:"\f217"}.ri-toggle-fill:before{content:"\f218"}.ri-toggle-line:before{content:"\f219"}.ri-tools-fill:before{content:"\f21a"}.ri-tools-line:before{content:"\f21b"}.ri-tornado-fill:before{content:"\f21c"}.ri-tornado-line:before{content:"\f21d"}.ri-trademark-fill:before{content:"\f21e"}.ri-trademark-line:before{content:"\f21f"}.ri-traffic-light-fill:before{content:"\f220"}.ri-traffic-light-line:before{content:"\f221"}.ri-train-fill:before{content:"\f222"}.ri-train-line:before{content:"\f223"}.ri-train-wifi-fill:before{content:"\f224"}.ri-train-wifi-line:before{content:"\f225"}.ri-translate-2:before{content:"\f226"}.ri-translate:before{content:"\f227"}.ri-travesti-fill:before{content:"\f228"}.ri-travesti-line:before{content:"\f229"}.ri-treasure-map-fill:before{content:"\f22a"}.ri-treasure-map-line:before{content:"\f22b"}.ri-trello-fill:before{content:"\f22c"}.ri-trello-line:before{content:"\f22d"}.ri-trophy-fill:before{content:"\f22e"}.ri-trophy-line:before{content:"\f22f"}.ri-truck-fill:before{content:"\f230"}.ri-truck-line:before{content:"\f231"}.ri-tumblr-fill:before{content:"\f232"}.ri-tumblr-line:before{content:"\f233"}.ri-tv-2-fill:before{content:"\f234"}.ri-tv-2-line:before{content:"\f235"}.ri-tv-fill:before{content:"\f236"}.ri-tv-line:before{content:"\f237"}.ri-twitch-fill:before{content:"\f238"}.ri-twitch-line:before{content:"\f239"}.ri-twitter-fill:before{content:"\f23a"}.ri-twitter-line:before{content:"\f23b"}.ri-typhoon-fill:before{content:"\f23c"}.ri-typhoon-line:before{content:"\f23d"}.ri-u-disk-fill:before{content:"\f23e"}.ri-u-disk-line:before{content:"\f23f"}.ri-ubuntu-fill:before{content:"\f240"}.ri-ubuntu-line:before{content:"\f241"}.ri-umbrella-fill:before{content:"\f242"}.ri-umbrella-line:before{content:"\f243"}.ri-underline:before{content:"\f244"}.ri-uninstall-fill:before{content:"\f245"}.ri-uninstall-line:before{content:"\f246"}.ri-unsplash-fill:before{content:"\f247"}.ri-unsplash-line:before{content:"\f248"}.ri-upload-2-fill:before{content:"\f249"}.ri-upload-2-line:before{content:"\f24a"}.ri-upload-cloud-2-fill:before{content:"\f24b"}.ri-upload-cloud-2-line:before{content:"\f24c"}.ri-upload-cloud-fill:before{content:"\f24d"}.ri-upload-cloud-line:before{content:"\f24e"}.ri-upload-fill:before{content:"\f24f"}.ri-upload-line:before{content:"\f250"}.ri-usb-fill:before{content:"\f251"}.ri-usb-line:before{content:"\f252"}.ri-user-2-fill:before{content:"\f253"}.ri-user-2-line:before{content:"\f254"}.ri-user-3-fill:before{content:"\f255"}.ri-user-3-line:before{content:"\f256"}.ri-user-4-fill:before{content:"\f257"}.ri-user-4-line:before{content:"\f258"}.ri-user-5-fill:before{content:"\f259"}.ri-user-5-line:before{content:"\f25a"}.ri-user-6-fill:before{content:"\f25b"}.ri-user-6-line:before{content:"\f25c"}.ri-user-add-fill:before{content:"\f25d"}.ri-user-add-line:before{content:"\f25e"}.ri-user-fill:before{content:"\f25f"}.ri-user-follow-fill:before{content:"\f260"}.ri-user-follow-line:before{content:"\f261"}.ri-user-heart-fill:before{content:"\f262"}.ri-user-heart-line:before{content:"\f263"}.ri-user-line:before{content:"\f264"}.ri-user-location-fill:before{content:"\f265"}.ri-user-location-line:before{content:"\f266"}.ri-user-received-2-fill:before{content:"\f267"}.ri-user-received-2-line:before{content:"\f268"}.ri-user-received-fill:before{content:"\f269"}.ri-user-received-line:before{content:"\f26a"}.ri-user-search-fill:before{content:"\f26b"}.ri-user-search-line:before{content:"\f26c"}.ri-user-settings-fill:before{content:"\f26d"}.ri-user-settings-line:before{content:"\f26e"}.ri-user-shared-2-fill:before{content:"\f26f"}.ri-user-shared-2-line:before{content:"\f270"}.ri-user-shared-fill:before{content:"\f271"}.ri-user-shared-line:before{content:"\f272"}.ri-user-smile-fill:before{content:"\f273"}.ri-user-smile-line:before{content:"\f274"}.ri-user-star-fill:before{content:"\f275"}.ri-user-star-line:before{content:"\f276"}.ri-user-unfollow-fill:before{content:"\f277"}.ri-user-unfollow-line:before{content:"\f278"}.ri-user-voice-fill:before{content:"\f279"}.ri-user-voice-line:before{content:"\f27a"}.ri-video-add-fill:before{content:"\f27b"}.ri-video-add-line:before{content:"\f27c"}.ri-video-chat-fill:before{content:"\f27d"}.ri-video-chat-line:before{content:"\f27e"}.ri-video-download-fill:before{content:"\f27f"}.ri-video-download-line:before{content:"\f280"}.ri-video-fill:before{content:"\f281"}.ri-video-line:before{content:"\f282"}.ri-video-upload-fill:before{content:"\f283"}.ri-video-upload-line:before{content:"\f284"}.ri-vidicon-2-fill:before{content:"\f285"}.ri-vidicon-2-line:before{content:"\f286"}.ri-vidicon-fill:before{content:"\f287"}.ri-vidicon-line:before{content:"\f288"}.ri-vimeo-fill:before{content:"\f289"}.ri-vimeo-line:before{content:"\f28a"}.ri-vip-crown-2-fill:before{content:"\f28b"}.ri-vip-crown-2-line:before{content:"\f28c"}.ri-vip-crown-fill:before{content:"\f28d"}.ri-vip-crown-line:before{content:"\f28e"}.ri-vip-diamond-fill:before{content:"\f28f"}.ri-vip-diamond-line:before{content:"\f290"}.ri-vip-fill:before{content:"\f291"}.ri-vip-line:before{content:"\f292"}.ri-virus-fill:before{content:"\f293"}.ri-virus-line:before{content:"\f294"}.ri-visa-fill:before{content:"\f295"}.ri-visa-line:before{content:"\f296"}.ri-voice-recognition-fill:before{content:"\f297"}.ri-voice-recognition-line:before{content:"\f298"}.ri-voiceprint-fill:before{content:"\f299"}.ri-voiceprint-line:before{content:"\f29a"}.ri-volume-down-fill:before{content:"\f29b"}.ri-volume-down-line:before{content:"\f29c"}.ri-volume-mute-fill:before{content:"\f29d"}.ri-volume-mute-line:before{content:"\f29e"}.ri-volume-off-vibrate-fill:before{content:"\f29f"}.ri-volume-off-vibrate-line:before{content:"\f2a0"}.ri-volume-up-fill:before{content:"\f2a1"}.ri-volume-up-line:before{content:"\f2a2"}.ri-volume-vibrate-fill:before{content:"\f2a3"}.ri-volume-vibrate-line:before{content:"\f2a4"}.ri-vuejs-fill:before{content:"\f2a5"}.ri-vuejs-line:before{content:"\f2a6"}.ri-walk-fill:before{content:"\f2a7"}.ri-walk-line:before{content:"\f2a8"}.ri-wallet-2-fill:before{content:"\f2a9"}.ri-wallet-2-line:before{content:"\f2aa"}.ri-wallet-3-fill:before{content:"\f2ab"}.ri-wallet-3-line:before{content:"\f2ac"}.ri-wallet-fill:before{content:"\f2ad"}.ri-wallet-line:before{content:"\f2ae"}.ri-water-flash-fill:before{content:"\f2af"}.ri-water-flash-line:before{content:"\f2b0"}.ri-webcam-fill:before{content:"\f2b1"}.ri-webcam-line:before{content:"\f2b2"}.ri-wechat-2-fill:before{content:"\f2b3"}.ri-wechat-2-line:before{content:"\f2b4"}.ri-wechat-fill:before{content:"\f2b5"}.ri-wechat-line:before{content:"\f2b6"}.ri-wechat-pay-fill:before{content:"\f2b7"}.ri-wechat-pay-line:before{content:"\f2b8"}.ri-weibo-fill:before{content:"\f2b9"}.ri-weibo-line:before{content:"\f2ba"}.ri-whatsapp-fill:before{content:"\f2bb"}.ri-whatsapp-line:before{content:"\f2bc"}.ri-wheelchair-fill:before{content:"\f2bd"}.ri-wheelchair-line:before{content:"\f2be"}.ri-wifi-fill:before{content:"\f2bf"}.ri-wifi-line:before{content:"\f2c0"}.ri-wifi-off-fill:before{content:"\f2c1"}.ri-wifi-off-line:before{content:"\f2c2"}.ri-window-2-fill:before{content:"\f2c3"}.ri-window-2-line:before{content:"\f2c4"}.ri-window-fill:before{content:"\f2c5"}.ri-window-line:before{content:"\f2c6"}.ri-windows-fill:before{content:"\f2c7"}.ri-windows-line:before{content:"\f2c8"}.ri-windy-fill:before{content:"\f2c9"}.ri-windy-line:before{content:"\f2ca"}.ri-wireless-charging-fill:before{content:"\f2cb"}.ri-wireless-charging-line:before{content:"\f2cc"}.ri-women-fill:before{content:"\f2cd"}.ri-women-line:before{content:"\f2ce"}.ri-wubi-input:before{content:"\f2cf"}.ri-xbox-fill:before{content:"\f2d0"}.ri-xbox-line:before{content:"\f2d1"}.ri-xing-fill:before{content:"\f2d2"}.ri-xing-line:before{content:"\f2d3"}.ri-youtube-fill:before{content:"\f2d4"}.ri-youtube-line:before{content:"\f2d5"}.ri-zcool-fill:before{content:"\f2d6"}.ri-zcool-line:before{content:"\f2d7"}.ri-zhihu-fill:before{content:"\f2d8"}.ri-zhihu-line:before{content:"\f2d9"}.ri-zoom-in-fill:before{content:"\f2da"}.ri-zoom-in-line:before{content:"\f2db"}.ri-zoom-out-fill:before{content:"\f2dc"}.ri-zoom-out-line:before{content:"\f2dd"}.ri-zzz-fill:before{content:"\f2de"}.ri-zzz-line:before{content:"\f2df"}.ri-arrow-down-double-fill:before{content:"\f2e0"}.ri-arrow-down-double-line:before{content:"\f2e1"}.ri-arrow-left-double-fill:before{content:"\f2e2"}.ri-arrow-left-double-line:before{content:"\f2e3"}.ri-arrow-right-double-fill:before{content:"\f2e4"}.ri-arrow-right-double-line:before{content:"\f2e5"}.ri-arrow-turn-back-fill:before{content:"\f2e6"}.ri-arrow-turn-back-line:before{content:"\f2e7"}.ri-arrow-turn-forward-fill:before{content:"\f2e8"}.ri-arrow-turn-forward-line:before{content:"\f2e9"}.ri-arrow-up-double-fill:before{content:"\f2ea"}.ri-arrow-up-double-line:before{content:"\f2eb"}.ri-bard-fill:before{content:"\f2ec"}.ri-bard-line:before{content:"\f2ed"}.ri-bootstrap-fill:before{content:"\f2ee"}.ri-bootstrap-line:before{content:"\f2ef"}.ri-box-1-fill:before{content:"\f2f0"}.ri-box-1-line:before{content:"\f2f1"}.ri-box-2-fill:before{content:"\f2f2"}.ri-box-2-line:before{content:"\f2f3"}.ri-box-3-fill:before{content:"\f2f4"}.ri-box-3-line:before{content:"\f2f5"}.ri-brain-fill:before{content:"\f2f6"}.ri-brain-line:before{content:"\f2f7"}.ri-candle-fill:before{content:"\f2f8"}.ri-candle-line:before{content:"\f2f9"}.ri-cash-fill:before{content:"\f2fa"}.ri-cash-line:before{content:"\f2fb"}.ri-contract-left-fill:before{content:"\f2fc"}.ri-contract-left-line:before{content:"\f2fd"}.ri-contract-left-right-fill:before{content:"\f2fe"}.ri-contract-left-right-line:before{content:"\f2ff"}.ri-contract-right-fill:before{content:"\f300"}.ri-contract-right-line:before{content:"\f301"}.ri-contract-up-down-fill:before{content:"\f302"}.ri-contract-up-down-line:before{content:"\f303"}.ri-copilot-fill:before{content:"\f304"}.ri-copilot-line:before{content:"\f305"}.ri-corner-down-left-fill:before{content:"\f306"}.ri-corner-down-left-line:before{content:"\f307"}.ri-corner-down-right-fill:before{content:"\f308"}.ri-corner-down-right-line:before{content:"\f309"}.ri-corner-left-down-fill:before{content:"\f30a"}.ri-corner-left-down-line:before{content:"\f30b"}.ri-corner-left-up-fill:before{content:"\f30c"}.ri-corner-left-up-line:before{content:"\f30d"}.ri-corner-right-down-fill:before{content:"\f30e"}.ri-corner-right-down-line:before{content:"\f30f"}.ri-corner-right-up-fill:before{content:"\f310"}.ri-corner-right-up-line:before{content:"\f311"}.ri-corner-up-left-double-fill:before{content:"\f312"}.ri-corner-up-left-double-line:before{content:"\f313"}.ri-corner-up-left-fill:before{content:"\f314"}.ri-corner-up-left-line:before{content:"\f315"}.ri-corner-up-right-double-fill:before{content:"\f316"}.ri-corner-up-right-double-line:before{content:"\f317"}.ri-corner-up-right-fill:before{content:"\f318"}.ri-corner-up-right-line:before{content:"\f319"}.ri-cross-fill:before{content:"\f31a"}.ri-cross-line:before{content:"\f31b"}.ri-edge-new-fill:before{content:"\f31c"}.ri-edge-new-line:before{content:"\f31d"}.ri-equal-fill:before{content:"\f31e"}.ri-equal-line:before{content:"\f31f"}.ri-expand-left-fill:before{content:"\f320"}.ri-expand-left-line:before{content:"\f321"}.ri-expand-left-right-fill:before{content:"\f322"}.ri-expand-left-right-line:before{content:"\f323"}.ri-expand-right-fill:before{content:"\f324"}.ri-expand-right-line:before{content:"\f325"}.ri-expand-up-down-fill:before{content:"\f326"}.ri-expand-up-down-line:before{content:"\f327"}.ri-flickr-fill:before{content:"\f328"}.ri-flickr-line:before{content:"\f329"}.ri-forward-10-fill:before{content:"\f32a"}.ri-forward-10-line:before{content:"\f32b"}.ri-forward-15-fill:before{content:"\f32c"}.ri-forward-15-line:before{content:"\f32d"}.ri-forward-30-fill:before{content:"\f32e"}.ri-forward-30-line:before{content:"\f32f"}.ri-forward-5-fill:before{content:"\f330"}.ri-forward-5-line:before{content:"\f331"}.ri-graduation-cap-fill:before{content:"\f332"}.ri-graduation-cap-line:before{content:"\f333"}.ri-home-office-fill:before{content:"\f334"}.ri-home-office-line:before{content:"\f335"}.ri-hourglass-2-fill:before{content:"\f336"}.ri-hourglass-2-line:before{content:"\f337"}.ri-hourglass-fill:before{content:"\f338"}.ri-hourglass-line:before{content:"\f339"}.ri-javascript-fill:before{content:"\f33a"}.ri-javascript-line:before{content:"\f33b"}.ri-loop-left-fill:before{content:"\f33c"}.ri-loop-left-line:before{content:"\f33d"}.ri-loop-right-fill:before{content:"\f33e"}.ri-loop-right-line:before{content:"\f33f"}.ri-memories-fill:before{content:"\f340"}.ri-memories-line:before{content:"\f341"}.ri-meta-fill:before{content:"\f342"}.ri-meta-line:before{content:"\f343"}.ri-microsoft-loop-fill:before{content:"\f344"}.ri-microsoft-loop-line:before{content:"\f345"}.ri-nft-fill:before{content:"\f346"}.ri-nft-line:before{content:"\f347"}.ri-notion-fill:before{content:"\f348"}.ri-notion-line:before{content:"\f349"}.ri-openai-fill:before{content:"\f34a"}.ri-openai-line:before{content:"\f34b"}.ri-overline:before{content:"\f34c"}.ri-p2p-fill:before{content:"\f34d"}.ri-p2p-line:before{content:"\f34e"}.ri-presentation-fill:before{content:"\f34f"}.ri-presentation-line:before{content:"\f350"}.ri-replay-10-fill:before{content:"\f351"}.ri-replay-10-line:before{content:"\f352"}.ri-replay-15-fill:before{content:"\f353"}.ri-replay-15-line:before{content:"\f354"}.ri-replay-30-fill:before{content:"\f355"}.ri-replay-30-line:before{content:"\f356"}.ri-replay-5-fill:before{content:"\f357"}.ri-replay-5-line:before{content:"\f358"}.ri-school-fill:before{content:"\f359"}.ri-school-line:before{content:"\f35a"}.ri-shining-2-fill:before{content:"\f35b"}.ri-shining-2-line:before{content:"\f35c"}.ri-shining-fill:before{content:"\f35d"}.ri-shining-line:before{content:"\f35e"}.ri-sketching:before{content:"\f35f"}.ri-skip-down-fill:before{content:"\f360"}.ri-skip-down-line:before{content:"\f361"}.ri-skip-left-fill:before{content:"\f362"}.ri-skip-left-line:before{content:"\f363"}.ri-skip-right-fill:before{content:"\f364"}.ri-skip-right-line:before{content:"\f365"}.ri-skip-up-fill:before{content:"\f366"}.ri-skip-up-line:before{content:"\f367"}.ri-slow-down-fill:before{content:"\f368"}.ri-slow-down-line:before{content:"\f369"}.ri-sparkling-2-fill:before{content:"\f36a"}.ri-sparkling-2-line:before{content:"\f36b"}.ri-sparkling-fill:before{content:"\f36c"}.ri-sparkling-line:before{content:"\f36d"}.ri-speak-fill:before{content:"\f36e"}.ri-speak-line:before{content:"\f36f"}.ri-speed-up-fill:before{content:"\f370"}.ri-speed-up-line:before{content:"\f371"}.ri-tiktok-fill:before{content:"\f372"}.ri-tiktok-line:before{content:"\f373"}.ri-token-swap-fill:before{content:"\f374"}.ri-token-swap-line:before{content:"\f375"}.ri-unpin-fill:before{content:"\f376"}.ri-unpin-line:before{content:"\f377"}.ri-wechat-channels-fill:before{content:"\f378"}.ri-wechat-channels-line:before{content:"\f379"}.ri-wordpress-fill:before{content:"\f37a"}.ri-wordpress-line:before{content:"\f37b"}.ri-blender-fill:before{content:"\f37c"}.ri-blender-line:before{content:"\f37d"}.ri-emoji-sticker-fill:before{content:"\f37e"}.ri-emoji-sticker-line:before{content:"\f37f"}.ri-git-close-pull-request-fill:before{content:"\f380"}.ri-git-close-pull-request-line:before{content:"\f381"}.ri-instance-fill:before{content:"\f382"}.ri-instance-line:before{content:"\f383"}.ri-megaphone-fill:before{content:"\f384"}.ri-megaphone-line:before{content:"\f385"}.ri-pass-expired-fill:before{content:"\f386"}.ri-pass-expired-line:before{content:"\f387"}.ri-pass-pending-fill:before{content:"\f388"}.ri-pass-pending-line:before{content:"\f389"}.ri-pass-valid-fill:before{content:"\f38a"}.ri-pass-valid-line:before{content:"\f38b"}.ri-ai-generate:before{content:"\f38c"}.ri-calendar-close-fill:before{content:"\f38d"}.ri-calendar-close-line:before{content:"\f38e"}.ri-draggable:before{content:"\f38f"}.ri-font-family:before{content:"\f390"}.ri-font-mono:before{content:"\f391"}.ri-font-sans-serif:before{content:"\f392"}.ri-font-sans:before{content:"\f393"}.ri-hard-drive-3-fill:before{content:"\f394"}.ri-hard-drive-3-line:before{content:"\f395"}.ri-kick-fill:before{content:"\f396"}.ri-kick-line:before{content:"\f397"}.ri-list-check-3:before{content:"\f398"}.ri-list-indefinite:before{content:"\f399"}.ri-list-ordered-2:before{content:"\f39a"}.ri-list-radio:before{content:"\f39b"}.ri-openbase-fill:before{content:"\f39c"}.ri-openbase-line:before{content:"\f39d"}.ri-planet-fill:before{content:"\f39e"}.ri-planet-line:before{content:"\f39f"}.ri-prohibited-fill:before{content:"\f3a0"}.ri-prohibited-line:before{content:"\f3a1"}.ri-quote-text:before{content:"\f3a2"}.ri-seo-fill:before{content:"\f3a3"}.ri-seo-line:before{content:"\f3a4"}.ri-slash-commands:before{content:"\f3a5"}.ri-archive-2-fill:before{content:"\f3a6"}.ri-archive-2-line:before{content:"\f3a7"}.ri-inbox-2-fill:before{content:"\f3a8"}.ri-inbox-2-line:before{content:"\f3a9"}.ri-shake-hands-fill:before{content:"\f3aa"}.ri-shake-hands-line:before{content:"\f3ab"}.ri-supabase-fill:before{content:"\f3ac"}.ri-supabase-line:before{content:"\f3ad"}.ri-water-percent-fill:before{content:"\f3ae"}.ri-water-percent-line:before{content:"\f3af"}.ri-yuque-fill:before{content:"\f3b0"}.ri-yuque-line:before{content:"\f3b1"}.ri-crosshair-2-fill:before{content:"\f3b2"}.ri-crosshair-2-line:before{content:"\f3b3"}.ri-crosshair-fill:before{content:"\f3b4"}.ri-crosshair-line:before{content:"\f3b5"}.ri-file-close-fill:before{content:"\f3b6"}.ri-file-close-line:before{content:"\f3b7"}.ri-infinity-fill:before{content:"\f3b8"}.ri-infinity-line:before{content:"\f3b9"}.ri-rfid-fill:before{content:"\f3ba"}.ri-rfid-line:before{content:"\f3bb"}.ri-slash-commands-2:before{content:"\f3bc"}.ri-user-forbid-fill:before{content:"\f3bd"}.ri-user-forbid-line:before{content:"\f3be"}.ri-beer-fill:before{content:"\f3bf"}.ri-beer-line:before{content:"\f3c0"}.ri-circle-fill:before{content:"\f3c1"}.ri-circle-line:before{content:"\f3c2"}.ri-dropdown-list:before{content:"\f3c3"}.ri-file-image-fill:before{content:"\f3c4"}.ri-file-image-line:before{content:"\f3c5"}.ri-file-pdf-2-fill:before{content:"\f3c6"}.ri-file-pdf-2-line:before{content:"\f3c7"}.ri-file-video-fill:before{content:"\f3c8"}.ri-file-video-line:before{content:"\f3c9"}.ri-folder-image-fill:before{content:"\f3ca"}.ri-folder-image-line:before{content:"\f3cb"}.ri-folder-video-fill:before{content:"\f3cc"}.ri-folder-video-line:before{content:"\f3cd"}.ri-hexagon-fill:before{content:"\f3ce"}.ri-hexagon-line:before{content:"\f3cf"}.ri-menu-search-fill:before{content:"\f3d0"}.ri-menu-search-line:before{content:"\f3d1"}.ri-octagon-fill:before{content:"\f3d2"}.ri-octagon-line:before{content:"\f3d3"}.ri-pentagon-fill:before{content:"\f3d4"}.ri-pentagon-line:before{content:"\f3d5"}.ri-rectangle-fill:before{content:"\f3d6"}.ri-rectangle-line:before{content:"\f3d7"}.ri-robot-2-fill:before{content:"\f3d8"}.ri-robot-2-line:before{content:"\f3d9"}.ri-shapes-fill:before{content:"\f3da"}.ri-shapes-line:before{content:"\f3db"}.ri-square-fill:before{content:"\f3dc"}.ri-square-line:before{content:"\f3dd"}.ri-tent-fill:before{content:"\f3de"}.ri-tent-line:before{content:"\f3df"}.ri-threads-fill:before{content:"\f3e0"}.ri-threads-line:before{content:"\f3e1"}.ri-tree-fill:before{content:"\f3e2"}.ri-tree-line:before{content:"\f3e3"}.ri-triangle-fill:before{content:"\f3e4"}.ri-triangle-line:before{content:"\f3e5"}.ri-twitter-x-fill:before{content:"\f3e6"}.ri-twitter-x-line:before{content:"\f3e7"}.ri-verified-badge-fill:before{content:"\f3e8"}.ri-verified-badge-line:before{content:"\f3e9"}@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(./KaTeX_AMS-Regular-U6PRYMIZ.woff2) format("woff2"),url(./KaTeX_AMS-Regular-CYEKBG2K.woff) format("woff"),url(./KaTeX_AMS-Regular-JKX5W2C4.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(./KaTeX_Caligraphic-Bold-5QL5CMTE.woff2) format("woff2"),url(./KaTeX_Caligraphic-Bold-WZ3QSGD3.woff) format("woff"),url(./KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(./KaTeX_Caligraphic-Regular-KX5MEWCF.woff2) format("woff2"),url(./KaTeX_Caligraphic-Regular-3LKEU76G.woff) format("woff"),url(./KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(./KaTeX_Fraktur-Bold-2QVFK6NQ.woff2) format("woff2"),url(./KaTeX_Fraktur-Bold-T4SWXBMT.woff) format("woff"),url(./KaTeX_Fraktur-Bold-WGHVTYOR.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(./KaTeX_Fraktur-Regular-2PEIFJSJ.woff2) format("woff2"),url(./KaTeX_Fraktur-Regular-PQMHCIK6.woff) format("woff"),url(./KaTeX_Fraktur-Regular-5U4OPH2X.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(./KaTeX_Main-Bold-YP5VVQRP.woff2) format("woff2"),url(./KaTeX_Main-Bold-2GA4IZIN.woff) format("woff"),url(./KaTeX_Main-Bold-W5FBVCZM.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(./KaTeX_Main-BoldItalic-N4V3DX7S.woff2) format("woff2"),url(./KaTeX_Main-BoldItalic-4P4C7HJH.woff) format("woff"),url(./KaTeX_Main-BoldItalic-ODMLBJJQ.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(./KaTeX_Main-Italic-RELBIK7M.woff2) format("woff2"),url(./KaTeX_Main-Italic-SASNQFN2.woff) format("woff"),url(./KaTeX_Main-Italic-I43T2HSR.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(./KaTeX_Main-Regular-ARRPAO67.woff2) format("woff2"),url(./KaTeX_Main-Regular-P5I74A2A.woff) format("woff"),url(./KaTeX_Main-Regular-W74P5G27.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(./KaTeX_Math-BoldItalic-K4WTGH3J.woff2) format("woff2"),url(./KaTeX_Math-BoldItalic-6EBV3DK5.woff) format("woff"),url(./KaTeX_Math-BoldItalic-VB447A4D.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(./KaTeX_Math-Italic-6KGCHLFN.woff2) format("woff2"),url(./KaTeX_Math-Italic-KKK3USB2.woff) format("woff"),url(./KaTeX_Math-Italic-SON4MRCA.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(./KaTeX_SansSerif-Bold-RRNVJFFW.woff2) format("woff2"),url(./KaTeX_SansSerif-Bold-X5M5EMOD.woff) format("woff"),url(./KaTeX_SansSerif-Bold-STQ6RXC7.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(./KaTeX_SansSerif-Italic-HMPFTM52.woff2) format("woff2"),url(./KaTeX_SansSerif-Italic-PSN4QKYX.woff) format("woff"),url(./KaTeX_SansSerif-Italic-WTBAZBGY.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(./KaTeX_SansSerif-Regular-XIQ62X4E.woff2) format("woff2"),url(./KaTeX_SansSerif-Regular-OQCII6EP.woff) format("woff"),url(./KaTeX_SansSerif-Regular-2TL3USAE.ttf) format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(./KaTeX_Script-Regular-APUWIHLP.woff2) format("woff2"),url(./KaTeX_Script-Regular-A5IFOEBS.woff) format("woff"),url(./KaTeX_Script-Regular-72OLXYNA.ttf) format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(./KaTeX_Size1-Regular-5LRUTBFT.woff2) format("woff2"),url(./KaTeX_Size1-Regular-4HRHTS65.woff) format("woff"),url(./KaTeX_Size1-Regular-7K6AASVL.ttf) format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(./KaTeX_Size2-Regular-LELKET5D.woff2) format("woff2"),url(./KaTeX_Size2-Regular-K5ZHAIS6.woff) format("woff"),url(./KaTeX_Size2-Regular-222HN3GT.ttf) format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(./KaTeX_Size3-Regular-WQRQ47UD.woff2) format("woff2"),url(./KaTeX_Size3-Regular-TLFPAHDE.woff) format("woff"),url(./KaTeX_Size3-Regular-UFCO6WCA.ttf) format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(./KaTeX_Size4-Regular-CDMV7U5C.woff2) format("woff2"),url(./KaTeX_Size4-Regular-PKMWZHNC.woff) format("woff"),url(./KaTeX_Size4-Regular-7PGNVPQK.ttf) format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(./KaTeX_Typewriter-Regular-VBYJ4NRC.woff2) format("woff2"),url(./KaTeX_Typewriter-Regular-MJMFSK64.woff) format("woff"),url(./KaTeX_Typewriter-Regular-3F5K6SQ6.ttf) format("truetype")}.katex{text-rendering:auto;font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.9"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.83333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.85714286em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857143em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96285714em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55428571em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.66666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.77777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.88888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.58333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.66666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.41666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.48611111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.55555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44027778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.28935185em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.34722222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.40509259em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.46296296em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.52083333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023148em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981481em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108004em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.28929605em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.33751205em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.38572806em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.43394407em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216008em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57859209em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69431051em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.83317261em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961427em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.20096463em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.24115756em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.28135048em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.32154341em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.36173633em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.40192926em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.48231511em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.57877814em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.69453376em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.83360129em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-cyrillic-ext-400-normal-JB453SGZ.woff2) format("woff2"),url(./inter-cyrillic-ext-400-normal-UT7C7CGZ.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-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-cyrillic-400-normal-KFLOZ6L3.woff2) format("woff2"),url(./inter-cyrillic-400-normal-UGV3X2ZX.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-greek-ext-400-normal-QIS4ONLW.woff2) format("woff2"),url(./inter-greek-ext-400-normal-4HYCVGMS.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-greek-400-normal-BRMJUT6T.woff2) format("woff2"),url(./inter-greek-400-normal-7Y67TOYM.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-vietnamese-400-normal-KH5NGGJJ.woff2) format("woff2"),url(./inter-vietnamese-400-normal-724F3VTF.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-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-latin-ext-400-normal-BTAMM2KL.woff2) format("woff2"),url(./inter-latin-ext-400-normal-YUALTDTA.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-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-latin-400-normal-VQ3UBCDI.woff2) format("woff2"),url(./inter-latin-400-normal-O6KIPRV2.woff) format("woff");unicode-range:U+0000-00FF,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-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-cyrillic-ext-500-normal-JTQKN4HY.woff2) format("woff2"),url(./inter-cyrillic-ext-500-normal-WLOKRQXN.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-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-cyrillic-500-normal-MRQZIV3H.woff2) format("woff2"),url(./inter-cyrillic-500-normal-5QURBI26.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-greek-ext-500-normal-Z2CEJP2K.woff2) format("woff2"),url(./inter-greek-ext-500-normal-AOIZUIP4.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-greek-500-normal-PQX5SJVP.woff2) format("woff2"),url(./inter-greek-500-normal-LCPH243Y.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-vietnamese-500-normal-F77QXW2X.woff2) format("woff2"),url(./inter-vietnamese-500-normal-ZTDWBSHR.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-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-latin-ext-500-normal-DV5RJSXI.woff2) format("woff2"),url(./inter-latin-ext-500-normal-KJKTVLML.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-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-latin-500-normal-PUEXTTCT.woff2) format("woff2"),url(./inter-latin-500-normal-OD7WVACW.woff) format("woff");unicode-range:U+0000-00FF,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-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-cyrillic-ext-600-normal-EFECVKGZ.woff2) format("woff2"),url(./inter-cyrillic-ext-600-normal-NBG3W4IU.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-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-cyrillic-600-normal-VQSXM56D.woff2) format("woff2"),url(./inter-cyrillic-600-normal-EDUIRGIU.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-greek-ext-600-normal-KM6XRHAQ.woff2) format("woff2"),url(./inter-greek-ext-600-normal-FQPCNDF3.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-greek-600-normal-PKJBTQPQ.woff2) format("woff2"),url(./inter-greek-600-normal-UPKYUUFH.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-vietnamese-600-normal-47DK6MCQ.woff2) format("woff2"),url(./inter-vietnamese-600-normal-M4XR4C4S.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-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-latin-ext-600-normal-AOYWYIP3.woff2) format("woff2"),url(./inter-latin-ext-600-normal-L5SWE5DY.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-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-latin-600-normal-GQRH5MIF.woff2) format("woff2"),url(./inter-latin-600-normal-5WVF6G4B.woff) format("woff");unicode-range:U+0000-00FF,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-family:Red Hat Text;font-style:normal;font-display:swap;font-weight:400;src:url(./red-hat-text-latin-ext-400-normal-7X3BOMKZ.woff2) format("woff2"),url(./red-hat-text-latin-ext-400-normal-3AG7KJ23.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-family:Red Hat Text;font-style:normal;font-display:swap;font-weight:400;src:url(./red-hat-text-latin-400-normal-SKCAVGFN.woff2) format("woff2"),url(./red-hat-text-latin-400-normal-34QPSVOZ.woff) format("woff");unicode-range:U+0000-00FF,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-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-cyrillic-ext-400-normal-HYAFUTTD.woff2) format("woff2"),url(./jetbrains-mono-cyrillic-ext-400-normal-U7JCD3HP.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-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-cyrillic-400-normal-RF3F6BDX.woff2) format("woff2"),url(./jetbrains-mono-cyrillic-400-normal-QZ4EYELX.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-greek-400-normal-KMD3CAMP.woff2) format("woff2"),url(./jetbrains-mono-greek-400-normal-CE6KMGS2.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-vietnamese-400-normal-SZYMLMOU.woff2) format("woff2"),url(./jetbrains-mono-vietnamese-400-normal-AWIMX5C6.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-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-ext-400-normal-QLFFZGQN.woff2) format("woff2"),url(./jetbrains-mono-latin-ext-400-normal-XZJVN265.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-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-400-normal-62SJVGG5.woff2) format("woff2"),url(./jetbrains-mono-latin-400-normal-47HBTU5K.woff) format("woff");unicode-range:U+0000-00FF,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}.monaco-aria-container{position:absolute;left:-999em}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box;background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border)}@font-face{font-family:codicon;font-display:block;src:url(./codicon-5T574S7B.ttf) format("truetype")}.codicon[class*=codicon-]{font: 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-user-select:none;user-select:none;-webkit-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.monaco-editor .codicon.codicon-symbol-array,.monaco-workbench .codicon.codicon-symbol-array{color:var(--vscode-symbolIcon-arrayForeground)}.monaco-editor .codicon.codicon-symbol-boolean,.monaco-workbench .codicon.codicon-symbol-boolean{color:var(--vscode-symbolIcon-booleanForeground)}.monaco-editor .codicon.codicon-symbol-class,.monaco-workbench .codicon.codicon-symbol-class{color:var(--vscode-symbolIcon-classForeground)}.monaco-editor .codicon.codicon-symbol-method,.monaco-workbench .codicon.codicon-symbol-method{color:var(--vscode-symbolIcon-methodForeground)}.monaco-editor .codicon.codicon-symbol-color,.monaco-workbench .codicon.codicon-symbol-color{color:var(--vscode-symbolIcon-colorForeground)}.monaco-editor .codicon.codicon-symbol-constant,.monaco-workbench .codicon.codicon-symbol-constant{color:var(--vscode-symbolIcon-constantForeground)}.monaco-editor .codicon.codicon-symbol-constructor,.monaco-workbench .codicon.codicon-symbol-constructor{color:var(--vscode-symbolIcon-constructorForeground)}.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-value,.monaco-editor .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-enum{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .codicon.codicon-symbol-enum-member,.monaco-workbench .codicon.codicon-symbol-enum-member{color:var(--vscode-symbolIcon-enumeratorMemberForeground)}.monaco-editor .codicon.codicon-symbol-event,.monaco-workbench .codicon.codicon-symbol-event{color:var(--vscode-symbolIcon-eventForeground)}.monaco-editor .codicon.codicon-symbol-field,.monaco-workbench .codicon.codicon-symbol-field{color:var(--vscode-symbolIcon-fieldForeground)}.monaco-editor .codicon.codicon-symbol-file,.monaco-workbench .codicon.codicon-symbol-file{color:var(--vscode-symbolIcon-fileForeground)}.monaco-editor .codicon.codicon-symbol-folder,.monaco-workbench .codicon.codicon-symbol-folder{color:var(--vscode-symbolIcon-folderForeground)}.monaco-editor .codicon.codicon-symbol-function,.monaco-workbench .codicon.codicon-symbol-function{color:var(--vscode-symbolIcon-functionForeground)}.monaco-editor .codicon.codicon-symbol-interface,.monaco-workbench .codicon.codicon-symbol-interface{color:var(--vscode-symbolIcon-interfaceForeground)}.monaco-editor .codicon.codicon-symbol-key,.monaco-workbench .codicon.codicon-symbol-key{color:var(--vscode-symbolIcon-keyForeground)}.monaco-editor .codicon.codicon-symbol-keyword,.monaco-workbench .codicon.codicon-symbol-keyword{color:var(--vscode-symbolIcon-keywordForeground)}.monaco-editor .codicon.codicon-symbol-module,.monaco-workbench .codicon.codicon-symbol-module{color:var(--vscode-symbolIcon-moduleForeground)}.monaco-editor .codicon.codicon-symbol-namespace,.monaco-workbench .codicon.codicon-symbol-namespace{color:var(--vscode-symbolIcon-namespaceForeground)}.monaco-editor .codicon.codicon-symbol-null,.monaco-workbench .codicon.codicon-symbol-null{color:var(--vscode-symbolIcon-nullForeground)}.monaco-editor .codicon.codicon-symbol-number,.monaco-workbench .codicon.codicon-symbol-number{color:var(--vscode-symbolIcon-numberForeground)}.monaco-editor .codicon.codicon-symbol-object,.monaco-workbench .codicon.codicon-symbol-object{color:var(--vscode-symbolIcon-objectForeground)}.monaco-editor .codicon.codicon-symbol-operator,.monaco-workbench .codicon.codicon-symbol-operator{color:var(--vscode-symbolIcon-operatorForeground)}.monaco-editor .codicon.codicon-symbol-package,.monaco-workbench .codicon.codicon-symbol-package{color:var(--vscode-symbolIcon-packageForeground)}.monaco-editor .codicon.codicon-symbol-property,.monaco-workbench .codicon.codicon-symbol-property{color:var(--vscode-symbolIcon-propertyForeground)}.monaco-editor .codicon.codicon-symbol-reference,.monaco-workbench .codicon.codicon-symbol-reference{color:var(--vscode-symbolIcon-referenceForeground)}.monaco-editor .codicon.codicon-symbol-snippet,.monaco-workbench .codicon.codicon-symbol-snippet{color:var(--vscode-symbolIcon-snippetForeground)}.monaco-editor .codicon.codicon-symbol-string,.monaco-workbench .codicon.codicon-symbol-string{color:var(--vscode-symbolIcon-stringForeground)}.monaco-editor .codicon.codicon-symbol-struct,.monaco-workbench .codicon.codicon-symbol-struct{color:var(--vscode-symbolIcon-structForeground)}.monaco-editor .codicon.codicon-symbol-text,.monaco-workbench .codicon.codicon-symbol-text{color:var(--vscode-symbolIcon-textForeground)}.monaco-editor .codicon.codicon-symbol-type-parameter,.monaco-workbench .codicon.codicon-symbol-type-parameter{color:var(--vscode-symbolIcon-typeParameterForeground)}.monaco-editor .codicon.codicon-symbol-unit,.monaco-workbench .codicon.codicon-symbol-unit{color:var(--vscode-symbolIcon-unitForeground)}.monaco-editor .codicon.codicon-symbol-variable,.monaco-workbench .codicon.codicon-symbol-variable{color:var(--vscode-symbolIcon-variableForeground)}.monaco-editor .lightBulbWidget{display:flex;align-items:center;justify-content:center}.monaco-editor .lightBulbWidget:hover{cursor:pointer}.monaco-editor .lightBulbWidget.codicon-light-bulb{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground, var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget:before{position:relative;z-index:2}.monaco-editor .lightBulbWidget:after{position:absolute;top:0;left:0;content:"";display:block;width:100%;height:100%;opacity:.3;background-color:var(--vscode-editor-background);z-index:1}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:2px 4px;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);border-radius:3px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-block:0px}.monaco-editor .monaco-editor-overlaymessage .message a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-editor-overlaymessage .message a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{width:0!important;height:0!important;border-color:transparent;border-style:solid;z-index:1000;border-width:8px;position:absolute;left:2px}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,.monaco-editor .monaco-editor-overlaymessage.below .anchor.below{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-radius:3px;border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);vertical-align:middle;padding:1px 3px}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.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{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-single,.monaco-list.selection-multiple{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:rgba(0,0,0,0);transition:opacity .1s linear;z-index:11}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.scrollbar>.slider{background:var(--vscode-scrollbarSlider-background)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-scrollable-element>.scrollbar>.slider.active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-select-box-dropdown-padding{--dropdown-padding-top: 1px;--dropdown-padding-bottom: 1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top: 3px;--dropdown-padding-bottom: 4px}.monaco-select-box-dropdown-container{display:none;box-sizing:border-box}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown *{margin:0}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{line-height:15px;font-family:var(--monaco-monospace-font)}.monaco-select-box-dropdown-container.visible{display:flex;flex-direction:column;text-align:left;width:1px;overflow:hidden;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{flex:0 0 auto;align-self:flex-start;padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;width:100%;overflow:hidden;box-sizing:border-box}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row{cursor:pointer}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left;opacity:.7}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{text-overflow:ellipsis;overflow:hidden;padding-right:10px;white-space:nowrap;float:right}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{flex:1 1 auto;align-self:flex-start;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{overflow:hidden;max-height:0px}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div>.option-text-width-control{padding-left:4px;padding-right:8px;white-space:nowrap}.monaco-select-box{width:100%;cursor:pointer;border-radius:2px}.monaco-select-box-dropdown-container{font-size:13px;font-weight:400;text-transform:none}.monaco-action-bar .action-item.select-container{cursor:default}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-width:100px;min-height:18px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{font-size:11px;border-radius:5px}.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .icon,.monaco-action-bar .action-item .codicon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{display:flex;font-size:11px;padding:3px;border-radius:5px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{opacity:.6}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{display:flex;align-items:center;cursor:default}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.action-widget{font-size:13px;min-width:160px;max-width:80vw;z-index:40;display:block;width:100%;border:1px solid var(--vscode-editorWidget-border)!important;border-radius:2px;background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground)}.context-view-block{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:-1}.context-view-pointerBlock{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:2}.action-widget .monaco-list{-moz-user-select:none;user-select:none;-webkit-user-select:none;border:none!important;border-width:0!important}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{padding:0 10px;white-space:nowrap;cursor:pointer;touch-action:none;width:100%}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){background-color:var(--vscode-quickInputList-focusBackground)!important;color:var(--vscode-quickInputList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder, transparent);outline-offset:-1px}.action-widget .monaco-list-row.group-header{color:var(--vscode-descriptionForeground)!important;font-weight:600}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled:before,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before{cursor:default!important;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:transparent!important;outline:0 solid!important}.action-widget .monaco-list-row.action{display:flex;gap:6px;align-items:center}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{flex:1;overflow:hidden;text-overflow:ellipsis}.action-widget .action-widget-action-bar{background-color:var(--vscode-editorHoverWidget-statusBarBackground);border-top:1px solid var(--vscode-editorHoverWidget-border)}.action-widget .action-widget-action-bar:before{display:block;content:"";width:100%}.action-widget .action-widget-action-bar .actions-container{padding:0 8px}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);font-size:12px;line-height:22px;padding:0;pointer-events:all}.action-widget-action-bar .action-item{margin-right:16px;pointer-events:none}.action-widget-action-bar .action-label:hover{background-color:transparent!important}.monaco-action-bar .actions-container.highlight-toggled .action-label.checked{background:var(--vscode-actionBar-toggledBackground)!important}.monaco-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize);padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault)}.monaco-editor .codelens-decoration>span,.monaco-editor .codelens-decoration>a{-moz-user-select:none;user-select:none;-webkit-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize)}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.monaco-editor.vs .dnd-target,.monaco-editor.hc-light .dnd-target{border-right:2px dotted black;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #AEAFAD;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines,.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines{cursor:default}.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines,.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines{cursor:copy}.inline-editor-progress-decoration{display:inline-block;width:1em;height:1em}.inline-progress-widget{display:flex!important;justify-content:center;align-items:center}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{font-size:90%!important;animation:none}.inline-progress-widget:hover .icon:before{content:"\ea76"}.monaco-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;border-radius:2px;text-align:center;cursor:pointer;justify-content:center;align-items:center;border:1px solid var(--vscode-button-border, transparent);line-height:18px}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled:focus,.monaco-button.disabled{opacity:.4!important;cursor:default}.monaco-text-button .codicon{margin:0 .2em;color:inherit!important}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;padding:0 4px;overflow:hidden;height:28px}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label{flex-basis:100%}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;width:0;overflow:hidden}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{display:flex;justify-content:center;align-items:center;font-weight:400;font-style:inherit;padding:4px 0}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus,.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{padding:4px 0;cursor:default}.monaco-button-dropdown .monaco-button-dropdown-separator>div{height:100%;width:1px}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{border:1px solid var(--vscode-button-border, transparent);border-left-width:0!important;border-radius:0 2px 2px 0}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{display:flex;flex-direction:column;align-items:center;margin:4px 5px}.monaco-description-button .monaco-button-description{font-style:italic;font-size:11px;padding:4px 20px}.monaco-description-button .monaco-button-label,.monaco-description-button .monaco-button-description{display:flex;justify-content:center;align-items:center}.monaco-description-button .monaco-button-label>.codicon,.monaco-description-button .monaco-button-description>.codicon{margin:0 .2em;color:inherit!important}.monaco-button.default-colors,.monaco-button-dropdown.default-colors>.monaco-button{color:var(--vscode-button-foreground);background-color:var(--vscode-button-background)}.monaco-button.default-colors:hover,.monaco-button-dropdown.default-colors>.monaco-button:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-button.default-colors.secondary,.monaco-button-dropdown.default-colors>.monaco-button.secondary{color:var(--vscode-button-secondaryForeground);background-color:var(--vscode-button-secondaryBackground)}.monaco-button.default-colors.secondary:hover,.monaco-button-dropdown.default-colors>.monaco-button.secondary:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator{background-color:var(--vscode-button-background);border-top:1px solid var(--vscode-button-border);border-bottom:1px solid var(--vscode-button-border)}.monaco-button-dropdown.default-colors .monaco-button.secondary+.monaco-button-dropdown-separator{background-color:var(--vscode-button-secondaryBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator>div{background-color:var(--vscode-button-separator)}.post-edit-widget{box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:1px solid var(--vscode-widget-border, transparent);border-radius:4px;background-color:var(--vscode-editorWidget-background);overflow:hidden}.post-edit-widget .monaco-button{padding:2px;border:none;border-radius:0}.post-edit-widget .monaco-button:hover{background-color:var(--vscode-button-secondaryHoverBackground)!important}.post-edit-widget .monaco-button .codicon{margin:0}.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:2px solid var(--vscode-contrastBorder)}.monaco-custom-toggle{margin-left:2px;float:left;cursor:pointer;overflow:hidden;width:20px;height:20px;border-radius:3px;border:1px solid transparent;padding:1px;box-sizing:border-box;-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-custom-toggle:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-toggle,.hc-light .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-custom-toggle.monaco-checkbox:not(.checked):before{visibility:hidden}:root{--vscode-sash-size: 4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;top:0;width:var(--vscode-sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--vscode-sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--vscode-sash-size) * 2);width:calc(var(--vscode-sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size) * -.5);top:calc(var(--vscode-sash-size) * -1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--vscode-sash-size) * -.5);bottom:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--vscode-sash-size) * -.5);left:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--vscode-sash-size) * -.5);right:calc(var(--vscode-sash-size) * -1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;background:transparent}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.hover:before,.monaco-sash.active:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{width:var(--vscode-sash-hover-size);left:calc(50% - (var(--vscode-sash-hover-size) / 2))}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - (var(--vscode-sash-hover-size) / 2))}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:cyan}.monaco-sash.debug.disabled{background:rgba(0,255,255,.2)}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px));border-bottom-left-radius:4px;border-bottom-right-radius:4px}.monaco-workbench.reduce-motion .monaco-editor .find-widget{transition:transform 0ms linear}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:3px 25px 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:center center;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{color:var(--vscode-disabledForeground);cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important}.monaco-editor .find-widget .monaco-sash{left:0!important}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-editor .find-widget>.button.codicon-widget-close{position:absolute;top:5px;right:4px}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;border-radius:2px;font-size:inherit}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;scrollbar-width:none;outline:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls,.hc-light .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls,.hc-light .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:rgba(253,255,0,.8)}to{background:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:rgba(253,255,0,.8)}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:rgba(255,255,255,.44)}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:rgba(255,255,255,.44)}99%{background:transparent}}.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-collapsed{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed{transition:initial}.monaco-editor .margin-view-overlays:hover .codicon,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons{opacity:1}.monaco-editor .inline-folded:after{color:gray;margin:.1em .2em 0;content:"\22ef";display:inline;line-height:1em;cursor:pointer}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text .ghost-text{font-style:italic}.monaco-editor .inline-completion-text-to-replace{text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{color:var(--vscode-editorGhostText-foreground)!important;background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border)}.monaco-editor .inlineSuggestionsHints.withBorder{z-index:39;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineSuggestionsHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineSuggestionsHints .availableSuggestionCount a{display:flex;min-width:19px;justify-content:center}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{display:inline-block;padding:0}.monaco-editor .snippet-placeholder{min-width:2px;outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetTabstopHighlightBorder, transparent)}.monaco-editor .finish-snippet-placeholder{outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder, transparent)}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column;border-radius:3px}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-widget,.monaco-editor .suggest-details{flex:0 1 auto;width:100%;border-style:solid;border-width:1px;border-color:var(--vscode-editorSuggestWidget-border);background-color:var(--vscode-editorSuggestWidget-background)}.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-light .suggest-widget,.monaco-editor.hc-light .suggest-details{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid var(--vscode-editorSuggestWidget-border);overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:initial;text-overflow:ellipsis;overflow:hidden;align-self:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-shrink:1;flex-grow:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default;color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-details.focused{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{padding:0;white-space:initial;min-height:calc(1rem + 8px)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ul,.monaco-editor .suggest-details ol{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);background-color:var(--vscode-editor-background)}.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-rangeHighlightBorder)}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-symbolHighlightBorder)}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorError-background)}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorWarning-background)}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorInfo-background)}.monaco-editor .squiggly-hint{border-bottom:2px dotted var(--vscode-editorHint-border)}.monaco-editor.showUnused .squiggly-unnecessary{border-bottom:2px dashed var(--vscode-editorUnnecessaryCode-border)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;text-decoration-color:var(--vscode-editor-foreground, inherit)}.monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent;z-index:-10}.monaco-editor .inputarea.ime-input{z-index:10;caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground)}.monaco-editor .margin-view-overlays .line-numbers{font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default;height:100%}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground)}.monaco-editor .line-numbers.active-line-number{color:var(--vscode-editorLineNumber-activeForeground)}.monaco-editor .margin{background-color:var(--vscode-editorGutter-background)}.monaco-mouse-cursor-text{cursor:text}.monaco-editor .view-overlays .current-line,.monaco-editor .margin-view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute}.monaco-editor .lines-content .core-guide{position:absolute;box-sizing:border-box}.mtkcontrol{color:#fff!important;background:rgb(150,0,0)!important}.mtkoverflow{background-color:var(--vscode-button-background, var(--vscode-editor-background));color:var(--vscode-button-foreground, var(--vscode-editor-foreground));border-width:1px;border-style:solid;border-color:var(--vscode-contrastBorder);border-radius:2px;padding:4px;cursor:pointer}.mtkoverflow:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{-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:initial;-webkit-user-select:initial}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .mtkw{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .lines-decorations{position:absolute;top:0;background:white}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .glyph-margin-widgets .cgmr{position:absolute;display:flex;align-items:center;justify-content:center}.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin:before{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover:hover .minimap-slider,.monaco-editor .minimap.slider-mouseover .minimap-slider.active{opacity:1}.monaco-editor .minimap-slider .minimap-slider-horizontal{background:var(--vscode-minimapSlider-background)}.monaco-editor .minimap-slider:hover .minimap-slider-horizontal{background:var(--vscode-minimapSlider-hoverBackground)}.monaco-editor .minimap-slider.active .minimap-slider-horizontal{background:var(--vscode-minimapSlider-activeBackground)}.monaco-editor .minimap-shadow-visible{box-shadow:var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0;box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .focused .selected-text{background-color:var(--vscode-editor-selectionBackground)}.monaco-editor .selected-text{background-color:var(--vscode-editor-inactiveSelectionBackground)}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor.hc-light .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-light .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-light .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-light .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:transparent!important}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-editor .blockDecorations-container{position:absolute;top:0;pointer-events:none}.monaco-editor .blockDecorations-block{position:absolute;box-sizing:border-box}.monaco-editor .mwh{position:absolute;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;justify-content:space-between;flex-wrap:nowrap}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:baseline;font-size:13px;margin-left:20px;min-width:0;text-overflow:ellipsis;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;text-align:right;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{margin-right:4px;align-self:center}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:initial}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:initial;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;position:relative;height:100%;width:100%;white-space:nowrap;overflow:hidden}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{width:100%;height:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}.monaco-table-th,.monaco-table-td{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--vscode-sash-size) / 2);width:0;border-left:1px solid transparent}.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2,.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-twistie,.monaco-tl-contents{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translate(3px)}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.monaco-tree-type-filter{position:absolute;top:0;display:flex;padding:3px;max-width:200px;z-index:100;margin:0 6px;border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px}.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter{transition:top .3s}.monaco-tree-type-filter.disabled{top:-40px!important}.monaco-tree-type-filter-grab{display:flex!important;align-items:center;justify-content:center;cursor:grab;margin-right:2px}.monaco-tree-type-filter-grab.grabbing{cursor:grabbing}.monaco-tree-type-filter-input{flex:1}.monaco-tree-type-filter-input .monaco-inputbox{height:23px}.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.input,.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.mirror{padding:2px 4px}.monaco-tree-type-filter-input .monaco-findInput>.controls{top:2px}.monaco-tree-type-filter-actionbar{margin-left:4px}.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label{padding:2px}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px;background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground)}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%;color:var(--vscode-peekViewResult-fileForeground)}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-right:12px;margin-left:auto}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{background-color:var(--vscode-peekViewResult-matchHighlightBackground)}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder, transparent);box-sizing:border-box}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;-moz-user-select:text;user-select:text;-webkit-user-select:text;padding:8px 12px 0 20px}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-foreground);color:var(--vscode-textLink-activeForeground)}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer}.monaco-editor .zone-widget .codicon.codicon-error,.markers-panel .marker-icon.error,.markers-panel .marker-icon .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.extension-editor .codicon.codicon-error,.preferences-editor .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-warning,.markers-panel .marker-icon.warning,.markers-panel .marker-icon .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.extension-editor .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-info,.markers-panel .marker-icon.info,.markers-panel .marker-icon .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.extension-editor .codicon.codicon-info,.preferences-editor .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}.monaco-hover{cursor:default;position:absolute;overflow:hidden;-moz-user-select:text;user-select:text;-webkit-user-select:text;box-sizing:border-box;animation:fadein .1s linear;line-height:1.5em;white-space:var(--vscode-hover-whiteSpace, normal)}.monaco-hover.hidden{display:none}.monaco-hover a:hover:not(.disabled){cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:var(--vscode-hover-maxWidth, 500px);word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover p,.monaco-hover .code,.monaco-hover ul,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{margin:8px 0}.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{line-height:1.1}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0px;border-right:0px;margin:4px -8px -4px;height:1px}.monaco-hover p:first-child,.monaco-hover .code:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover p:last-child,.monaco-hover .code:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ul,.monaco-hover ol{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:var(--vscode-hover-sourceWhiteSpace, pre-wrap)}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .info{font-style:italic;padding:0 8px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px}.monaco-hover .hover-row.status-bar .actions .action-container{margin-right:16px;cursor:pointer}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link:hover,.monaco-hover .hover-contents a.code-link{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-foreground)}.monaco-hover .hover-contents a.code-link>span:hover{color:var(--vscode-textLink-activeForeground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container a{-webkit-user-select:none;-moz-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-hover{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px}.monaco-editor .monaco-hover a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .monaco-hover .hover-row .actions{background-color:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-editor .monaco-hover code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.monaco-editor .linked-editing-decoration{background-color:var(--vscode-editor-linkedEditingBackground);min-width:1px}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-selectionHighlightBorder)}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightBorder)}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightStrongBorder)}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightTextBorder)}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .parameter-hints-widget{z-index:39;display:flex;flex-direction:column;line-height:1.5em;cursor:default;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{content:"";display:block;height:100%;position:absolute;opacity:.5;border-left:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .monaco-scrollable-element,.monaco-editor .parameter-hints-widget .body{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px;position:relative}.monaco-editor .parameter-hints-widget .signature.has-docs:after{content:"";display:block;position:absolute;left:0;width:100%;padding-top:4px;opacity:.5;border-bottom:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs a{color:var(--vscode-textLink-foreground)}.monaco-editor .parameter-hints-widget .docs a:hover{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:initial}.monaco-editor .parameter-hints-widget .docs code{font-family:var(--monaco-monospace-font);border-radius:3px;padding:0 .4em;background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source,.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .signature .parameter.active{color:var(--vscode-editorHoverWidget-highlightForeground);font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .rename-box{z-index:100;color:inherit;border-radius:4px}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input{padding:3px;border-radius:2px}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .sticky-widget{overflow:hidden}.monaco-editor .sticky-widget-line-numbers{float:left;background-color:inherit}.monaco-editor .sticky-widget-lines-scrollable{display:inline-block;position:absolute;overflow:hidden;width:var(--vscode-editorStickyScroll-scrollableWidth);background-color:inherit}.monaco-editor .sticky-widget-lines{position:absolute;background-color:inherit}.monaco-editor .sticky-line-number,.monaco-editor .sticky-line-content{color:var(--vscode-editorLineNumber-foreground);white-space:nowrap;display:inline-block;position:absolute;background-color:inherit}.monaco-editor .sticky-line-number .codicon{float:right;transition:var(--vscode-editorStickyScroll-foldingOpacityTransition)}.monaco-editor .sticky-line-content{width:var(--vscode-editorStickyScroll-scrollableWidth);background-color:inherit;white-space:nowrap}.monaco-editor .sticky-line-number-inner{display:block;text-align:right}.monaco-editor.hc-black .sticky-widget,.monaco-editor.hc-light .sticky-widget{border-bottom:1px solid var(--vscode-contrastBorder)}.monaco-editor .sticky-line-content:hover{background-color:var(--vscode-editorStickyScrollHover-background);cursor:pointer}.monaco-editor .sticky-widget{width:100%;box-shadow:var(--vscode-scrollbar-shadow) 0 3px 2px -2px;z-index:4;background-color:var(--vscode-editorStickyScroll-background)}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .unicode-highlight{border:1px solid var(--vscode-editorUnicodeHighlight-border);background-color:var(--vscode-editorUnicodeHighlight-background);box-sizing:border-box}.editor-banner{box-sizing:border-box;cursor:default;width:100%;font-size:12px;display:flex;overflow:visible;height:26px;background:var(--vscode-banner-background)}.editor-banner .icon-container{display:flex;flex-shrink:0;align-items:center;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-repeat:no-repeat;background-position:center center;background-size:16px;width:16px;padding:0;margin:0 6px 0 10px}.editor-banner .message-container{display:flex;align-items:center;line-height:26px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-banner .message-container p{margin-block-start:0;margin-block-end:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;line-height:26px;margin:0 4px}.editor-banner .message-actions-container a.monaco-button{width:inherit;margin:2px 8px;padding:0 12px}.editor-banner .message-actions-container a{padding:3px;margin-left:12px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-link{color:var(--vscode-textLink-foreground)}.monaco-link:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .tokens-inspect-widget{z-index:50;-moz-user-select:text;user-select:text;-webkit-user-select:text;padding:10px;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor.hc-black .tokens-inspect-widget,.monaco-editor.hc-light .tokens-inspect-widget{border-width:2px}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{height:1px;border:0;background-color:var(--vscode-editorHoverWidget-border)}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace}.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%)}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.monaco-diff-editor.vs-dark .diffOverview{background:rgba(255,255,255,.01)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:rgba(0,0,0,0)}.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:rgba(171,171,171,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active{background:none}.monaco-editor .insert-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-diff-editor .delete-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-editor.hc-black .insert-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .delete-sign,.monaco-editor.hc-light .insert-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .delete-sign{opacity:1}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .inline-added-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{z-index:10;position:absolute}.monaco-editor .arrow-revert-change:hover{cursor:pointer}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-editor .char-insert,.monaco-diff-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .line-insert,.monaco-diff-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground, var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .line-insert,.monaco-editor .char-insert{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-insertedTextBorder)}.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .line-insert,.monaco-editor.hc-black .char-insert,.monaco-editor.hc-light .char-insert{border-style:dashed}.monaco-editor .line-delete,.monaco-editor .char-delete{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-removedTextBorder)}.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .line-delete,.monaco-editor.hc-black .char-delete,.monaco-editor.hc-light .char-delete{border-style:dashed}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .gutter-insert,.monaco-diff-editor .gutter-insert{background-color:var(--vscode-diffEditorGutter-insertedLineBackground, var(--vscode-diffEditor-insertedLineBackground), var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .char-delete,.monaco-diff-editor .char-delete{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-editor .line-delete,.monaco-diff-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground, var(--vscode-diffEditor-removedTextBackground))}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .gutter-delete,.monaco-diff-editor .gutter-delete{background-color:var(--vscode-diffEditorGutter-removedLineBackground, var(--vscode-diffEditor-removedLineBackground), var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor.side-by-side .editor.modified{box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow);border-left:1px solid var(--vscode-diffEditor-border)}.monaco-diff-editor .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-diff-editor .diff-review-line-number{text-align:right;display:inline-block;color:var(--vscode-editorLineNumber-foreground)}.monaco-diff-editor .diff-review{position:absolute;-moz-user-select:none;user-select:none;-webkit-user-select:none;z-index:99}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{position:absolute;box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px;z-index:100}.monaco-diff-editor .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}.context-view{position:absolute}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;color:inherit}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border:solid 1px rgba(204,204,204,.4);border-bottom-color:#bbb6;box-shadow:inset 0 -1px #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px rgb(111,195,223);box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px #0F4A85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:solid 1px rgba(51,51,51,.6);border-bottom-color:#4449;box-shadow:inset 0 -1px #4449;color:#ccc}.monaco-progress-container{width:100%;height:5px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;transform:translateZ(0);animation-timing-function:linear}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translate(0) scaleX(1)}50%{transform:translate(2500%) scaleX(3)}to{transform:translate(4900%) scaleX(1)}}.quick-input-widget{position:absolute;width:600px;z-index:2550;left:50%;margin-left:-300px;-webkit-app-region:no-drag;border-radius:6px}.quick-input-titlebar{display:flex;align-items:center;border-top-left-radius:5px;border-top-right-radius:5px}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:center;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px 6px 6px 11px}.quick-input-header .quick-input-description{margin:4px 2px;flex:1}.quick-input-header{display:flex;padding:8px 6px 6px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:25px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px;overflow-wrap:break-word}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-message a{color:inherit}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-progress.monaco-progress-container,.quick-input-progress.monaco-progress-container .progress-bit{height:2px}.quick-input-list{line-height:22px}.quick-input-widget.hidden-input .quick-input-list{margin-top:4px;padding-bottom:4px}.quick-input-list .monaco-list{overflow:hidden;max-height:440px;padding-bottom:5px}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .monaco-list-row{border-radius:3px}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-icon{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;display:flex;align-items:center;justify-content:center}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:flex;align-items:center}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label>span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-highlighted-label .highlight{font-weight:700}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px;margin-right:4px}.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.quick-input-list .quick-input-list-separator-as-item{font-weight:600;font-size:12px}.monaco-editor .diff-hidden-lines-widget{width:100%}.monaco-editor .diff-hidden-lines{height:0px;transform:translateY(-10px);font-size:13px;line-height:14px}.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover,.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,.monaco-editor .diff-hidden-lines .top.dragging,.monaco-editor .diff-hidden-lines .bottom.dragging{background-color:var(--vscode-focusBorder)}.monaco-editor .diff-hidden-lines .top,.monaco-editor .diff-hidden-lines .bottom{transition:background-color .1s ease-out;height:4px;background-color:transparent;background-clip:padding-box;border-bottom:2px solid transparent;border-top:4px solid transparent;cursor:ns-resize}.monaco-editor .diff-hidden-lines .top{transform:translateY(4px)}.monaco-editor .diff-hidden-lines .bottom{transform:translateY(-6px)}.monaco-editor .diff-unchanged-lines{background:var(--vscode-diffEditor-unchangedCodeBackground)}.monaco-editor .noModificationsOverlay{z-index:1;background:var(--vscode-editor-background);display:flex;justify-content:center;align-items:center}.monaco-editor .diff-hidden-lines .center{background:var(--vscode-diffEditor-unchangedRegionBackground);color:var(--vscode-diffEditor-unchangedRegionForeground);overflow:hidden;display:block;text-overflow:ellipsis;white-space:nowrap;height:24px}.monaco-editor .diff-hidden-lines .center span.codicon{vertical-align:middle}.monaco-editor .diff-hidden-lines .center a:hover .codicon{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .diff-hidden-lines div.breadcrumb-item{cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item:hover{color:var(--vscode-editorLink-activeForeground)}.monaco-editor .movedOriginal,.monaco-editor .movedModified{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-editor .movedOriginal.currentMove,.monaco-editor .movedModified.currentMove{border:2px solid var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path.currentMove{stroke:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path{pointer-events:visiblestroke}.monaco-diff-editor .moved-blocks-lines .arrow{fill:var(--vscode-diffEditor-move-border)}.monaco-diff-editor .moved-blocks-lines .arrow.currentMove{fill:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines .arrow-rectangle{fill:var(--vscode-editor-background)}.monaco-diff-editor .moved-blocks-lines{position:absolute;pointer-events:none}.monaco-diff-editor .moved-blocks-lines path{fill:none;stroke:var(--vscode-diffEditor-move-border);stroke-width:2}.monaco-editor .char-delete.diff-range-empty{margin-left:-1px;border-left:solid var(--vscode-diffEditor-removedTextBackground) 3px}.monaco-editor .char-insert.diff-range-empty{border-left:solid var(--vscode-diffEditor-insertedTextBackground) 3px}.monaco-editor .fold-unchanged{cursor:pointer}.monaco-diff-editor .diff-moved-code-block{display:flex;justify-content:flex-end;margin-top:-4px}.monaco-diff-editor .diff-moved-code-block .action-bar .action-label.codicon{width:12px;height:12px;font-size:12px}.colorpicker-widget{height:190px;-moz-user-select:none;user-select:none;-webkit-user-select:none}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{border:solid .1em #000;box-sizing:border-box;margin:.1em .2em 0;width:.8em;height:.8em;line-height:.8em;display:inline-block;cursor:pointer}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:solid .1em #eee}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:240px;display:flex;align-items:center;justify-content:center;line-height:24px;cursor:pointer;color:#fff;flex:1;white-space:nowrap;overflow:hidden}.colorpicker-header .picked-color .picked-color-presentation{white-space:nowrap;margin-left:5px;margin-right:5px}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.standalone-colorpicker{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{cursor:pointer;background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header .close-button-inner-div{width:100%;height:100%;text-align:center}.colorpicker-header .close-button-inner-div:hover{background-color:var(--vscode-toolbar-hoverBackground)}.colorpicker-header .close-icon{padding:3px}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid rgb(255,255,255);border-radius:100%;box-shadow:0 0 2px #000c;position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .standalone-strip{width:25px;height:122px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(to bottom,#ff0000 0%,#ffff00 17%,#00ff00 33%,#00ffff 50%,#0000ff 67%,#ff00ff 83%,#ff0000 100%)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid rgba(255,255,255,.71);box-shadow:0 0 1px #000000d9}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.colorpicker-body .standalone-strip .standalone-overlay{height:122px;pointer-events:none}.standalone-colorpicker-body{display:block;border:1px solid transparent;border-bottom:1px solid var(--vscode-editorHoverWidget-border);overflow:hidden}.colorpicker-body .insert-button{position:absolute;height:20px;width:58px;padding:0;right:8px;bottom:8px;background:var(--vscode-button-background);color:var(--vscode-button-foreground);border-radius:2px;border:none;cursor:pointer}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #F6F6F6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #252526} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e1e8f0}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}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,samp,pre{font-family:JetBrains Mono,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-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,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#91a4b7}input::placeholder,textarea::placeholder{opacity:1;color:#91a4b7}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}:focus,button:focus{outline:none}menu{margin:0;padding:0}*,:before,:after{--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: rgb(101 131 255 / .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: rgb(101 131 255 / .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}}.button-base{display:inline-flex;align-items:center;white-space:nowrap;border-radius:.5rem;border-width:1px;border-color:transparent;padding:.5rem 1.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500}.button-blue{border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.button-blue:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.button-blue:focus{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.button-red{border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(219 25 32 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.button-red:hover{--tw-bg-opacity: 1;background-color:rgb(188 18 39 / var(--tw-bg-opacity))}.button-red:focus{--tw-bg-opacity: 1;background-color:rgb(188 18 39 / var(--tw-bg-opacity))}.button-gray{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.button-gray:hover{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.button-gray:focus{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.button-outlined-blue{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(245 247 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.button-outlined-blue:hover{--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}.button-outlined-blue:focus{--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}.button-outlined-red{--tw-border-opacity: 1;border-color:rgb(219 25 32 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}.button-outlined-red:hover{--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity))}.button-outlined-red:focus{--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity))}.button-outlined-gray{--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.button-outlined-gray:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-outlined-gray:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-base:disabled,.button-base.disabled{pointer-events:none;cursor:default;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(145 164 183 / var(--tw-text-opacity))}.button-small{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity));padding:.25rem .5rem;--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.button-small:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-small:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-square-icon{display:flex;align-items:center;justify-content:center;padding:.5rem}.button-square-icon i{font-size:1.25rem;line-height:1.75rem;line-height:1}.icon-button{display:flex;align-items:center;justify-content:center;border-radius:9999px;padding:.25rem;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.icon-button:hover{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}.icon-button:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.icon-button:disabled,.icon-button.disabled{pointer-events:none;cursor:default;--tw-text-opacity: 1;color:rgb(202 213 224 / var(--tw-text-opacity))}.icon-button i{line-height:1}.icon-outlined-button{border-radius:9999px;border-width:2px}.\!link{font-weight:500;--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity));text-decoration-line:underline}.\!link:hover{text-decoration-line:none}.link{font-weight:500;--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity));text-decoration-line:underline}.link:hover{text-decoration-line:none}.input{width:100%;border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity));padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.input::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}.input::placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}:not(.phx-no-feedback).show-errors .input{--tw-border-opacity: 1;border-color:rgb(241 163 166 / var(--tw-border-opacity))}.input[type=color]{width:4rem;padding-top:0;padding-bottom:0}.input-range{height:8px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.input-range::-webkit-slider-thumb{width:20px;height:20px;cursor:pointer;-webkit-appearance:none;appearance:none;border-radius:.75rem;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}.input-range::-webkit-slider-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.input-range::-moz-range-thumb{width:20px;height:20px;cursor:pointer;-moz-appearance:none;appearance:none;border-radius:.75rem;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}.input-range::-moz-range-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}select.input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01Ljk5OTg5IDQuOTc2NzFMMTAuMTI0OSAwLjg1MTcwOEwxMS4zMDMyIDIuMDMwMDRMNS45OTk4OSA3LjMzMzM3TDAuNjk2NTU1IDIuMDMwMDRMMS44NzQ4OSAwLjg1MTcwOEw1Ljk5OTg5IDQuOTc2NzFaIiBmaWxsPSIjNjE3NThBIi8+Cjwvc3ZnPgo=);background-repeat:no-repeat;background-position:center right 10px;background-size:10px;padding-right:28px}.radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:20px;height:20px;cursor:pointer;background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='10' cy='10' r='9.5' stroke='%23CAD5E0' fill='white' /%3e%3c/svg%3e");background-size:100% 100%;background-position:center;background-repeat:no-repeat}.radio:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='10' cy='10' r='9.5' stroke='%233E64FF' fill='white' /%3e%3ccircle cx='10' cy='10' r='6' fill='%233E64FF' /%3e%3c/svg%3e")}.checkbox{height:1.25rem;width:1.25rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.checkbox:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}.tiny-scrollbar::-webkit-scrollbar{width:.4rem;height:.4rem}.tiny-scrollbar::-webkit-scrollbar-thumb{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.tiny-scrollbar::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.tabs{display:flex;width:100%;overflow-x:auto}.tabs .tab{display:flex;align-items:center}.tabs .tab>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.tabs .tab{white-space:nowrap;border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(240 245 249 / var(--tw-border-opacity));padding:.5rem .75rem;--tw-text-opacity: 1;color:rgb(145 164 183 / var(--tw-text-opacity))}.tabs .tab.active{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.error-box{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(233 117 121 / var(--tw-text-opacity))}.info-box{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));padding:1rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-left-3{left:-.75rem}.-right-2{right:-.5rem}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-2{bottom:.5rem}.bottom-4{bottom:1rem}.bottom-\[0\.4rem\]{bottom:.4rem}.left-0{left:0}.left-\[64px\]{left:64px}.right-0{right:0}.right-1{right:.25rem}.right-1\.5{right:.375rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-6{right:1.5rem}.right-8{right:2rem}.right-\[1\.5rem\]{right:1.5rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1{top:.25rem}.top-1\.5{top:.375rem}.top-3{top:.75rem}.top-4{top:1rem}.top-5{top:1.25rem}.top-6{top:1.5rem}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-\[10000\]{z-index:10000}.z-\[1000\]{z-index:1000}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.z-\[500\]{z-index:500}.z-\[600\]{z-index:600}.z-\[90\]{z-index:90}.-m-1{margin:-.25rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-auto{margin:auto}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-2\.5{margin-left:.625rem;margin-right:.625rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mb-1{margin-bottom:-.25rem}.-mb-2{margin-bottom:-.5rem}.-ml-0{margin-left:-0px}.-ml-0\.5{margin-left:-.125rem}.-ml-1{margin-left:-.25rem}.-ml-1\.5{margin-left:-.375rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-mt-1{margin-top:-.25rem}.-mt-2{margin-top:-.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-32{margin-bottom:8rem}.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-5{margin-left:1.25rem}.ml-\[-1px\]{margin-left:-1px}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-0\.5{margin-right:.125rem}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-\[3px\]{margin-right:3px}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-0{height:0px}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-52{height:13rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-80{height:20rem}.h-96{height:24rem}.h-\[10px\]{height:10px}.h-\[12px\]{height:12px}.h-\[150px\]{height:150px}.h-\[20rem\]{height:20rem}.h-\[30px\]{height:30px}.h-full{height:100%}.h-screen{height:100vh}.max-h-52{max-height:13rem}.max-h-80{max-height:20rem}.max-h-\[300px\]{max-height:300px}.max-h-\[500px\]{max-height:500px}.max-h-full{max-height:100%}.min-h-\[30rem\]{min-height:30rem}.min-h-\[38px\]{min-height:38px}.w-0{width:0px}.w-1{width:.25rem}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-5{width:1.25rem}.w-5\/6{width:83.333333%}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-\[10px\]{width:10px}.w-\[12px\]{width:12px}.w-\[17rem\]{width:17rem}.w-\[20ch\]{width:20ch}.w-\[56px\]{width:56px}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.min-w-\[650px\]{min-width:650px}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-\[400px\]{max-width:400px}.max-w-\[600px\]{max-width:600px}.max-w-\[75\%\]{max-width:75%}.max-w-full{max-width:100%}.max-w-screen-lg{max-width:1024px}.max-w-screen-md{max-width:768px}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/2{flex-basis:50%}.basis-4\/5{flex-basis:80%}.-translate-x-full{--tw-translate-x: -100%;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%;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%;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%;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))}.transform{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 ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.scroll-mt-\[50px\]{scroll-margin-top:50px}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[minmax\(0\,_0\.5fr\)_minmax\(0\,_0\.75fr\)_minmax\(0\,_0\.5fr\)_minmax\(0\,_0\.5fr\)_minmax\(0\,_0\.5fr\)\]{grid-template-columns:minmax(0,.5fr) minmax(0,.75fr) minmax(0,.5fr) minmax(0,.5fr) minmax(0,.5fr)}.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}.flex-nowrap{flex-wrap:nowrap}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-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}.gap-0{gap:0px}.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}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-12>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(3rem * var(--tw-space-x-reverse));margin-left:calc(3rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-10>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2.5rem * var(--tw-space-y-reverse))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.space-x-reverse>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-b-2xl{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-\[3px\]{border-width:3px}.border-\[5px\]{border-width:5px}.border-x{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-l-\[1px\]{border-left-width:1px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-black\/10{border-color:#0000001a}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(139 162 255 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(101 131 255 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(240 245 249 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(145 164 183 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(97 117 138 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(48 66 84 / var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity: 1;border-color:rgb(13 24 41 / var(--tw-border-opacity))}.border-green-bright-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity))}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(241 163 166 / var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(233 117 121 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(226 71 77 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity: 1;border-color:rgb(255 220 178 / var(--tw-border-opacity))}.border-yellow-bright-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(216 224 255 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(139 162 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(101 131 255 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.bg-gray-200\/50{background-color:#e1e8f080}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(202 213 224 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(97 117 138 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(48 66 84 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(13 24 41 / var(--tw-bg-opacity))}.bg-gray-900\/95{background-color:#0d1829f2}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(233 244 233 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(119 184 118 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(74 161 72 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(29 137 26 / var(--tw-bg-opacity))}.bg-green-bright-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(248 209 210 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(233 117 121 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(226 71 77 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(255 247 236 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(255 238 217 / var(--tw-bg-opacity))}.bg-yellow-600{--tw-bg-opacity: 1;background-color:rgb(255 168 63 / var(--tw-bg-opacity))}.bg-yellow-bright-200{--tw-bg-opacity: 1;background-color:rgb(254 240 138 / var(--tw-bg-opacity))}.fill-blue-600{fill:#3e64ff}.p-0{padding:0}.p-1{padding:.25rem}.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}.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-2\.5{padding-left:.625rem;padding-right:.625rem}.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-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[1px\]{padding-left:1px;padding-right:1px}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pl-0{padding-left:0}.pl-0\.5{padding-left:.125rem}.pl-1{padding-left:.25rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-20{padding-right:5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-baseline{vertical-align:baseline}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.align-text-bottom{vertical-align:text-bottom}.font-logo{font-family:Red Hat Text}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.75em\]{font-size:.75em}.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-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.not-italic{font-style:normal}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.tracking-wider{letter-spacing:.05em}.text-blue-400{--tw-text-opacity: 1;color:rgb(139 162 255 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(101 131 255 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(45 76 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(31 55 183 / var(--tw-text-opacity))}.text-brand-pink{--tw-text-opacity: 1;color:rgb(228 76 117 / var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity: 1;color:rgb(240 245 249 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(225 232 240 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(202 213 224 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(145 164 183 / var(--tw-text-opacity))}.text-gray-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(48 66 84 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}.text-green-300{--tw-text-opacity: 1;color:rgb(165 208 163 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(119 184 118 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(13 98 25 / var(--tw-text-opacity))}.text-green-bright-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(233 117 121 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(226 71 77 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 7 43 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(255 203 140 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(255 168 63 / var(--tw-text-opacity))}.text-yellow-bright-300{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity))}.text-yellow-bright-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px 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-\[0_15px_99px_-0px_rgba\(12\,24\,41\,0\.15\)\]{--tw-shadow: 0 15px 99px -0px rgba(12,24,41,.15);--tw-shadow-colored: 0 15px 99px -0px 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-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 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-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(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)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));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)}.grayscale{--tw-grayscale: grayscale(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)}.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-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-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-200{transition-delay:.2s}.duration-100{transition-duration:.1s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.bg-editor{background-color:#282c34}body[data-editor-theme=light] .bg-editor{background-color:#fafafa}.font-editor{font-family:JetBrains Mono,Droid Sans Mono,"monospace";font-variant-ligatures:none;font-size:14px}.shadow-custom-1{box-shadow:10px 5px 25px -8px #0003}.flip-horizontally{transform:scaleY(-1)}.delay-200{animation:delay-frames .2s}@keyframes delay-frames{0%{opacity:0;height:0;width:0}99%{opacity:0;height:0;width:0}}iframe[hidden],.phx-no-feedback.invalid-feedback,.phx-no-feedback .invalid-feedback{display:none}.phx-click-loading{opacity:.5;transition:opacity 1s ease-out}.phx-loading{cursor:wait}.markdown{--tw-text-opacity: 1;color:rgb(48 66 84 / var(--tw-text-opacity))}.markdown h1{margin-top:2rem;margin-bottom:1rem;font-size:1.875rem;line-height:2.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h2{margin-top:2rem;margin-bottom:1rem;font-size:1.5rem;line-height:2rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h3{margin-top:2rem;margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h4{margin-top:2rem;margin-bottom:1rem;font-size:1.125rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h5,.markdown h6{margin-top:2rem;margin-bottom:1rem;font-size:1rem;line-height:1.5rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown p{margin-top:1rem;margin-bottom:1rem}.markdown ul{margin-top:1.25rem;margin-bottom:1.25rem;margin-left:2rem;list-style-position:outside;list-style-type:disc}.markdown ol{margin-top:1.25rem;margin-bottom:1.25rem;margin-left:2rem;list-style-position:outside;list-style-type:decimal}.markdown ul ul{list-style-type:circle}.markdown ul ul ul{list-style-type:square}.markdown .task-list-item{list-style-type:none}.markdown .task-list-item input[type=checkbox]{margin-left:-1.1rem;vertical-align:middle}.markdown ul>li,.markdown ol>li{margin-top:.25rem;margin-bottom:.25rem}.markdown li>ul,.markdown li>ol{margin-top:0;margin-bottom:0}.markdown blockquote{margin-top:1rem;margin-bottom:1rem;border-left-width:4px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.markdown a{font-weight:500;--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity));text-decoration-line:underline}.markdown a:hover{text-decoration-line:none}.markdown img{margin-left:auto;margin-right:auto;margin-top:1rem;margin-bottom:1rem}.markdown table::-webkit-scrollbar{width:.4rem;height:.4rem}.markdown table::-webkit-scrollbar-thumb{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.markdown table::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.markdown table{margin-top:1rem;margin-bottom:1rem;width:100%;border-radius:.5rem;box-shadow:0 0 25px -5px #0000001a,0 0 10px -5px #0000000a}.markdown table thead{text-align:left}.markdown table thead tr,.markdown table tbody tr{border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity))}.markdown table tbody tr:last-child{border-bottom-width:0px}.markdown table tbody tr:hover{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.markdown table th{padding:.75rem 1.5rem;font-weight:600;--tw-text-opacity: 1;color:rgb(48 66 84 / var(--tw-text-opacity))}.markdown table td{padding:.75rem 1.5rem;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.markdown table th[align=center],.markdown table td[align=center]{text-align:center}.markdown table th[align=right],.markdown table td[align=right]{text-align:right}.markdown code{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity));padding:.1rem .5rem;vertical-align:middle;font-family:JetBrains Mono,monospace;font-size:.875rem;line-height:1.25rem;font-variant-ligatures:none}.markdown pre{display:flex;overflow:hidden}.markdown pre>code{flex:1 1 0%;overflow:auto;border-radius:.5rem;padding:1rem;vertical-align:middle;background-color:#282c34}body[data-editor-theme=light] .markdown pre>code{background-color:#fafafa}.markdown pre>code{color:#c4cad6;font-family:JetBrains Mono,Droid Sans Mono,"monospace";font-variant-ligatures:none;font-size:14px}.markdown kbd{border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity));padding:.2rem .5rem;vertical-align:middle;font-family:JetBrains Mono,monospace;font-size:.75rem;line-height:1rem;box-shadow:#cad5e0 0 -2px inset}.markdown>:first-child{margin-top:0}.markdown>:last-child{margin-bottom:0}.markdown .katex-display{margin-top:2rem;margin-bottom:2rem}[data-el-cell][data-type=markdown] .markdown h1,[data-el-cell][data-type=markdown] .markdown h2{font-size:0}[data-el-cell][data-type=markdown] .markdown h1:after,[data-el-cell][data-type=markdown] .markdown h2:after{font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(233 117 121 / var(--tw-text-opacity));content:"warning: heading levels 1 and 2 are reserved for notebook and section names, please use heading 3 and above."}:root{--ansi-color-black: black;--ansi-color-red: #ca1243;--ansi-color-green: #50a14f;--ansi-color-yellow: #c18401;--ansi-color-blue: #4078f2;--ansi-color-magenta: #a726a4;--ansi-color-cyan: #0184bc;--ansi-color-white: white;--ansi-color-light-black: #5c6370;--ansi-color-light-red: #e45649;--ansi-color-light-green: #34d399;--ansi-color-light-yellow: #fde68a;--ansi-color-light-blue: #61afef;--ansi-color-light-magenta: #c678dd;--ansi-color-light-cyan: #56b6c2;--ansi-color-light-white: white}body[data-editor-theme=default] .editor-theme-aware-ansi{--ansi-color-black: black;--ansi-color-red: #be5046;--ansi-color-green: #98c379;--ansi-color-yellow: #e5c07b;--ansi-color-blue: #61afef;--ansi-color-magenta: #c678dd;--ansi-color-cyan: #56b6c2;--ansi-color-white: white;--ansi-color-light-black: #5c6370;--ansi-color-light-red: #e06c75;--ansi-color-light-green: #34d399;--ansi-color-light-yellow: #fde68a;--ansi-color-light-blue: #93c5fd;--ansi-color-light-magenta: #f472b6;--ansi-color-light-cyan: #6be3f2;--ansi-color-light-white: white}[phx-hook=Highlight][data-highlighted]>[data-source]{display:none}[phx-hook=Dropzone][data-js-dragging]{--tw-border-opacity: 1;border-color:rgb(178 193 255 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}[data-el-session]:not([data-js-insert-mode]) [data-el-insert-mode-indicator]{visibility:hidden}[data-el-session]:not([data-js-insert-mode]) [data-el-cell][data-type=markdown] [data-el-editor-box],[data-el-session][data-js-insert-mode] [data-el-cell][data-type=markdown]:not([data-js-focused]) [data-el-editor-box]{display:none}[data-el-session][data-js-insert-mode] [data-el-cell][data-js-focused] [data-el-enable-insert-mode-button]{display:none}[data-el-session]:not([data-js-insert-mode]) [data-el-cell][data-type=markdown][data-js-focused] [data-el-insert-image-button]{display:none}[data-el-notebook-headline]:hover [data-el-heading],[data-el-section-headline]:hover [data-el-heading]{--tw-border-opacity: 1;border-color:rgb(216 224 255 / var(--tw-border-opacity))}[data-el-notebook-headline][data-js-focused] [data-el-heading],[data-el-section-headline][data-js-focused] [data-el-heading]{--tw-border-opacity: 1;border-color:rgb(178 193 255 / var(--tw-border-opacity))}[data-el-section-headline]:not(:hover):not([data-js-focused]) [data-el-heading]+[data-el-section-actions]:not(:focus-within){display:none}[data-el-section][data-js-collapsed] [data-el-section-collapse-button],[data-el-section]:not([data-js-collapsed]) [data-el-section-headline]:not(:hover):not([data-js-focused]) [data-el-section-collapse-button],[data-el-section]:not([data-js-collapsed]) [data-el-section-expand-button],[data-el-session]:not([data-js-view=code-zen]) [data-el-section][data-js-collapsed]>[data-el-section-content],[data-el-section]:not([data-js-collapsed])>[data-el-section-subheadline-collapsed]{display:none}[data-el-session]:not([data-js-dragging]) [data-el-insert-drop-area]{display:none}[data-el-session]:not([data-js-dragging=external]) [data-el-files-drop-area]{display:none}[data-el-session][data-js-dragging=external] [data-el-files-add-button]{display:none}[data-el-cell][data-js-focused]{border-color:rgb(178 193 255 / var(--tw-border-opacity));--tw-border-opacity: 1}[data-el-cell]:not([data-js-focused]) [data-el-actions]:not(:focus-within){opacity:0}[data-el-cell]:not([data-js-focused]) [data-el-actions]:not([data-primary]):not(:focus-within){pointer-events:none}[data-el-cell]:not([data-js-focused])[data-js-hover] [data-el-actions][data-primary]{pointer-events:auto;opacity:1}[data-el-cell][data-js-changed] [data-el-cell-status]{font-style:italic}[data-el-cell]:not([data-js-changed]) [data-el-cell-status] [data-el-change-indicator]{visibility:hidden}[data-el-sections-list-item][data-js-is-viewed]{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}[data-el-cell]:not([data-js-focused])[data-js-hover] [data-el-cell-focus-indicator]{--tw-bg-opacity: 1;background-color:rgb(216 224 255 / var(--tw-bg-opacity))}[data-el-cell][data-js-focused] [data-el-cell-focus-indicator]{--tw-bg-opacity: 1;background-color:rgb(178 193 255 / var(--tw-bg-opacity))}[data-el-cell][data-js-amplified] [data-el-outputs-container]{margin:0;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-top:4rem;padding-bottom:4rem;width:90vw;position:relative;left:calc(-45vw + 50%)}[data-el-cell][data-js-amplified] [data-el-amplify-outputs-button] .icon-button{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}[data-el-cell][data-type=smart]:not([data-js-source-visible]) [data-el-editor-box]{height:0px;overflow:hidden}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-ui-box]{display:none}[data-el-session] [data-el-cell][data-type=setup]:not([data-eval-validity=fresh]:not([data-js-empty])):not([data-eval-errored]):not([data-js-changed]):not([data-js-focused]) [data-el-editor-box]{height:0px;overflow:hidden}[data-el-session] [data-el-cell][data-type=setup][data-js-focused] [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-eval-validity=fresh]:not([data-js-empty]) [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-eval-errored] [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-js-changed] [data-el-info-box]{display:none}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-toggle-source-button] .icon-button{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-cell-status-container]{position:absolute;bottom:.5rem;right:.5rem}[data-el-output][data-border]>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse));--tw-divide-opacity: 1;border-color:rgb(225 232 240 / var(--tw-divide-opacity))}[data-el-output][data-border]{border-width:1px;border-top-width:0px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));padding:1rem}[data-el-output][data-border]:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem;border-top-width:1px}[data-el-output]:not([data-border])+[data-el-output][data-border]{border-top-width:1px}[data-el-output][data-border]:last-child{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem;border-bottom-width:1px}[data-el-output]:not(:first-child){margin-top:.5rem}[data-el-output][data-border]+[data-el-output][data-border]{margin-top:0}[data-el-outputs-container]>[data-el-output]:first-child{margin-top:.5rem}[data-el-session]:not([data-js-side-panel-content]) [data-el-side-panel]{display:none}[data-el-session]:not([data-js-side-panel-content=sections-list]) [data-el-sections-list]{display:none}[data-el-session]:not([data-js-side-panel-content=clients-list]) [data-el-clients-list]{display:none}[data-el-session]:not([data-js-side-panel-content=secrets-list]) [data-el-secrets-list]{display:none}[data-el-session]:not([data-js-side-panel-content=files-list]) [data-el-files-list]{display:none}[data-el-session]:not([data-js-side-panel-content=runtime-info]) [data-el-runtime-info]{display:none}[data-el-session]:not([data-js-side-panel-content=app-info]) [data-el-app-info]{display:none}[data-el-session][data-js-side-panel-content=sections-list] [data-el-sections-list-toggle],[data-el-session][data-js-side-panel-content=clients-list] [data-el-clients-list-toggle],[data-el-session][data-js-side-panel-content=secrets-list] [data-el-secrets-list-toggle],[data-el-session][data-js-side-panel-content=files-list] [data-el-files-list-toggle],[data-el-session][data-js-side-panel-content=runtime-info] [data-el-runtime-info-toggle],[data-el-session][data-js-side-panel-content=app-info] [data-el-app-info-toggle]{--tw-bg-opacity: 1;background-color:rgb(48 66 84 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}[data-el-session][data-js-side-panel-content=app-info] [data-el-app-indicator]{--tw-border-opacity: 1;border-color:rgb(48 66 84 / var(--tw-border-opacity))}[data-el-clients-list-item]:not([data-js-followed]) [data-meta=unfollow]{display:none}[data-el-clients-list-item][data-js-followed] [data-meta=follow]{display:none}[phx-hook=VirtualizedLines]:not(:hover) [data-el-clipcopy]{display:none}[data-el-session][data-js-view=code-zen] [data-el-view-toggle=code-zen],[data-el-session][data-js-view=presentation] [data-el-view-toggle=presentation],[data-el-session][data-js-view=custom] [data-el-view-toggle=custom]{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}[data-el-session][data-js-view] :is([data-el-actions],[data-el-insert-buttons]){display:none}[data-el-session][data-js-view] [data-el-views-disabled]{display:none}[data-el-session]:not([data-js-view]) [data-el-views-enabled]{display:none}[data-js-hide-output] [data-el-output]{display:none}[data-js-hide-section] :is([data-el-section-headline],[data-el-section-subheadline],[data-el-section-subheadline-collapsed]){display:none}[data-js-hide-section] [data-el-sections-container]{margin-top:0}[data-js-hide-section] [data-el-sections-container]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}[data-js-hide-markdown] [data-el-cell][data-type=markdown]{display:none}[data-js-spotlight] :is([data-el-section-headline]:not([data-js-focused]),[data-el-section-subheadline]:not([data-js-focused]),[data-el-cell]:not([data-js-focused]),[data-el-js-view-iframes] iframe:not([data-js-focused])){opacity:.1}[data-js-spotlight] :is([data-el-sidebar],[data-el-side-panel],[data-el-toggle-sidebar]){display:none}.tooltip{position:relative;display:flex;--distance: 4px;--arrow-size: 5px;--show-delay: .5s}.tooltip.distant{--distance: 28px}.tooltip.distant-medium{--distance: 10px}.tooltip:before{position:absolute;content:attr(data-tooltip);white-space:pre;text-align:center;display:block;z-index:100;background-color:#1c273c;color:#f0f5f9;font-size:12px;font-weight:500;border-radius:4px;padding:3px 12px;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:0s}.tooltip:after{content:"";position:absolute;display:block;z-index:100;border-width:var(--arrow-size);border-style:solid;border-color:#1c273c;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:0s}.tooltip:hover:before{visibility:visible;transition-delay:var(--show-delay)}.tooltip:hover:after{visibility:visible;transition-delay:var(--show-delay)}.tooltip.top:before{bottom:100%;left:50%;transform:translate(-50%,calc(1px - var(--arrow-size) - var(--distance)))}.tooltip.top:after{bottom:100%;left:50%;transform:translate(-50%,calc(0px - var(--distance)));border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tooltip.bottom:before{top:100%;left:50%;transform:translate(-50%,calc(var(--arrow-size) - 1px + var(--distance)))}.tooltip.bottom-left:before{top:100%;right:0;transform:translateY(calc(var(--arrow-size) - 1px + var(--distance)))}.tooltip.bottom:after,.tooltip.bottom-left:after{top:100%;left:50%;transform:translate(-50%,var(--distance));border-top:none;border-left-color:transparent;border-right-color:transparent}.tooltip.right:before{top:50%;left:100%;transform:translate(calc(var(--arrow-size) - 1px + var(--distance)),-50%)}.tooltip.right:after{top:50%;left:100%;transform:translate(var(--distance),-50%);border-left:none;border-top-color:transparent;border-bottom-color:transparent}.tooltip.left:before{top:50%;right:100%;transform:translate(calc(1px - var(--arrow-size) - var(--distance)),-50%)}.tooltip.left:after{top:50%;right:100%;transform:translate(calc(0px - var(--distance)),-50%);border-right:none;border-top-color:transparent;border-bottom-color:transparent}.monaco-hover p,.suggest-details p,.parameter-hints-widget p{margin-top:.5rem!important;margin-bottom:.5rem!important}.suggest-details h1,.monaco-hover h1,.parameter-hints-widget h1{margin-top:1rem;margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.suggest-details h2,.monaco-hover h2,.parameter-hints-widget h2{margin-top:1rem;margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:500}.suggest-details h3,.monaco-hover h3,.parameter-hints-widget h3{margin-top:1rem;margin-bottom:.5rem;font-weight:500}.suggest-details ul,.monaco-hover ul,.parameter-hints-widget ul{list-style-type:disc}.suggest-details ol,.monaco-hover ol,.parameter-hints-widget ol{list-style-type:decimal}.suggest-details hr,.monaco-hover hr,.parameter-hints-widget hr{margin-top:.5rem!important;margin-bottom:.5rem!important}.suggest-details blockquote,.monaco-hover blockquote,.parameter-hints-widget blockquote{margin-top:.5rem;margin-bottom:.5rem;border-left-width:4px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));padding-top:.125rem;padding-bottom:.125rem;padding-left:1rem}.suggest-details div.monaco-tokenized-source,.monaco-hover div.monaco-tokenized-source,.parameter-hints-widget div.monaco-tokenized-source{margin-top:.5rem;margin-bottom:.5rem;white-space:pre-wrap}.suggest-details,.monaco-hover,.parameter-hints-widget{z-index:100!important}.suggest-details .header p{padding-bottom:0!important;padding-top:.75rem!important}.parameter-hints-widget .markdown-docs hr{border-top:1px solid rgba(69,69,69,.5);margin-right:-8px;margin-left:-8px}.monaco-hover-content{max-width:1000px!important;max-height:300px!important}.suggest-details-container,.suggest-details{width:-moz-fit-content!important;width:fit-content!important;height:-moz-fit-content!important;height:fit-content!important;max-width:420px!important;max-height:250px!important}.suggest-details .header .type{padding-top:0!important}.docs.markdown-docs{margin:0!important}.monaco-editor .quick-input-list .monaco-list{max-height:300px!important}.monaco-cursor-widget-container{pointer-events:none;z-index:100}.monaco-cursor-widget-container .monaco-cursor-widget-cursor{pointer-events:initial;width:2px}.monaco-cursor-widget-container .monaco-cursor-widget-label{pointer-events:initial;transform:translateY(-200%);white-space:nowrap;padding:1px 8px;font-size:12px;color:#f8fafc;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:1.5s}.monaco-cursor-widget-container .monaco-cursor-widget-label:hover{visibility:visible}.monaco-cursor-widget-container .monaco-cursor-widget-cursor:hover+.monaco-cursor-widget-label{visibility:visible;transition-delay:0s}.monaco-cursor-widget-container.inline{display:flex!important}.monaco-cursor-widget-container.inline .monaco-cursor-widget-label{margin-left:2px;transform:none}.doctest-status-decoration-running,.doctest-status-decoration-success,.doctest-status-decoration-failed{height:100%;position:relative;--decoration-size: 10px}@media (min-width: 768px){.doctest-status-decoration-running,.doctest-status-decoration-success,.doctest-status-decoration-failed{--decoration-size: 12px}}.doctest-status-decoration-running:after,.doctest-status-decoration-success:after,.doctest-status-decoration-failed:after{box-sizing:border-box;border-radius:2px;content:"";display:block;height:var(--decoration-size);width:var(--decoration-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.doctest-status-decoration-running:after{--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.doctest-status-decoration-success:after{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.doctest-status-decoration-failed:after{--tw-bg-opacity: 1;background-color:rgb(233 117 121 / var(--tw-bg-opacity))}.doctest-details-widget{font-family:JetBrains Mono,Droid Sans Mono,"monospace";font-variant-ligatures:none;font-size:14px;white-space:pre;background-color:#0000000d;padding-top:6px;padding-bottom:6px;position:absolute;width:100%;overflow-y:auto}.ri-livebook-sections,.ri-livebook-runtime,.ri-livebook-shortcuts,.ri-livebook-secrets,.ri-livebook-deploy,.ri-livebook-terminal,.ri-livebook-save{vertical-align:middle;font-size:1.25rem;line-height:1.75rem}.ri-livebook-sections:before{content:"\eade"}.ri-livebook-runtime:before{content:"\ebf0"}.ri-livebook-shortcuts:before{content:"\ee72"}.ri-livebook-secrets:before{content:"\eed0"}.ri-livebook-deploy:before{content:"\f096"}.ri-livebook-terminal:before{content:"\f1f8"}.ri-livebook-save:before{content:"\f0b3"}.invalid\:input--error:invalid{--tw-border-opacity: 1;border-color:rgb(219 25 32 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}.first\:rounded-l-lg:first-child{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.last\:rounded-r-lg:last-child{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.last\:border-b-0:last-child{border-bottom-width:0px}.last\:border-r:last-child{border-right-width:1px}.checked\:translate-x-full:checked{--tw-translate-x: 100%;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))}.checked\:border-blue-600:checked{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity))}.checked\:bg-white:checked{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.empty\:hidden:empty{display:none}.focus-within\:opacity-100:focus-within{opacity:1}.hover\:z-\[11\]:hover{z-index:11}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:rounded-md:hover{border-radius:.375rem}.hover\:border-none:hover{border-style:none}.hover\:border-gray-200:hover{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity))}.hover\:border-transparent:hover{border-color:transparent}.hover\:border-white:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(245 247 255 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.hover\:bg-green-bright-50:hover{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.hover\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity))}.hover\:bg-yellow-bright-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.hover\:text-gray-50:hover{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.hover\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:no-underline:hover{text-decoration-line:none}.hover\:\!opacity-100:hover{opacity:1!important}.hover\:opacity-100:hover{opacity:1}.focus\:bg-blue-50:focus{--tw-bg-opacity: 1;background-color:rgb(245 247 255 / var(--tw-bg-opacity))}.focus\:bg-blue-700:focus{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.focus\:bg-gray-100:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.focus\:bg-green-bright-50:focus{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.focus\:bg-red-50:focus{--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity))}.focus\:bg-yellow-bright-50:focus{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.focus\:text-gray-50:focus{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.focus\:text-gray-600:focus{--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.focus\:text-gray-800:focus{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.focus\:text-white:focus{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\:ring-1:focus{--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(1px + 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\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(145 164 183 / var(--tw-ring-opacity))}.active\:bg-gray-200:active{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.group:focus-within .group-focus-within\:flex{display:flex}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:flex{display:flex}.group:hover .group-hover\:text-blue-600{--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.group:hover .group-hover\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:hover .group-hover\:ring-2{--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(2px + 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-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:block{display:block}:not(.phx-no-feedback).show-errors .phx-form-error\:border-red-600{--tw-border-opacity: 1;border-color:rgb(219 25 32 / var(--tw-border-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:text-red-600{--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:placeholder-red-600::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(219 25 32 / var(--tw-placeholder-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:placeholder-red-600::placeholder{--tw-placeholder-opacity: 1;color:rgb(219 25 32 / var(--tw-placeholder-opacity))}.phx-submit-loading.phx-submit-loading\:block,.phx-submit-loading .phx-submit-loading\:block{display:block}@media (min-width: 640px){.sm\:fixed{position:fixed}.sm\:bottom-0{bottom:0}.sm\:bottom-auto{bottom:auto}.sm\:left-0{left:0}.sm\:left-auto{left:auto}.sm\:right-0{right:0}.sm\:right-auto{right:auto}.sm\:top-0{top:0}.sm\:top-auto{top:auto}.sm\:m-auto{margin:auto}.sm\:-mb-1{margin-bottom:-.25rem}.sm\:-mt-1{margin-top:-.25rem}.sm\:mb-0{margin-bottom:0}.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:w-72{width:18rem}.sm\:-translate-y-full{--tw-translate-y: -100%;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))}.sm\:translate-y-full{--tw-translate-y: 100%;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))}.sm\:transform{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))}.sm\:scroll-mt-0{scroll-margin-top:0px}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:gap-12{gap:3rem}.sm\:gap-3{gap:.75rem}.sm\:space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.sm\:space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.sm\:p-0{padding:0}.sm\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.sm\:pl-8{padding-left:2rem}.sm\:pr-16{padding-right:4rem}}@media (min-width: 768px){.md\:static{position:static}.md\:fixed{position:fixed}.md\:absolute{position:absolute}.md\:bottom-0{bottom:0}.md\:bottom-auto{bottom:auto}.md\:left-0{left:0}.md\:left-4{left:1rem}.md\:left-auto{left:auto}.md\:right-0{right:0}.md\:right-auto{right:auto}.md\:top-0{top:0}.md\:top-auto{top:auto}.md\:-mb-1{margin-bottom:-.25rem}.md\:-mt-1{margin-top:-.25rem}.md\:mb-0{margin-bottom:0}.md\:mt-0{margin-top:0}.md\:flex{display:flex}.md\:hidden{display:none}.md\:-translate-y-full{--tw-translate-y: -100%;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))}.md\:translate-y-full{--tw-translate-y: 100%;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))}.md\:transform{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))}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-\[minmax\(0\,_2fr\)_minmax\(0\,_2fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)\]{grid-template-columns:minmax(0,2fr) minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}.md\:flex-row{flex-direction:row}.md\:flex-col{flex-direction:column}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.md\:px-12{padding-left:3rem;padding-right:3rem}.md\:px-20{padding-left:5rem;padding-right:5rem}.md\:py-2{padding-top:.5rem;padding-bottom:.5rem}.md\:py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.md\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:py-7{padding-top:1.75rem;padding-bottom:1.75rem}.md\:py-8{padding-top:2rem;padding-bottom:2rem}.md\:pl-16{padding-left:4rem}.md\:pr-0{padding-right:0}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (min-width: 1024px){.lg\:flex{display:flex}.lg\:w-1\/2{width:50%}.lg\:grow{flex-grow:1}.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\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-\[minmax\(0\,_2fr\)_minmax\(0\,_2fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)\]{grid-template-columns:minmax(0,2fr) minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}.lg\:flex-row{flex-direction:row}.lg\:justify-end{justify-content:flex-end}.lg\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:whitespace-nowrap{white-space:nowrap}.lg\:pr-4{padding-right:1rem}}@media (min-width: 1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&\>\:first-child\:focus\]\:bg-gray-100>:first-child:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.\[\&\>\:first-child\:hover\]\:bg-gray-100>:first-child:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.\[\&\>\:first-child\]\:flex>:first-child{display:flex}.\[\&\>\:first-child\]\:w-full>:first-child{width:100%}.\[\&\>\:first-child\]\:items-center>:first-child{align-items:center}.\[\&\>\:first-child\]\:space-x-3>:first-child>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.\[\&\>\:first-child\]\:whitespace-nowrap>:first-child{white-space:nowrap}.\[\&\>\:first-child\]\:px-5>:first-child{padding-left:1.25rem;padding-right:1.25rem}.\[\&\>\:first-child\]\:py-2>:first-child{padding-top:.5rem;padding-bottom:.5rem}@font-face{font-family:remixicon;src:url(./remixicon-EJ57KKHX.eot?t=1690730386070);src:url(./remixicon-EJ57KKHX.eot?t=1690730386070#iefix) format("embedded-opentype"),url(./remixicon-LVVQUEYC.woff2?t=1690730386070) format("woff2"),url(./remixicon-E3YYWUKU.woff?t=1690730386070) format("woff"),url(./remixicon-PTCXODVZ.ttf?t=1690730386070) format("truetype"),url(./remixicon-4CSUN567.svg?t=1690730386070#remixicon) format("svg");font-display:swap}[class^=ri-],[class*=" ri-"]{font-family:remixicon!important;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ri-lg{font-size:1.3333em;line-height:.75em;vertical-align:-.0667em}.ri-xl{font-size:1.5em;line-height:.6666em;vertical-align:-.075em}.ri-xxs{font-size:.5em}.ri-xs{font-size:.75em}.ri-sm{font-size:.875em}.ri-1x{font-size:1em}.ri-2x{font-size:2em}.ri-3x{font-size:3em}.ri-4x{font-size:4em}.ri-5x{font-size:5em}.ri-6x{font-size:6em}.ri-7x{font-size:7em}.ri-8x{font-size:8em}.ri-9x{font-size:9em}.ri-10x{font-size:10em}.ri-fw{text-align:center;width:1.25em}.ri-24-hours-fill:before{content:"\ea01"}.ri-24-hours-line:before{content:"\ea02"}.ri-4k-fill:before{content:"\ea03"}.ri-4k-line:before{content:"\ea04"}.ri-a-b:before{content:"\ea05"}.ri-account-box-fill:before{content:"\ea06"}.ri-account-box-line:before{content:"\ea07"}.ri-account-circle-fill:before{content:"\ea08"}.ri-account-circle-line:before{content:"\ea09"}.ri-account-pin-box-fill:before{content:"\ea0a"}.ri-account-pin-box-line:before{content:"\ea0b"}.ri-account-pin-circle-fill:before{content:"\ea0c"}.ri-account-pin-circle-line:before{content:"\ea0d"}.ri-add-box-fill:before{content:"\ea0e"}.ri-add-box-line:before{content:"\ea0f"}.ri-add-circle-fill:before{content:"\ea10"}.ri-add-circle-line:before{content:"\ea11"}.ri-add-fill:before{content:"\ea12"}.ri-add-line:before{content:"\ea13"}.ri-admin-fill:before{content:"\ea14"}.ri-admin-line:before{content:"\ea15"}.ri-advertisement-fill:before{content:"\ea16"}.ri-advertisement-line:before{content:"\ea17"}.ri-airplay-fill:before{content:"\ea18"}.ri-airplay-line:before{content:"\ea19"}.ri-alarm-fill:before{content:"\ea1a"}.ri-alarm-line:before{content:"\ea1b"}.ri-alarm-warning-fill:before{content:"\ea1c"}.ri-alarm-warning-line:before{content:"\ea1d"}.ri-album-fill:before{content:"\ea1e"}.ri-album-line:before{content:"\ea1f"}.ri-alert-fill:before{content:"\ea20"}.ri-alert-line:before{content:"\ea21"}.ri-aliens-fill:before{content:"\ea22"}.ri-aliens-line:before{content:"\ea23"}.ri-align-bottom:before{content:"\ea24"}.ri-align-center:before{content:"\ea25"}.ri-align-justify:before{content:"\ea26"}.ri-align-left:before{content:"\ea27"}.ri-align-right:before{content:"\ea28"}.ri-align-top:before{content:"\ea29"}.ri-align-vertically:before{content:"\ea2a"}.ri-alipay-fill:before{content:"\ea2b"}.ri-alipay-line:before{content:"\ea2c"}.ri-amazon-fill:before{content:"\ea2d"}.ri-amazon-line:before{content:"\ea2e"}.ri-anchor-fill:before{content:"\ea2f"}.ri-anchor-line:before{content:"\ea30"}.ri-ancient-gate-fill:before{content:"\ea31"}.ri-ancient-gate-line:before{content:"\ea32"}.ri-ancient-pavilion-fill:before{content:"\ea33"}.ri-ancient-pavilion-line:before{content:"\ea34"}.ri-android-fill:before{content:"\ea35"}.ri-android-line:before{content:"\ea36"}.ri-angularjs-fill:before{content:"\ea37"}.ri-angularjs-line:before{content:"\ea38"}.ri-anticlockwise-2-fill:before{content:"\ea39"}.ri-anticlockwise-2-line:before{content:"\ea3a"}.ri-anticlockwise-fill:before{content:"\ea3b"}.ri-anticlockwise-line:before{content:"\ea3c"}.ri-app-store-fill:before{content:"\ea3d"}.ri-app-store-line:before{content:"\ea3e"}.ri-apple-fill:before{content:"\ea3f"}.ri-apple-line:before{content:"\ea40"}.ri-apps-2-fill:before{content:"\ea41"}.ri-apps-2-line:before{content:"\ea42"}.ri-apps-fill:before{content:"\ea43"}.ri-apps-line:before{content:"\ea44"}.ri-archive-drawer-fill:before{content:"\ea45"}.ri-archive-drawer-line:before{content:"\ea46"}.ri-archive-fill:before{content:"\ea47"}.ri-archive-line:before{content:"\ea48"}.ri-arrow-down-circle-fill:before{content:"\ea49"}.ri-arrow-down-circle-line:before{content:"\ea4a"}.ri-arrow-down-fill:before{content:"\ea4b"}.ri-arrow-down-line:before{content:"\ea4c"}.ri-arrow-down-s-fill:before{content:"\ea4d"}.ri-arrow-down-s-line:before{content:"\ea4e"}.ri-arrow-drop-down-fill:before{content:"\ea4f"}.ri-arrow-drop-down-line:before{content:"\ea50"}.ri-arrow-drop-left-fill:before{content:"\ea51"}.ri-arrow-drop-left-line:before{content:"\ea52"}.ri-arrow-drop-right-fill:before{content:"\ea53"}.ri-arrow-drop-right-line:before{content:"\ea54"}.ri-arrow-drop-up-fill:before{content:"\ea55"}.ri-arrow-drop-up-line:before{content:"\ea56"}.ri-arrow-go-back-fill:before{content:"\ea57"}.ri-arrow-go-back-line:before{content:"\ea58"}.ri-arrow-go-forward-fill:before{content:"\ea59"}.ri-arrow-go-forward-line:before{content:"\ea5a"}.ri-arrow-left-circle-fill:before{content:"\ea5b"}.ri-arrow-left-circle-line:before{content:"\ea5c"}.ri-arrow-left-down-fill:before{content:"\ea5d"}.ri-arrow-left-down-line:before{content:"\ea5e"}.ri-arrow-left-fill:before{content:"\ea5f"}.ri-arrow-left-line:before{content:"\ea60"}.ri-arrow-left-right-fill:before{content:"\ea61"}.ri-arrow-left-right-line:before{content:"\ea62"}.ri-arrow-left-s-fill:before{content:"\ea63"}.ri-arrow-left-s-line:before{content:"\ea64"}.ri-arrow-left-up-fill:before{content:"\ea65"}.ri-arrow-left-up-line:before{content:"\ea66"}.ri-arrow-right-circle-fill:before{content:"\ea67"}.ri-arrow-right-circle-line:before{content:"\ea68"}.ri-arrow-right-down-fill:before{content:"\ea69"}.ri-arrow-right-down-line:before{content:"\ea6a"}.ri-arrow-right-fill:before{content:"\ea6b"}.ri-arrow-right-line:before{content:"\ea6c"}.ri-arrow-right-s-fill:before{content:"\ea6d"}.ri-arrow-right-s-line:before{content:"\ea6e"}.ri-arrow-right-up-fill:before{content:"\ea6f"}.ri-arrow-right-up-line:before{content:"\ea70"}.ri-arrow-up-circle-fill:before{content:"\ea71"}.ri-arrow-up-circle-line:before{content:"\ea72"}.ri-arrow-up-down-fill:before{content:"\ea73"}.ri-arrow-up-down-line:before{content:"\ea74"}.ri-arrow-up-fill:before{content:"\ea75"}.ri-arrow-up-line:before{content:"\ea76"}.ri-arrow-up-s-fill:before{content:"\ea77"}.ri-arrow-up-s-line:before{content:"\ea78"}.ri-artboard-2-fill:before{content:"\ea79"}.ri-artboard-2-line:before{content:"\ea7a"}.ri-artboard-fill:before{content:"\ea7b"}.ri-artboard-line:before{content:"\ea7c"}.ri-article-fill:before{content:"\ea7d"}.ri-article-line:before{content:"\ea7e"}.ri-aspect-ratio-fill:before{content:"\ea7f"}.ri-aspect-ratio-line:before{content:"\ea80"}.ri-asterisk:before{content:"\ea81"}.ri-at-fill:before{content:"\ea82"}.ri-at-line:before{content:"\ea83"}.ri-attachment-2:before{content:"\ea84"}.ri-attachment-fill:before{content:"\ea85"}.ri-attachment-line:before{content:"\ea86"}.ri-auction-fill:before{content:"\ea87"}.ri-auction-line:before{content:"\ea88"}.ri-award-fill:before{content:"\ea89"}.ri-award-line:before{content:"\ea8a"}.ri-baidu-fill:before{content:"\ea8b"}.ri-baidu-line:before{content:"\ea8c"}.ri-ball-pen-fill:before{content:"\ea8d"}.ri-ball-pen-line:before{content:"\ea8e"}.ri-bank-card-2-fill:before{content:"\ea8f"}.ri-bank-card-2-line:before{content:"\ea90"}.ri-bank-card-fill:before{content:"\ea91"}.ri-bank-card-line:before{content:"\ea92"}.ri-bank-fill:before{content:"\ea93"}.ri-bank-line:before{content:"\ea94"}.ri-bar-chart-2-fill:before{content:"\ea95"}.ri-bar-chart-2-line:before{content:"\ea96"}.ri-bar-chart-box-fill:before{content:"\ea97"}.ri-bar-chart-box-line:before{content:"\ea98"}.ri-bar-chart-fill:before{content:"\ea99"}.ri-bar-chart-grouped-fill:before{content:"\ea9a"}.ri-bar-chart-grouped-line:before{content:"\ea9b"}.ri-bar-chart-horizontal-fill:before{content:"\ea9c"}.ri-bar-chart-horizontal-line:before{content:"\ea9d"}.ri-bar-chart-line:before{content:"\ea9e"}.ri-barcode-box-fill:before{content:"\ea9f"}.ri-barcode-box-line:before{content:"\eaa0"}.ri-barcode-fill:before{content:"\eaa1"}.ri-barcode-line:before{content:"\eaa2"}.ri-barricade-fill:before{content:"\eaa3"}.ri-barricade-line:before{content:"\eaa4"}.ri-base-station-fill:before{content:"\eaa5"}.ri-base-station-line:before{content:"\eaa6"}.ri-basketball-fill:before{content:"\eaa7"}.ri-basketball-line:before{content:"\eaa8"}.ri-battery-2-charge-fill:before{content:"\eaa9"}.ri-battery-2-charge-line:before{content:"\eaaa"}.ri-battery-2-fill:before{content:"\eaab"}.ri-battery-2-line:before{content:"\eaac"}.ri-battery-charge-fill:before{content:"\eaad"}.ri-battery-charge-line:before{content:"\eaae"}.ri-battery-fill:before{content:"\eaaf"}.ri-battery-line:before{content:"\eab0"}.ri-battery-low-fill:before{content:"\eab1"}.ri-battery-low-line:before{content:"\eab2"}.ri-battery-saver-fill:before{content:"\eab3"}.ri-battery-saver-line:before{content:"\eab4"}.ri-battery-share-fill:before{content:"\eab5"}.ri-battery-share-line:before{content:"\eab6"}.ri-bear-smile-fill:before{content:"\eab7"}.ri-bear-smile-line:before{content:"\eab8"}.ri-behance-fill:before{content:"\eab9"}.ri-behance-line:before{content:"\eaba"}.ri-bell-fill:before{content:"\eabb"}.ri-bell-line:before{content:"\eabc"}.ri-bike-fill:before{content:"\eabd"}.ri-bike-line:before{content:"\eabe"}.ri-bilibili-fill:before{content:"\eabf"}.ri-bilibili-line:before{content:"\eac0"}.ri-bill-fill:before{content:"\eac1"}.ri-bill-line:before{content:"\eac2"}.ri-billiards-fill:before{content:"\eac3"}.ri-billiards-line:before{content:"\eac4"}.ri-bit-coin-fill:before{content:"\eac5"}.ri-bit-coin-line:before{content:"\eac6"}.ri-blaze-fill:before{content:"\eac7"}.ri-blaze-line:before{content:"\eac8"}.ri-bluetooth-connect-fill:before{content:"\eac9"}.ri-bluetooth-connect-line:before{content:"\eaca"}.ri-bluetooth-fill:before{content:"\eacb"}.ri-bluetooth-line:before{content:"\eacc"}.ri-blur-off-fill:before{content:"\eacd"}.ri-blur-off-line:before{content:"\eace"}.ri-body-scan-fill:before{content:"\eacf"}.ri-body-scan-line:before{content:"\ead0"}.ri-bold:before{content:"\ead1"}.ri-book-2-fill:before{content:"\ead2"}.ri-book-2-line:before{content:"\ead3"}.ri-book-3-fill:before{content:"\ead4"}.ri-book-3-line:before{content:"\ead5"}.ri-book-fill:before{content:"\ead6"}.ri-book-line:before{content:"\ead7"}.ri-book-mark-fill:before{content:"\ead8"}.ri-book-mark-line:before{content:"\ead9"}.ri-book-open-fill:before{content:"\eada"}.ri-book-open-line:before{content:"\eadb"}.ri-book-read-fill:before{content:"\eadc"}.ri-book-read-line:before{content:"\eadd"}.ri-booklet-fill:before{content:"\eade"}.ri-booklet-line:before{content:"\eadf"}.ri-bookmark-2-fill:before{content:"\eae0"}.ri-bookmark-2-line:before{content:"\eae1"}.ri-bookmark-3-fill:before{content:"\eae2"}.ri-bookmark-3-line:before{content:"\eae3"}.ri-bookmark-fill:before{content:"\eae4"}.ri-bookmark-line:before{content:"\eae5"}.ri-boxing-fill:before{content:"\eae6"}.ri-boxing-line:before{content:"\eae7"}.ri-braces-fill:before{content:"\eae8"}.ri-braces-line:before{content:"\eae9"}.ri-brackets-fill:before{content:"\eaea"}.ri-brackets-line:before{content:"\eaeb"}.ri-briefcase-2-fill:before{content:"\eaec"}.ri-briefcase-2-line:before{content:"\eaed"}.ri-briefcase-3-fill:before{content:"\eaee"}.ri-briefcase-3-line:before{content:"\eaef"}.ri-briefcase-4-fill:before{content:"\eaf0"}.ri-briefcase-4-line:before{content:"\eaf1"}.ri-briefcase-5-fill:before{content:"\eaf2"}.ri-briefcase-5-line:before{content:"\eaf3"}.ri-briefcase-fill:before{content:"\eaf4"}.ri-briefcase-line:before{content:"\eaf5"}.ri-bring-forward:before{content:"\eaf6"}.ri-bring-to-front:before{content:"\eaf7"}.ri-broadcast-fill:before{content:"\eaf8"}.ri-broadcast-line:before{content:"\eaf9"}.ri-brush-2-fill:before{content:"\eafa"}.ri-brush-2-line:before{content:"\eafb"}.ri-brush-3-fill:before{content:"\eafc"}.ri-brush-3-line:before{content:"\eafd"}.ri-brush-4-fill:before{content:"\eafe"}.ri-brush-4-line:before{content:"\eaff"}.ri-brush-fill:before{content:"\eb00"}.ri-brush-line:before{content:"\eb01"}.ri-bubble-chart-fill:before{content:"\eb02"}.ri-bubble-chart-line:before{content:"\eb03"}.ri-bug-2-fill:before{content:"\eb04"}.ri-bug-2-line:before{content:"\eb05"}.ri-bug-fill:before{content:"\eb06"}.ri-bug-line:before{content:"\eb07"}.ri-building-2-fill:before{content:"\eb08"}.ri-building-2-line:before{content:"\eb09"}.ri-building-3-fill:before{content:"\eb0a"}.ri-building-3-line:before{content:"\eb0b"}.ri-building-4-fill:before{content:"\eb0c"}.ri-building-4-line:before{content:"\eb0d"}.ri-building-fill:before{content:"\eb0e"}.ri-building-line:before{content:"\eb0f"}.ri-bus-2-fill:before{content:"\eb10"}.ri-bus-2-line:before{content:"\eb11"}.ri-bus-fill:before{content:"\eb12"}.ri-bus-line:before{content:"\eb13"}.ri-bus-wifi-fill:before{content:"\eb14"}.ri-bus-wifi-line:before{content:"\eb15"}.ri-cactus-fill:before{content:"\eb16"}.ri-cactus-line:before{content:"\eb17"}.ri-cake-2-fill:before{content:"\eb18"}.ri-cake-2-line:before{content:"\eb19"}.ri-cake-3-fill:before{content:"\eb1a"}.ri-cake-3-line:before{content:"\eb1b"}.ri-cake-fill:before{content:"\eb1c"}.ri-cake-line:before{content:"\eb1d"}.ri-calculator-fill:before{content:"\eb1e"}.ri-calculator-line:before{content:"\eb1f"}.ri-calendar-2-fill:before{content:"\eb20"}.ri-calendar-2-line:before{content:"\eb21"}.ri-calendar-check-fill:before{content:"\eb22"}.ri-calendar-check-line:before{content:"\eb23"}.ri-calendar-event-fill:before{content:"\eb24"}.ri-calendar-event-line:before{content:"\eb25"}.ri-calendar-fill:before{content:"\eb26"}.ri-calendar-line:before{content:"\eb27"}.ri-calendar-todo-fill:before{content:"\eb28"}.ri-calendar-todo-line:before{content:"\eb29"}.ri-camera-2-fill:before{content:"\eb2a"}.ri-camera-2-line:before{content:"\eb2b"}.ri-camera-3-fill:before{content:"\eb2c"}.ri-camera-3-line:before{content:"\eb2d"}.ri-camera-fill:before{content:"\eb2e"}.ri-camera-lens-fill:before{content:"\eb2f"}.ri-camera-lens-line:before{content:"\eb30"}.ri-camera-line:before{content:"\eb31"}.ri-camera-off-fill:before{content:"\eb32"}.ri-camera-off-line:before{content:"\eb33"}.ri-camera-switch-fill:before{content:"\eb34"}.ri-camera-switch-line:before{content:"\eb35"}.ri-capsule-fill:before{content:"\eb36"}.ri-capsule-line:before{content:"\eb37"}.ri-car-fill:before{content:"\eb38"}.ri-car-line:before{content:"\eb39"}.ri-car-washing-fill:before{content:"\eb3a"}.ri-car-washing-line:before{content:"\eb3b"}.ri-caravan-fill:before{content:"\eb3c"}.ri-caravan-line:before{content:"\eb3d"}.ri-cast-fill:before{content:"\eb3e"}.ri-cast-line:before{content:"\eb3f"}.ri-cellphone-fill:before{content:"\eb40"}.ri-cellphone-line:before{content:"\eb41"}.ri-celsius-fill:before{content:"\eb42"}.ri-celsius-line:before{content:"\eb43"}.ri-centos-fill:before{content:"\eb44"}.ri-centos-line:before{content:"\eb45"}.ri-character-recognition-fill:before{content:"\eb46"}.ri-character-recognition-line:before{content:"\eb47"}.ri-charging-pile-2-fill:before{content:"\eb48"}.ri-charging-pile-2-line:before{content:"\eb49"}.ri-charging-pile-fill:before{content:"\eb4a"}.ri-charging-pile-line:before{content:"\eb4b"}.ri-chat-1-fill:before{content:"\eb4c"}.ri-chat-1-line:before{content:"\eb4d"}.ri-chat-2-fill:before{content:"\eb4e"}.ri-chat-2-line:before{content:"\eb4f"}.ri-chat-3-fill:before{content:"\eb50"}.ri-chat-3-line:before{content:"\eb51"}.ri-chat-4-fill:before{content:"\eb52"}.ri-chat-4-line:before{content:"\eb53"}.ri-chat-check-fill:before{content:"\eb54"}.ri-chat-check-line:before{content:"\eb55"}.ri-chat-delete-fill:before{content:"\eb56"}.ri-chat-delete-line:before{content:"\eb57"}.ri-chat-download-fill:before{content:"\eb58"}.ri-chat-download-line:before{content:"\eb59"}.ri-chat-follow-up-fill:before{content:"\eb5a"}.ri-chat-follow-up-line:before{content:"\eb5b"}.ri-chat-forward-fill:before{content:"\eb5c"}.ri-chat-forward-line:before{content:"\eb5d"}.ri-chat-heart-fill:before{content:"\eb5e"}.ri-chat-heart-line:before{content:"\eb5f"}.ri-chat-history-fill:before{content:"\eb60"}.ri-chat-history-line:before{content:"\eb61"}.ri-chat-new-fill:before{content:"\eb62"}.ri-chat-new-line:before{content:"\eb63"}.ri-chat-off-fill:before{content:"\eb64"}.ri-chat-off-line:before{content:"\eb65"}.ri-chat-poll-fill:before{content:"\eb66"}.ri-chat-poll-line:before{content:"\eb67"}.ri-chat-private-fill:before{content:"\eb68"}.ri-chat-private-line:before{content:"\eb69"}.ri-chat-quote-fill:before{content:"\eb6a"}.ri-chat-quote-line:before{content:"\eb6b"}.ri-chat-settings-fill:before{content:"\eb6c"}.ri-chat-settings-line:before{content:"\eb6d"}.ri-chat-smile-2-fill:before{content:"\eb6e"}.ri-chat-smile-2-line:before{content:"\eb6f"}.ri-chat-smile-3-fill:before{content:"\eb70"}.ri-chat-smile-3-line:before{content:"\eb71"}.ri-chat-smile-fill:before{content:"\eb72"}.ri-chat-smile-line:before{content:"\eb73"}.ri-chat-upload-fill:before{content:"\eb74"}.ri-chat-upload-line:before{content:"\eb75"}.ri-chat-voice-fill:before{content:"\eb76"}.ri-chat-voice-line:before{content:"\eb77"}.ri-check-double-fill:before{content:"\eb78"}.ri-check-double-line:before{content:"\eb79"}.ri-check-fill:before{content:"\eb7a"}.ri-check-line:before{content:"\eb7b"}.ri-checkbox-blank-circle-fill:before{content:"\eb7c"}.ri-checkbox-blank-circle-line:before{content:"\eb7d"}.ri-checkbox-blank-fill:before{content:"\eb7e"}.ri-checkbox-blank-line:before{content:"\eb7f"}.ri-checkbox-circle-fill:before{content:"\eb80"}.ri-checkbox-circle-line:before{content:"\eb81"}.ri-checkbox-fill:before{content:"\eb82"}.ri-checkbox-indeterminate-fill:before{content:"\eb83"}.ri-checkbox-indeterminate-line:before{content:"\eb84"}.ri-checkbox-line:before{content:"\eb85"}.ri-checkbox-multiple-blank-fill:before{content:"\eb86"}.ri-checkbox-multiple-blank-line:before{content:"\eb87"}.ri-checkbox-multiple-fill:before{content:"\eb88"}.ri-checkbox-multiple-line:before{content:"\eb89"}.ri-china-railway-fill:before{content:"\eb8a"}.ri-china-railway-line:before{content:"\eb8b"}.ri-chrome-fill:before{content:"\eb8c"}.ri-chrome-line:before{content:"\eb8d"}.ri-clapperboard-fill:before{content:"\eb8e"}.ri-clapperboard-line:before{content:"\eb8f"}.ri-clipboard-fill:before{content:"\eb90"}.ri-clipboard-line:before{content:"\eb91"}.ri-clockwise-2-fill:before{content:"\eb92"}.ri-clockwise-2-line:before{content:"\eb93"}.ri-clockwise-fill:before{content:"\eb94"}.ri-clockwise-line:before{content:"\eb95"}.ri-close-circle-fill:before{content:"\eb96"}.ri-close-circle-line:before{content:"\eb97"}.ri-close-fill:before{content:"\eb98"}.ri-close-line:before{content:"\eb99"}.ri-closed-captioning-fill:before{content:"\eb9a"}.ri-closed-captioning-line:before{content:"\eb9b"}.ri-cloud-fill:before{content:"\eb9c"}.ri-cloud-line:before{content:"\eb9d"}.ri-cloud-off-fill:before{content:"\eb9e"}.ri-cloud-off-line:before{content:"\eb9f"}.ri-cloud-windy-fill:before{content:"\eba0"}.ri-cloud-windy-line:before{content:"\eba1"}.ri-cloudy-2-fill:before{content:"\eba2"}.ri-cloudy-2-line:before{content:"\eba3"}.ri-cloudy-fill:before{content:"\eba4"}.ri-cloudy-line:before{content:"\eba5"}.ri-code-box-fill:before{content:"\eba6"}.ri-code-box-line:before{content:"\eba7"}.ri-code-fill:before{content:"\eba8"}.ri-code-line:before{content:"\eba9"}.ri-code-s-fill:before{content:"\ebaa"}.ri-code-s-line:before{content:"\ebab"}.ri-code-s-slash-fill:before{content:"\ebac"}.ri-code-s-slash-line:before{content:"\ebad"}.ri-code-view:before{content:"\ebae"}.ri-codepen-fill:before{content:"\ebaf"}.ri-codepen-line:before{content:"\ebb0"}.ri-coin-fill:before{content:"\ebb1"}.ri-coin-line:before{content:"\ebb2"}.ri-coins-fill:before{content:"\ebb3"}.ri-coins-line:before{content:"\ebb4"}.ri-collage-fill:before{content:"\ebb5"}.ri-collage-line:before{content:"\ebb6"}.ri-command-fill:before{content:"\ebb7"}.ri-command-line:before{content:"\ebb8"}.ri-community-fill:before{content:"\ebb9"}.ri-community-line:before{content:"\ebba"}.ri-compass-2-fill:before{content:"\ebbb"}.ri-compass-2-line:before{content:"\ebbc"}.ri-compass-3-fill:before{content:"\ebbd"}.ri-compass-3-line:before{content:"\ebbe"}.ri-compass-4-fill:before{content:"\ebbf"}.ri-compass-4-line:before{content:"\ebc0"}.ri-compass-discover-fill:before{content:"\ebc1"}.ri-compass-discover-line:before{content:"\ebc2"}.ri-compass-fill:before{content:"\ebc3"}.ri-compass-line:before{content:"\ebc4"}.ri-compasses-2-fill:before{content:"\ebc5"}.ri-compasses-2-line:before{content:"\ebc6"}.ri-compasses-fill:before{content:"\ebc7"}.ri-compasses-line:before{content:"\ebc8"}.ri-computer-fill:before{content:"\ebc9"}.ri-computer-line:before{content:"\ebca"}.ri-contacts-book-2-fill:before{content:"\ebcb"}.ri-contacts-book-2-line:before{content:"\ebcc"}.ri-contacts-book-fill:before{content:"\ebcd"}.ri-contacts-book-line:before{content:"\ebce"}.ri-contacts-book-upload-fill:before{content:"\ebcf"}.ri-contacts-book-upload-line:before{content:"\ebd0"}.ri-contacts-fill:before{content:"\ebd1"}.ri-contacts-line:before{content:"\ebd2"}.ri-contrast-2-fill:before{content:"\ebd3"}.ri-contrast-2-line:before{content:"\ebd4"}.ri-contrast-drop-2-fill:before{content:"\ebd5"}.ri-contrast-drop-2-line:before{content:"\ebd6"}.ri-contrast-drop-fill:before{content:"\ebd7"}.ri-contrast-drop-line:before{content:"\ebd8"}.ri-contrast-fill:before{content:"\ebd9"}.ri-contrast-line:before{content:"\ebda"}.ri-copper-coin-fill:before{content:"\ebdb"}.ri-copper-coin-line:before{content:"\ebdc"}.ri-copper-diamond-fill:before{content:"\ebdd"}.ri-copper-diamond-line:before{content:"\ebde"}.ri-copyleft-fill:before{content:"\ebdf"}.ri-copyleft-line:before{content:"\ebe0"}.ri-copyright-fill:before{content:"\ebe1"}.ri-copyright-line:before{content:"\ebe2"}.ri-coreos-fill:before{content:"\ebe3"}.ri-coreos-line:before{content:"\ebe4"}.ri-coupon-2-fill:before{content:"\ebe5"}.ri-coupon-2-line:before{content:"\ebe6"}.ri-coupon-3-fill:before{content:"\ebe7"}.ri-coupon-3-line:before{content:"\ebe8"}.ri-coupon-4-fill:before{content:"\ebe9"}.ri-coupon-4-line:before{content:"\ebea"}.ri-coupon-5-fill:before{content:"\ebeb"}.ri-coupon-5-line:before{content:"\ebec"}.ri-coupon-fill:before{content:"\ebed"}.ri-coupon-line:before{content:"\ebee"}.ri-cpu-fill:before{content:"\ebef"}.ri-cpu-line:before{content:"\ebf0"}.ri-creative-commons-by-fill:before{content:"\ebf1"}.ri-creative-commons-by-line:before{content:"\ebf2"}.ri-creative-commons-fill:before{content:"\ebf3"}.ri-creative-commons-line:before{content:"\ebf4"}.ri-creative-commons-nc-fill:before{content:"\ebf5"}.ri-creative-commons-nc-line:before{content:"\ebf6"}.ri-creative-commons-nd-fill:before{content:"\ebf7"}.ri-creative-commons-nd-line:before{content:"\ebf8"}.ri-creative-commons-sa-fill:before{content:"\ebf9"}.ri-creative-commons-sa-line:before{content:"\ebfa"}.ri-creative-commons-zero-fill:before{content:"\ebfb"}.ri-creative-commons-zero-line:before{content:"\ebfc"}.ri-criminal-fill:before{content:"\ebfd"}.ri-criminal-line:before{content:"\ebfe"}.ri-crop-2-fill:before{content:"\ebff"}.ri-crop-2-line:before{content:"\ec00"}.ri-crop-fill:before{content:"\ec01"}.ri-crop-line:before{content:"\ec02"}.ri-css3-fill:before{content:"\ec03"}.ri-css3-line:before{content:"\ec04"}.ri-cup-fill:before{content:"\ec05"}.ri-cup-line:before{content:"\ec06"}.ri-currency-fill:before{content:"\ec07"}.ri-currency-line:before{content:"\ec08"}.ri-cursor-fill:before{content:"\ec09"}.ri-cursor-line:before{content:"\ec0a"}.ri-customer-service-2-fill:before{content:"\ec0b"}.ri-customer-service-2-line:before{content:"\ec0c"}.ri-customer-service-fill:before{content:"\ec0d"}.ri-customer-service-line:before{content:"\ec0e"}.ri-dashboard-2-fill:before{content:"\ec0f"}.ri-dashboard-2-line:before{content:"\ec10"}.ri-dashboard-3-fill:before{content:"\ec11"}.ri-dashboard-3-line:before{content:"\ec12"}.ri-dashboard-fill:before{content:"\ec13"}.ri-dashboard-line:before{content:"\ec14"}.ri-database-2-fill:before{content:"\ec15"}.ri-database-2-line:before{content:"\ec16"}.ri-database-fill:before{content:"\ec17"}.ri-database-line:before{content:"\ec18"}.ri-delete-back-2-fill:before{content:"\ec19"}.ri-delete-back-2-line:before{content:"\ec1a"}.ri-delete-back-fill:before{content:"\ec1b"}.ri-delete-back-line:before{content:"\ec1c"}.ri-delete-bin-2-fill:before{content:"\ec1d"}.ri-delete-bin-2-line:before{content:"\ec1e"}.ri-delete-bin-3-fill:before{content:"\ec1f"}.ri-delete-bin-3-line:before{content:"\ec20"}.ri-delete-bin-4-fill:before{content:"\ec21"}.ri-delete-bin-4-line:before{content:"\ec22"}.ri-delete-bin-5-fill:before{content:"\ec23"}.ri-delete-bin-5-line:before{content:"\ec24"}.ri-delete-bin-6-fill:before{content:"\ec25"}.ri-delete-bin-6-line:before{content:"\ec26"}.ri-delete-bin-7-fill:before{content:"\ec27"}.ri-delete-bin-7-line:before{content:"\ec28"}.ri-delete-bin-fill:before{content:"\ec29"}.ri-delete-bin-line:before{content:"\ec2a"}.ri-delete-column:before{content:"\ec2b"}.ri-delete-row:before{content:"\ec2c"}.ri-device-fill:before{content:"\ec2d"}.ri-device-line:before{content:"\ec2e"}.ri-device-recover-fill:before{content:"\ec2f"}.ri-device-recover-line:before{content:"\ec30"}.ri-dingding-fill:before{content:"\ec31"}.ri-dingding-line:before{content:"\ec32"}.ri-direction-fill:before{content:"\ec33"}.ri-direction-line:before{content:"\ec34"}.ri-disc-fill:before{content:"\ec35"}.ri-disc-line:before{content:"\ec36"}.ri-discord-fill:before{content:"\ec37"}.ri-discord-line:before{content:"\ec38"}.ri-discuss-fill:before{content:"\ec39"}.ri-discuss-line:before{content:"\ec3a"}.ri-dislike-fill:before{content:"\ec3b"}.ri-dislike-line:before{content:"\ec3c"}.ri-disqus-fill:before{content:"\ec3d"}.ri-disqus-line:before{content:"\ec3e"}.ri-divide-fill:before{content:"\ec3f"}.ri-divide-line:before{content:"\ec40"}.ri-donut-chart-fill:before{content:"\ec41"}.ri-donut-chart-line:before{content:"\ec42"}.ri-door-closed-fill:before{content:"\ec43"}.ri-door-closed-line:before{content:"\ec44"}.ri-door-fill:before{content:"\ec45"}.ri-door-line:before{content:"\ec46"}.ri-door-lock-box-fill:before{content:"\ec47"}.ri-door-lock-box-line:before{content:"\ec48"}.ri-door-lock-fill:before{content:"\ec49"}.ri-door-lock-line:before{content:"\ec4a"}.ri-door-open-fill:before{content:"\ec4b"}.ri-door-open-line:before{content:"\ec4c"}.ri-dossier-fill:before{content:"\ec4d"}.ri-dossier-line:before{content:"\ec4e"}.ri-douban-fill:before{content:"\ec4f"}.ri-douban-line:before{content:"\ec50"}.ri-double-quotes-l:before{content:"\ec51"}.ri-double-quotes-r:before{content:"\ec52"}.ri-download-2-fill:before{content:"\ec53"}.ri-download-2-line:before{content:"\ec54"}.ri-download-cloud-2-fill:before{content:"\ec55"}.ri-download-cloud-2-line:before{content:"\ec56"}.ri-download-cloud-fill:before{content:"\ec57"}.ri-download-cloud-line:before{content:"\ec58"}.ri-download-fill:before{content:"\ec59"}.ri-download-line:before{content:"\ec5a"}.ri-draft-fill:before{content:"\ec5b"}.ri-draft-line:before{content:"\ec5c"}.ri-drag-drop-fill:before{content:"\ec5d"}.ri-drag-drop-line:before{content:"\ec5e"}.ri-drag-move-2-fill:before{content:"\ec5f"}.ri-drag-move-2-line:before{content:"\ec60"}.ri-drag-move-fill:before{content:"\ec61"}.ri-drag-move-line:before{content:"\ec62"}.ri-dribbble-fill:before{content:"\ec63"}.ri-dribbble-line:before{content:"\ec64"}.ri-drive-fill:before{content:"\ec65"}.ri-drive-line:before{content:"\ec66"}.ri-drizzle-fill:before{content:"\ec67"}.ri-drizzle-line:before{content:"\ec68"}.ri-drop-fill:before{content:"\ec69"}.ri-drop-line:before{content:"\ec6a"}.ri-dropbox-fill:before{content:"\ec6b"}.ri-dropbox-line:before{content:"\ec6c"}.ri-dual-sim-1-fill:before{content:"\ec6d"}.ri-dual-sim-1-line:before{content:"\ec6e"}.ri-dual-sim-2-fill:before{content:"\ec6f"}.ri-dual-sim-2-line:before{content:"\ec70"}.ri-dv-fill:before{content:"\ec71"}.ri-dv-line:before{content:"\ec72"}.ri-dvd-fill:before{content:"\ec73"}.ri-dvd-line:before{content:"\ec74"}.ri-e-bike-2-fill:before{content:"\ec75"}.ri-e-bike-2-line:before{content:"\ec76"}.ri-e-bike-fill:before{content:"\ec77"}.ri-e-bike-line:before{content:"\ec78"}.ri-earth-fill:before{content:"\ec79"}.ri-earth-line:before{content:"\ec7a"}.ri-earthquake-fill:before{content:"\ec7b"}.ri-earthquake-line:before{content:"\ec7c"}.ri-edge-fill:before{content:"\ec7d"}.ri-edge-line:before{content:"\ec7e"}.ri-edit-2-fill:before{content:"\ec7f"}.ri-edit-2-line:before{content:"\ec80"}.ri-edit-box-fill:before{content:"\ec81"}.ri-edit-box-line:before{content:"\ec82"}.ri-edit-circle-fill:before{content:"\ec83"}.ri-edit-circle-line:before{content:"\ec84"}.ri-edit-fill:before{content:"\ec85"}.ri-edit-line:before{content:"\ec86"}.ri-eject-fill:before{content:"\ec87"}.ri-eject-line:before{content:"\ec88"}.ri-emotion-2-fill:before{content:"\ec89"}.ri-emotion-2-line:before{content:"\ec8a"}.ri-emotion-fill:before{content:"\ec8b"}.ri-emotion-happy-fill:before{content:"\ec8c"}.ri-emotion-happy-line:before{content:"\ec8d"}.ri-emotion-laugh-fill:before{content:"\ec8e"}.ri-emotion-laugh-line:before{content:"\ec8f"}.ri-emotion-line:before{content:"\ec90"}.ri-emotion-normal-fill:before{content:"\ec91"}.ri-emotion-normal-line:before{content:"\ec92"}.ri-emotion-sad-fill:before{content:"\ec93"}.ri-emotion-sad-line:before{content:"\ec94"}.ri-emotion-unhappy-fill:before{content:"\ec95"}.ri-emotion-unhappy-line:before{content:"\ec96"}.ri-empathize-fill:before{content:"\ec97"}.ri-empathize-line:before{content:"\ec98"}.ri-emphasis-cn:before{content:"\ec99"}.ri-emphasis:before{content:"\ec9a"}.ri-english-input:before{content:"\ec9b"}.ri-equalizer-fill:before{content:"\ec9c"}.ri-equalizer-line:before{content:"\ec9d"}.ri-eraser-fill:before{content:"\ec9e"}.ri-eraser-line:before{content:"\ec9f"}.ri-error-warning-fill:before{content:"\eca0"}.ri-error-warning-line:before{content:"\eca1"}.ri-evernote-fill:before{content:"\eca2"}.ri-evernote-line:before{content:"\eca3"}.ri-exchange-box-fill:before{content:"\eca4"}.ri-exchange-box-line:before{content:"\eca5"}.ri-exchange-cny-fill:before{content:"\eca6"}.ri-exchange-cny-line:before{content:"\eca7"}.ri-exchange-dollar-fill:before{content:"\eca8"}.ri-exchange-dollar-line:before{content:"\eca9"}.ri-exchange-fill:before{content:"\ecaa"}.ri-exchange-funds-fill:before{content:"\ecab"}.ri-exchange-funds-line:before{content:"\ecac"}.ri-exchange-line:before{content:"\ecad"}.ri-external-link-fill:before{content:"\ecae"}.ri-external-link-line:before{content:"\ecaf"}.ri-eye-2-fill:before{content:"\ecb0"}.ri-eye-2-line:before{content:"\ecb1"}.ri-eye-close-fill:before{content:"\ecb2"}.ri-eye-close-line:before{content:"\ecb3"}.ri-eye-fill:before{content:"\ecb4"}.ri-eye-line:before{content:"\ecb5"}.ri-eye-off-fill:before{content:"\ecb6"}.ri-eye-off-line:before{content:"\ecb7"}.ri-facebook-box-fill:before{content:"\ecb8"}.ri-facebook-box-line:before{content:"\ecb9"}.ri-facebook-circle-fill:before{content:"\ecba"}.ri-facebook-circle-line:before{content:"\ecbb"}.ri-facebook-fill:before{content:"\ecbc"}.ri-facebook-line:before{content:"\ecbd"}.ri-fahrenheit-fill:before{content:"\ecbe"}.ri-fahrenheit-line:before{content:"\ecbf"}.ri-feedback-fill:before{content:"\ecc0"}.ri-feedback-line:before{content:"\ecc1"}.ri-file-2-fill:before{content:"\ecc2"}.ri-file-2-line:before{content:"\ecc3"}.ri-file-3-fill:before{content:"\ecc4"}.ri-file-3-line:before{content:"\ecc5"}.ri-file-4-fill:before{content:"\ecc6"}.ri-file-4-line:before{content:"\ecc7"}.ri-file-add-fill:before{content:"\ecc8"}.ri-file-add-line:before{content:"\ecc9"}.ri-file-chart-2-fill:before{content:"\ecca"}.ri-file-chart-2-line:before{content:"\eccb"}.ri-file-chart-fill:before{content:"\eccc"}.ri-file-chart-line:before{content:"\eccd"}.ri-file-cloud-fill:before{content:"\ecce"}.ri-file-cloud-line:before{content:"\eccf"}.ri-file-code-fill:before{content:"\ecd0"}.ri-file-code-line:before{content:"\ecd1"}.ri-file-copy-2-fill:before{content:"\ecd2"}.ri-file-copy-2-line:before{content:"\ecd3"}.ri-file-copy-fill:before{content:"\ecd4"}.ri-file-copy-line:before{content:"\ecd5"}.ri-file-damage-fill:before{content:"\ecd6"}.ri-file-damage-line:before{content:"\ecd7"}.ri-file-download-fill:before{content:"\ecd8"}.ri-file-download-line:before{content:"\ecd9"}.ri-file-edit-fill:before{content:"\ecda"}.ri-file-edit-line:before{content:"\ecdb"}.ri-file-excel-2-fill:before{content:"\ecdc"}.ri-file-excel-2-line:before{content:"\ecdd"}.ri-file-excel-fill:before{content:"\ecde"}.ri-file-excel-line:before{content:"\ecdf"}.ri-file-fill:before{content:"\ece0"}.ri-file-forbid-fill:before{content:"\ece1"}.ri-file-forbid-line:before{content:"\ece2"}.ri-file-gif-fill:before{content:"\ece3"}.ri-file-gif-line:before{content:"\ece4"}.ri-file-history-fill:before{content:"\ece5"}.ri-file-history-line:before{content:"\ece6"}.ri-file-hwp-fill:before{content:"\ece7"}.ri-file-hwp-line:before{content:"\ece8"}.ri-file-info-fill:before{content:"\ece9"}.ri-file-info-line:before{content:"\ecea"}.ri-file-line:before{content:"\eceb"}.ri-file-list-2-fill:before{content:"\ecec"}.ri-file-list-2-line:before{content:"\eced"}.ri-file-list-3-fill:before{content:"\ecee"}.ri-file-list-3-line:before{content:"\ecef"}.ri-file-list-fill:before{content:"\ecf0"}.ri-file-list-line:before{content:"\ecf1"}.ri-file-lock-fill:before{content:"\ecf2"}.ri-file-lock-line:before{content:"\ecf3"}.ri-file-mark-fill:before{content:"\ecf4"}.ri-file-mark-line:before{content:"\ecf5"}.ri-file-music-fill:before{content:"\ecf6"}.ri-file-music-line:before{content:"\ecf7"}.ri-file-paper-2-fill:before{content:"\ecf8"}.ri-file-paper-2-line:before{content:"\ecf9"}.ri-file-paper-fill:before{content:"\ecfa"}.ri-file-paper-line:before{content:"\ecfb"}.ri-file-pdf-fill:before{content:"\ecfc"}.ri-file-pdf-line:before{content:"\ecfd"}.ri-file-ppt-2-fill:before{content:"\ecfe"}.ri-file-ppt-2-line:before{content:"\ecff"}.ri-file-ppt-fill:before{content:"\ed00"}.ri-file-ppt-line:before{content:"\ed01"}.ri-file-reduce-fill:before{content:"\ed02"}.ri-file-reduce-line:before{content:"\ed03"}.ri-file-search-fill:before{content:"\ed04"}.ri-file-search-line:before{content:"\ed05"}.ri-file-settings-fill:before{content:"\ed06"}.ri-file-settings-line:before{content:"\ed07"}.ri-file-shield-2-fill:before{content:"\ed08"}.ri-file-shield-2-line:before{content:"\ed09"}.ri-file-shield-fill:before{content:"\ed0a"}.ri-file-shield-line:before{content:"\ed0b"}.ri-file-shred-fill:before{content:"\ed0c"}.ri-file-shred-line:before{content:"\ed0d"}.ri-file-text-fill:before{content:"\ed0e"}.ri-file-text-line:before{content:"\ed0f"}.ri-file-transfer-fill:before{content:"\ed10"}.ri-file-transfer-line:before{content:"\ed11"}.ri-file-unknow-fill:before{content:"\ed12"}.ri-file-unknow-line:before{content:"\ed13"}.ri-file-upload-fill:before{content:"\ed14"}.ri-file-upload-line:before{content:"\ed15"}.ri-file-user-fill:before{content:"\ed16"}.ri-file-user-line:before{content:"\ed17"}.ri-file-warning-fill:before{content:"\ed18"}.ri-file-warning-line:before{content:"\ed19"}.ri-file-word-2-fill:before{content:"\ed1a"}.ri-file-word-2-line:before{content:"\ed1b"}.ri-file-word-fill:before{content:"\ed1c"}.ri-file-word-line:before{content:"\ed1d"}.ri-file-zip-fill:before{content:"\ed1e"}.ri-file-zip-line:before{content:"\ed1f"}.ri-film-fill:before{content:"\ed20"}.ri-film-line:before{content:"\ed21"}.ri-filter-2-fill:before{content:"\ed22"}.ri-filter-2-line:before{content:"\ed23"}.ri-filter-3-fill:before{content:"\ed24"}.ri-filter-3-line:before{content:"\ed25"}.ri-filter-fill:before{content:"\ed26"}.ri-filter-line:before{content:"\ed27"}.ri-filter-off-fill:before{content:"\ed28"}.ri-filter-off-line:before{content:"\ed29"}.ri-find-replace-fill:before{content:"\ed2a"}.ri-find-replace-line:before{content:"\ed2b"}.ri-finder-fill:before{content:"\ed2c"}.ri-finder-line:before{content:"\ed2d"}.ri-fingerprint-2-fill:before{content:"\ed2e"}.ri-fingerprint-2-line:before{content:"\ed2f"}.ri-fingerprint-fill:before{content:"\ed30"}.ri-fingerprint-line:before{content:"\ed31"}.ri-fire-fill:before{content:"\ed32"}.ri-fire-line:before{content:"\ed33"}.ri-firefox-fill:before{content:"\ed34"}.ri-firefox-line:before{content:"\ed35"}.ri-first-aid-kit-fill:before{content:"\ed36"}.ri-first-aid-kit-line:before{content:"\ed37"}.ri-flag-2-fill:before{content:"\ed38"}.ri-flag-2-line:before{content:"\ed39"}.ri-flag-fill:before{content:"\ed3a"}.ri-flag-line:before{content:"\ed3b"}.ri-flashlight-fill:before{content:"\ed3c"}.ri-flashlight-line:before{content:"\ed3d"}.ri-flask-fill:before{content:"\ed3e"}.ri-flask-line:before{content:"\ed3f"}.ri-flight-land-fill:before{content:"\ed40"}.ri-flight-land-line:before{content:"\ed41"}.ri-flight-takeoff-fill:before{content:"\ed42"}.ri-flight-takeoff-line:before{content:"\ed43"}.ri-flood-fill:before{content:"\ed44"}.ri-flood-line:before{content:"\ed45"}.ri-flow-chart:before{content:"\ed46"}.ri-flutter-fill:before{content:"\ed47"}.ri-flutter-line:before{content:"\ed48"}.ri-focus-2-fill:before{content:"\ed49"}.ri-focus-2-line:before{content:"\ed4a"}.ri-focus-3-fill:before{content:"\ed4b"}.ri-focus-3-line:before{content:"\ed4c"}.ri-focus-fill:before{content:"\ed4d"}.ri-focus-line:before{content:"\ed4e"}.ri-foggy-fill:before{content:"\ed4f"}.ri-foggy-line:before{content:"\ed50"}.ri-folder-2-fill:before{content:"\ed51"}.ri-folder-2-line:before{content:"\ed52"}.ri-folder-3-fill:before{content:"\ed53"}.ri-folder-3-line:before{content:"\ed54"}.ri-folder-4-fill:before{content:"\ed55"}.ri-folder-4-line:before{content:"\ed56"}.ri-folder-5-fill:before{content:"\ed57"}.ri-folder-5-line:before{content:"\ed58"}.ri-folder-add-fill:before{content:"\ed59"}.ri-folder-add-line:before{content:"\ed5a"}.ri-folder-chart-2-fill:before{content:"\ed5b"}.ri-folder-chart-2-line:before{content:"\ed5c"}.ri-folder-chart-fill:before{content:"\ed5d"}.ri-folder-chart-line:before{content:"\ed5e"}.ri-folder-download-fill:before{content:"\ed5f"}.ri-folder-download-line:before{content:"\ed60"}.ri-folder-fill:before{content:"\ed61"}.ri-folder-forbid-fill:before{content:"\ed62"}.ri-folder-forbid-line:before{content:"\ed63"}.ri-folder-history-fill:before{content:"\ed64"}.ri-folder-history-line:before{content:"\ed65"}.ri-folder-info-fill:before{content:"\ed66"}.ri-folder-info-line:before{content:"\ed67"}.ri-folder-keyhole-fill:before{content:"\ed68"}.ri-folder-keyhole-line:before{content:"\ed69"}.ri-folder-line:before{content:"\ed6a"}.ri-folder-lock-fill:before{content:"\ed6b"}.ri-folder-lock-line:before{content:"\ed6c"}.ri-folder-music-fill:before{content:"\ed6d"}.ri-folder-music-line:before{content:"\ed6e"}.ri-folder-open-fill:before{content:"\ed6f"}.ri-folder-open-line:before{content:"\ed70"}.ri-folder-received-fill:before{content:"\ed71"}.ri-folder-received-line:before{content:"\ed72"}.ri-folder-reduce-fill:before{content:"\ed73"}.ri-folder-reduce-line:before{content:"\ed74"}.ri-folder-settings-fill:before{content:"\ed75"}.ri-folder-settings-line:before{content:"\ed76"}.ri-folder-shared-fill:before{content:"\ed77"}.ri-folder-shared-line:before{content:"\ed78"}.ri-folder-shield-2-fill:before{content:"\ed79"}.ri-folder-shield-2-line:before{content:"\ed7a"}.ri-folder-shield-fill:before{content:"\ed7b"}.ri-folder-shield-line:before{content:"\ed7c"}.ri-folder-transfer-fill:before{content:"\ed7d"}.ri-folder-transfer-line:before{content:"\ed7e"}.ri-folder-unknow-fill:before{content:"\ed7f"}.ri-folder-unknow-line:before{content:"\ed80"}.ri-folder-upload-fill:before{content:"\ed81"}.ri-folder-upload-line:before{content:"\ed82"}.ri-folder-user-fill:before{content:"\ed83"}.ri-folder-user-line:before{content:"\ed84"}.ri-folder-warning-fill:before{content:"\ed85"}.ri-folder-warning-line:before{content:"\ed86"}.ri-folder-zip-fill:before{content:"\ed87"}.ri-folder-zip-line:before{content:"\ed88"}.ri-folders-fill:before{content:"\ed89"}.ri-folders-line:before{content:"\ed8a"}.ri-font-color:before{content:"\ed8b"}.ri-font-size-2:before{content:"\ed8c"}.ri-font-size:before{content:"\ed8d"}.ri-football-fill:before{content:"\ed8e"}.ri-football-line:before{content:"\ed8f"}.ri-footprint-fill:before{content:"\ed90"}.ri-footprint-line:before{content:"\ed91"}.ri-forbid-2-fill:before{content:"\ed92"}.ri-forbid-2-line:before{content:"\ed93"}.ri-forbid-fill:before{content:"\ed94"}.ri-forbid-line:before{content:"\ed95"}.ri-format-clear:before{content:"\ed96"}.ri-fridge-fill:before{content:"\ed97"}.ri-fridge-line:before{content:"\ed98"}.ri-fullscreen-exit-fill:before{content:"\ed99"}.ri-fullscreen-exit-line:before{content:"\ed9a"}.ri-fullscreen-fill:before{content:"\ed9b"}.ri-fullscreen-line:before{content:"\ed9c"}.ri-function-fill:before{content:"\ed9d"}.ri-function-line:before{content:"\ed9e"}.ri-functions:before{content:"\ed9f"}.ri-funds-box-fill:before{content:"\eda0"}.ri-funds-box-line:before{content:"\eda1"}.ri-funds-fill:before{content:"\eda2"}.ri-funds-line:before{content:"\eda3"}.ri-gallery-fill:before{content:"\eda4"}.ri-gallery-line:before{content:"\eda5"}.ri-gallery-upload-fill:before{content:"\eda6"}.ri-gallery-upload-line:before{content:"\eda7"}.ri-game-fill:before{content:"\eda8"}.ri-game-line:before{content:"\eda9"}.ri-gamepad-fill:before{content:"\edaa"}.ri-gamepad-line:before{content:"\edab"}.ri-gas-station-fill:before{content:"\edac"}.ri-gas-station-line:before{content:"\edad"}.ri-gatsby-fill:before{content:"\edae"}.ri-gatsby-line:before{content:"\edaf"}.ri-genderless-fill:before{content:"\edb0"}.ri-genderless-line:before{content:"\edb1"}.ri-ghost-2-fill:before{content:"\edb2"}.ri-ghost-2-line:before{content:"\edb3"}.ri-ghost-fill:before{content:"\edb4"}.ri-ghost-line:before{content:"\edb5"}.ri-ghost-smile-fill:before{content:"\edb6"}.ri-ghost-smile-line:before{content:"\edb7"}.ri-gift-2-fill:before{content:"\edb8"}.ri-gift-2-line:before{content:"\edb9"}.ri-gift-fill:before{content:"\edba"}.ri-gift-line:before{content:"\edbb"}.ri-git-branch-fill:before{content:"\edbc"}.ri-git-branch-line:before{content:"\edbd"}.ri-git-commit-fill:before{content:"\edbe"}.ri-git-commit-line:before{content:"\edbf"}.ri-git-merge-fill:before{content:"\edc0"}.ri-git-merge-line:before{content:"\edc1"}.ri-git-pull-request-fill:before{content:"\edc2"}.ri-git-pull-request-line:before{content:"\edc3"}.ri-git-repository-commits-fill:before{content:"\edc4"}.ri-git-repository-commits-line:before{content:"\edc5"}.ri-git-repository-fill:before{content:"\edc6"}.ri-git-repository-line:before{content:"\edc7"}.ri-git-repository-private-fill:before{content:"\edc8"}.ri-git-repository-private-line:before{content:"\edc9"}.ri-github-fill:before{content:"\edca"}.ri-github-line:before{content:"\edcb"}.ri-gitlab-fill:before{content:"\edcc"}.ri-gitlab-line:before{content:"\edcd"}.ri-global-fill:before{content:"\edce"}.ri-global-line:before{content:"\edcf"}.ri-globe-fill:before{content:"\edd0"}.ri-globe-line:before{content:"\edd1"}.ri-goblet-fill:before{content:"\edd2"}.ri-goblet-line:before{content:"\edd3"}.ri-google-fill:before{content:"\edd4"}.ri-google-line:before{content:"\edd5"}.ri-google-play-fill:before{content:"\edd6"}.ri-google-play-line:before{content:"\edd7"}.ri-government-fill:before{content:"\edd8"}.ri-government-line:before{content:"\edd9"}.ri-gps-fill:before{content:"\edda"}.ri-gps-line:before{content:"\eddb"}.ri-gradienter-fill:before{content:"\eddc"}.ri-gradienter-line:before{content:"\eddd"}.ri-grid-fill:before{content:"\edde"}.ri-grid-line:before{content:"\eddf"}.ri-group-2-fill:before{content:"\ede0"}.ri-group-2-line:before{content:"\ede1"}.ri-group-fill:before{content:"\ede2"}.ri-group-line:before{content:"\ede3"}.ri-guide-fill:before{content:"\ede4"}.ri-guide-line:before{content:"\ede5"}.ri-h-1:before{content:"\ede6"}.ri-h-2:before{content:"\ede7"}.ri-h-3:before{content:"\ede8"}.ri-h-4:before{content:"\ede9"}.ri-h-5:before{content:"\edea"}.ri-h-6:before{content:"\edeb"}.ri-hail-fill:before{content:"\edec"}.ri-hail-line:before{content:"\eded"}.ri-hammer-fill:before{content:"\edee"}.ri-hammer-line:before{content:"\edef"}.ri-hand-coin-fill:before{content:"\edf0"}.ri-hand-coin-line:before{content:"\edf1"}.ri-hand-heart-fill:before{content:"\edf2"}.ri-hand-heart-line:before{content:"\edf3"}.ri-hand-sanitizer-fill:before{content:"\edf4"}.ri-hand-sanitizer-line:before{content:"\edf5"}.ri-handbag-fill:before{content:"\edf6"}.ri-handbag-line:before{content:"\edf7"}.ri-hard-drive-2-fill:before{content:"\edf8"}.ri-hard-drive-2-line:before{content:"\edf9"}.ri-hard-drive-fill:before{content:"\edfa"}.ri-hard-drive-line:before{content:"\edfb"}.ri-hashtag:before{content:"\edfc"}.ri-haze-2-fill:before{content:"\edfd"}.ri-haze-2-line:before{content:"\edfe"}.ri-haze-fill:before{content:"\edff"}.ri-haze-line:before{content:"\ee00"}.ri-hd-fill:before{content:"\ee01"}.ri-hd-line:before{content:"\ee02"}.ri-heading:before{content:"\ee03"}.ri-headphone-fill:before{content:"\ee04"}.ri-headphone-line:before{content:"\ee05"}.ri-health-book-fill:before{content:"\ee06"}.ri-health-book-line:before{content:"\ee07"}.ri-heart-2-fill:before{content:"\ee08"}.ri-heart-2-line:before{content:"\ee09"}.ri-heart-3-fill:before{content:"\ee0a"}.ri-heart-3-line:before{content:"\ee0b"}.ri-heart-add-fill:before{content:"\ee0c"}.ri-heart-add-line:before{content:"\ee0d"}.ri-heart-fill:before{content:"\ee0e"}.ri-heart-line:before{content:"\ee0f"}.ri-heart-pulse-fill:before{content:"\ee10"}.ri-heart-pulse-line:before{content:"\ee11"}.ri-hearts-fill:before{content:"\ee12"}.ri-hearts-line:before{content:"\ee13"}.ri-heavy-showers-fill:before{content:"\ee14"}.ri-heavy-showers-line:before{content:"\ee15"}.ri-history-fill:before{content:"\ee16"}.ri-history-line:before{content:"\ee17"}.ri-home-2-fill:before{content:"\ee18"}.ri-home-2-line:before{content:"\ee19"}.ri-home-3-fill:before{content:"\ee1a"}.ri-home-3-line:before{content:"\ee1b"}.ri-home-4-fill:before{content:"\ee1c"}.ri-home-4-line:before{content:"\ee1d"}.ri-home-5-fill:before{content:"\ee1e"}.ri-home-5-line:before{content:"\ee1f"}.ri-home-6-fill:before{content:"\ee20"}.ri-home-6-line:before{content:"\ee21"}.ri-home-7-fill:before{content:"\ee22"}.ri-home-7-line:before{content:"\ee23"}.ri-home-8-fill:before{content:"\ee24"}.ri-home-8-line:before{content:"\ee25"}.ri-home-fill:before{content:"\ee26"}.ri-home-gear-fill:before{content:"\ee27"}.ri-home-gear-line:before{content:"\ee28"}.ri-home-heart-fill:before{content:"\ee29"}.ri-home-heart-line:before{content:"\ee2a"}.ri-home-line:before{content:"\ee2b"}.ri-home-smile-2-fill:before{content:"\ee2c"}.ri-home-smile-2-line:before{content:"\ee2d"}.ri-home-smile-fill:before{content:"\ee2e"}.ri-home-smile-line:before{content:"\ee2f"}.ri-home-wifi-fill:before{content:"\ee30"}.ri-home-wifi-line:before{content:"\ee31"}.ri-honor-of-kings-fill:before{content:"\ee32"}.ri-honor-of-kings-line:before{content:"\ee33"}.ri-honour-fill:before{content:"\ee34"}.ri-honour-line:before{content:"\ee35"}.ri-hospital-fill:before{content:"\ee36"}.ri-hospital-line:before{content:"\ee37"}.ri-hotel-bed-fill:before{content:"\ee38"}.ri-hotel-bed-line:before{content:"\ee39"}.ri-hotel-fill:before{content:"\ee3a"}.ri-hotel-line:before{content:"\ee3b"}.ri-hotspot-fill:before{content:"\ee3c"}.ri-hotspot-line:before{content:"\ee3d"}.ri-hq-fill:before{content:"\ee3e"}.ri-hq-line:before{content:"\ee3f"}.ri-html5-fill:before{content:"\ee40"}.ri-html5-line:before{content:"\ee41"}.ri-ie-fill:before{content:"\ee42"}.ri-ie-line:before{content:"\ee43"}.ri-image-2-fill:before{content:"\ee44"}.ri-image-2-line:before{content:"\ee45"}.ri-image-add-fill:before{content:"\ee46"}.ri-image-add-line:before{content:"\ee47"}.ri-image-edit-fill:before{content:"\ee48"}.ri-image-edit-line:before{content:"\ee49"}.ri-image-fill:before{content:"\ee4a"}.ri-image-line:before{content:"\ee4b"}.ri-inbox-archive-fill:before{content:"\ee4c"}.ri-inbox-archive-line:before{content:"\ee4d"}.ri-inbox-fill:before{content:"\ee4e"}.ri-inbox-line:before{content:"\ee4f"}.ri-inbox-unarchive-fill:before{content:"\ee50"}.ri-inbox-unarchive-line:before{content:"\ee51"}.ri-increase-decrease-fill:before{content:"\ee52"}.ri-increase-decrease-line:before{content:"\ee53"}.ri-indent-decrease:before{content:"\ee54"}.ri-indent-increase:before{content:"\ee55"}.ri-indeterminate-circle-fill:before{content:"\ee56"}.ri-indeterminate-circle-line:before{content:"\ee57"}.ri-information-fill:before{content:"\ee58"}.ri-information-line:before{content:"\ee59"}.ri-infrared-thermometer-fill:before{content:"\ee5a"}.ri-infrared-thermometer-line:before{content:"\ee5b"}.ri-ink-bottle-fill:before{content:"\ee5c"}.ri-ink-bottle-line:before{content:"\ee5d"}.ri-input-cursor-move:before{content:"\ee5e"}.ri-input-method-fill:before{content:"\ee5f"}.ri-input-method-line:before{content:"\ee60"}.ri-insert-column-left:before{content:"\ee61"}.ri-insert-column-right:before{content:"\ee62"}.ri-insert-row-bottom:before{content:"\ee63"}.ri-insert-row-top:before{content:"\ee64"}.ri-instagram-fill:before{content:"\ee65"}.ri-instagram-line:before{content:"\ee66"}.ri-install-fill:before{content:"\ee67"}.ri-install-line:before{content:"\ee68"}.ri-invision-fill:before{content:"\ee69"}.ri-invision-line:before{content:"\ee6a"}.ri-italic:before{content:"\ee6b"}.ri-kakao-talk-fill:before{content:"\ee6c"}.ri-kakao-talk-line:before{content:"\ee6d"}.ri-key-2-fill:before{content:"\ee6e"}.ri-key-2-line:before{content:"\ee6f"}.ri-key-fill:before{content:"\ee70"}.ri-key-line:before{content:"\ee71"}.ri-keyboard-box-fill:before{content:"\ee72"}.ri-keyboard-box-line:before{content:"\ee73"}.ri-keyboard-fill:before{content:"\ee74"}.ri-keyboard-line:before{content:"\ee75"}.ri-keynote-fill:before{content:"\ee76"}.ri-keynote-line:before{content:"\ee77"}.ri-knife-blood-fill:before{content:"\ee78"}.ri-knife-blood-line:before{content:"\ee79"}.ri-knife-fill:before{content:"\ee7a"}.ri-knife-line:before{content:"\ee7b"}.ri-landscape-fill:before{content:"\ee7c"}.ri-landscape-line:before{content:"\ee7d"}.ri-layout-2-fill:before{content:"\ee7e"}.ri-layout-2-line:before{content:"\ee7f"}.ri-layout-3-fill:before{content:"\ee80"}.ri-layout-3-line:before{content:"\ee81"}.ri-layout-4-fill:before{content:"\ee82"}.ri-layout-4-line:before{content:"\ee83"}.ri-layout-5-fill:before{content:"\ee84"}.ri-layout-5-line:before{content:"\ee85"}.ri-layout-6-fill:before{content:"\ee86"}.ri-layout-6-line:before{content:"\ee87"}.ri-layout-bottom-2-fill:before{content:"\ee88"}.ri-layout-bottom-2-line:before{content:"\ee89"}.ri-layout-bottom-fill:before{content:"\ee8a"}.ri-layout-bottom-line:before{content:"\ee8b"}.ri-layout-column-fill:before{content:"\ee8c"}.ri-layout-column-line:before{content:"\ee8d"}.ri-layout-fill:before{content:"\ee8e"}.ri-layout-grid-fill:before{content:"\ee8f"}.ri-layout-grid-line:before{content:"\ee90"}.ri-layout-left-2-fill:before{content:"\ee91"}.ri-layout-left-2-line:before{content:"\ee92"}.ri-layout-left-fill:before{content:"\ee93"}.ri-layout-left-line:before{content:"\ee94"}.ri-layout-line:before{content:"\ee95"}.ri-layout-masonry-fill:before{content:"\ee96"}.ri-layout-masonry-line:before{content:"\ee97"}.ri-layout-right-2-fill:before{content:"\ee98"}.ri-layout-right-2-line:before{content:"\ee99"}.ri-layout-right-fill:before{content:"\ee9a"}.ri-layout-right-line:before{content:"\ee9b"}.ri-layout-row-fill:before{content:"\ee9c"}.ri-layout-row-line:before{content:"\ee9d"}.ri-layout-top-2-fill:before{content:"\ee9e"}.ri-layout-top-2-line:before{content:"\ee9f"}.ri-layout-top-fill:before{content:"\eea0"}.ri-layout-top-line:before{content:"\eea1"}.ri-leaf-fill:before{content:"\eea2"}.ri-leaf-line:before{content:"\eea3"}.ri-lifebuoy-fill:before{content:"\eea4"}.ri-lifebuoy-line:before{content:"\eea5"}.ri-lightbulb-fill:before{content:"\eea6"}.ri-lightbulb-flash-fill:before{content:"\eea7"}.ri-lightbulb-flash-line:before{content:"\eea8"}.ri-lightbulb-line:before{content:"\eea9"}.ri-line-chart-fill:before{content:"\eeaa"}.ri-line-chart-line:before{content:"\eeab"}.ri-line-fill:before{content:"\eeac"}.ri-line-height:before{content:"\eead"}.ri-line-line:before{content:"\eeae"}.ri-link-m:before{content:"\eeaf"}.ri-link-unlink-m:before{content:"\eeb0"}.ri-link-unlink:before{content:"\eeb1"}.ri-link:before{content:"\eeb2"}.ri-linkedin-box-fill:before{content:"\eeb3"}.ri-linkedin-box-line:before{content:"\eeb4"}.ri-linkedin-fill:before{content:"\eeb5"}.ri-linkedin-line:before{content:"\eeb6"}.ri-links-fill:before{content:"\eeb7"}.ri-links-line:before{content:"\eeb8"}.ri-list-check-2:before{content:"\eeb9"}.ri-list-check:before{content:"\eeba"}.ri-list-ordered:before{content:"\eebb"}.ri-list-settings-fill:before{content:"\eebc"}.ri-list-settings-line:before{content:"\eebd"}.ri-list-unordered:before{content:"\eebe"}.ri-live-fill:before{content:"\eebf"}.ri-live-line:before{content:"\eec0"}.ri-loader-2-fill:before{content:"\eec1"}.ri-loader-2-line:before{content:"\eec2"}.ri-loader-3-fill:before{content:"\eec3"}.ri-loader-3-line:before{content:"\eec4"}.ri-loader-4-fill:before{content:"\eec5"}.ri-loader-4-line:before{content:"\eec6"}.ri-loader-5-fill:before{content:"\eec7"}.ri-loader-5-line:before{content:"\eec8"}.ri-loader-fill:before{content:"\eec9"}.ri-loader-line:before{content:"\eeca"}.ri-lock-2-fill:before{content:"\eecb"}.ri-lock-2-line:before{content:"\eecc"}.ri-lock-fill:before{content:"\eecd"}.ri-lock-line:before{content:"\eece"}.ri-lock-password-fill:before{content:"\eecf"}.ri-lock-password-line:before{content:"\eed0"}.ri-lock-unlock-fill:before{content:"\eed1"}.ri-lock-unlock-line:before{content:"\eed2"}.ri-login-box-fill:before{content:"\eed3"}.ri-login-box-line:before{content:"\eed4"}.ri-login-circle-fill:before{content:"\eed5"}.ri-login-circle-line:before{content:"\eed6"}.ri-logout-box-fill:before{content:"\eed7"}.ri-logout-box-line:before{content:"\eed8"}.ri-logout-box-r-fill:before{content:"\eed9"}.ri-logout-box-r-line:before{content:"\eeda"}.ri-logout-circle-fill:before{content:"\eedb"}.ri-logout-circle-line:before{content:"\eedc"}.ri-logout-circle-r-fill:before{content:"\eedd"}.ri-logout-circle-r-line:before{content:"\eede"}.ri-luggage-cart-fill:before{content:"\eedf"}.ri-luggage-cart-line:before{content:"\eee0"}.ri-luggage-deposit-fill:before{content:"\eee1"}.ri-luggage-deposit-line:before{content:"\eee2"}.ri-lungs-fill:before{content:"\eee3"}.ri-lungs-line:before{content:"\eee4"}.ri-mac-fill:before{content:"\eee5"}.ri-mac-line:before{content:"\eee6"}.ri-macbook-fill:before{content:"\eee7"}.ri-macbook-line:before{content:"\eee8"}.ri-magic-fill:before{content:"\eee9"}.ri-magic-line:before{content:"\eeea"}.ri-mail-add-fill:before{content:"\eeeb"}.ri-mail-add-line:before{content:"\eeec"}.ri-mail-check-fill:before{content:"\eeed"}.ri-mail-check-line:before{content:"\eeee"}.ri-mail-close-fill:before{content:"\eeef"}.ri-mail-close-line:before{content:"\eef0"}.ri-mail-download-fill:before{content:"\eef1"}.ri-mail-download-line:before{content:"\eef2"}.ri-mail-fill:before{content:"\eef3"}.ri-mail-forbid-fill:before{content:"\eef4"}.ri-mail-forbid-line:before{content:"\eef5"}.ri-mail-line:before{content:"\eef6"}.ri-mail-lock-fill:before{content:"\eef7"}.ri-mail-lock-line:before{content:"\eef8"}.ri-mail-open-fill:before{content:"\eef9"}.ri-mail-open-line:before{content:"\eefa"}.ri-mail-send-fill:before{content:"\eefb"}.ri-mail-send-line:before{content:"\eefc"}.ri-mail-settings-fill:before{content:"\eefd"}.ri-mail-settings-line:before{content:"\eefe"}.ri-mail-star-fill:before{content:"\eeff"}.ri-mail-star-line:before{content:"\ef00"}.ri-mail-unread-fill:before{content:"\ef01"}.ri-mail-unread-line:before{content:"\ef02"}.ri-mail-volume-fill:before{content:"\ef03"}.ri-mail-volume-line:before{content:"\ef04"}.ri-map-2-fill:before{content:"\ef05"}.ri-map-2-line:before{content:"\ef06"}.ri-map-fill:before{content:"\ef07"}.ri-map-line:before{content:"\ef08"}.ri-map-pin-2-fill:before{content:"\ef09"}.ri-map-pin-2-line:before{content:"\ef0a"}.ri-map-pin-3-fill:before{content:"\ef0b"}.ri-map-pin-3-line:before{content:"\ef0c"}.ri-map-pin-4-fill:before{content:"\ef0d"}.ri-map-pin-4-line:before{content:"\ef0e"}.ri-map-pin-5-fill:before{content:"\ef0f"}.ri-map-pin-5-line:before{content:"\ef10"}.ri-map-pin-add-fill:before{content:"\ef11"}.ri-map-pin-add-line:before{content:"\ef12"}.ri-map-pin-fill:before{content:"\ef13"}.ri-map-pin-line:before{content:"\ef14"}.ri-map-pin-range-fill:before{content:"\ef15"}.ri-map-pin-range-line:before{content:"\ef16"}.ri-map-pin-time-fill:before{content:"\ef17"}.ri-map-pin-time-line:before{content:"\ef18"}.ri-map-pin-user-fill:before{content:"\ef19"}.ri-map-pin-user-line:before{content:"\ef1a"}.ri-mark-pen-fill:before{content:"\ef1b"}.ri-mark-pen-line:before{content:"\ef1c"}.ri-markdown-fill:before{content:"\ef1d"}.ri-markdown-line:before{content:"\ef1e"}.ri-markup-fill:before{content:"\ef1f"}.ri-markup-line:before{content:"\ef20"}.ri-mastercard-fill:before{content:"\ef21"}.ri-mastercard-line:before{content:"\ef22"}.ri-mastodon-fill:before{content:"\ef23"}.ri-mastodon-line:before{content:"\ef24"}.ri-medal-2-fill:before{content:"\ef25"}.ri-medal-2-line:before{content:"\ef26"}.ri-medal-fill:before{content:"\ef27"}.ri-medal-line:before{content:"\ef28"}.ri-medicine-bottle-fill:before{content:"\ef29"}.ri-medicine-bottle-line:before{content:"\ef2a"}.ri-medium-fill:before{content:"\ef2b"}.ri-medium-line:before{content:"\ef2c"}.ri-men-fill:before{content:"\ef2d"}.ri-men-line:before{content:"\ef2e"}.ri-mental-health-fill:before{content:"\ef2f"}.ri-mental-health-line:before{content:"\ef30"}.ri-menu-2-fill:before{content:"\ef31"}.ri-menu-2-line:before{content:"\ef32"}.ri-menu-3-fill:before{content:"\ef33"}.ri-menu-3-line:before{content:"\ef34"}.ri-menu-4-fill:before{content:"\ef35"}.ri-menu-4-line:before{content:"\ef36"}.ri-menu-5-fill:before{content:"\ef37"}.ri-menu-5-line:before{content:"\ef38"}.ri-menu-add-fill:before{content:"\ef39"}.ri-menu-add-line:before{content:"\ef3a"}.ri-menu-fill:before{content:"\ef3b"}.ri-menu-fold-fill:before{content:"\ef3c"}.ri-menu-fold-line:before{content:"\ef3d"}.ri-menu-line:before{content:"\ef3e"}.ri-menu-unfold-fill:before{content:"\ef3f"}.ri-menu-unfold-line:before{content:"\ef40"}.ri-merge-cells-horizontal:before{content:"\ef41"}.ri-merge-cells-vertical:before{content:"\ef42"}.ri-message-2-fill:before{content:"\ef43"}.ri-message-2-line:before{content:"\ef44"}.ri-message-3-fill:before{content:"\ef45"}.ri-message-3-line:before{content:"\ef46"}.ri-message-fill:before{content:"\ef47"}.ri-message-line:before{content:"\ef48"}.ri-messenger-fill:before{content:"\ef49"}.ri-messenger-line:before{content:"\ef4a"}.ri-meteor-fill:before{content:"\ef4b"}.ri-meteor-line:before{content:"\ef4c"}.ri-mic-2-fill:before{content:"\ef4d"}.ri-mic-2-line:before{content:"\ef4e"}.ri-mic-fill:before{content:"\ef4f"}.ri-mic-line:before{content:"\ef50"}.ri-mic-off-fill:before{content:"\ef51"}.ri-mic-off-line:before{content:"\ef52"}.ri-mickey-fill:before{content:"\ef53"}.ri-mickey-line:before{content:"\ef54"}.ri-microscope-fill:before{content:"\ef55"}.ri-microscope-line:before{content:"\ef56"}.ri-microsoft-fill:before{content:"\ef57"}.ri-microsoft-line:before{content:"\ef58"}.ri-mind-map:before{content:"\ef59"}.ri-mini-program-fill:before{content:"\ef5a"}.ri-mini-program-line:before{content:"\ef5b"}.ri-mist-fill:before{content:"\ef5c"}.ri-mist-line:before{content:"\ef5d"}.ri-money-cny-box-fill:before{content:"\ef5e"}.ri-money-cny-box-line:before{content:"\ef5f"}.ri-money-cny-circle-fill:before{content:"\ef60"}.ri-money-cny-circle-line:before{content:"\ef61"}.ri-money-dollar-box-fill:before{content:"\ef62"}.ri-money-dollar-box-line:before{content:"\ef63"}.ri-money-dollar-circle-fill:before{content:"\ef64"}.ri-money-dollar-circle-line:before{content:"\ef65"}.ri-money-euro-box-fill:before{content:"\ef66"}.ri-money-euro-box-line:before{content:"\ef67"}.ri-money-euro-circle-fill:before{content:"\ef68"}.ri-money-euro-circle-line:before{content:"\ef69"}.ri-money-pound-box-fill:before{content:"\ef6a"}.ri-money-pound-box-line:before{content:"\ef6b"}.ri-money-pound-circle-fill:before{content:"\ef6c"}.ri-money-pound-circle-line:before{content:"\ef6d"}.ri-moon-clear-fill:before{content:"\ef6e"}.ri-moon-clear-line:before{content:"\ef6f"}.ri-moon-cloudy-fill:before{content:"\ef70"}.ri-moon-cloudy-line:before{content:"\ef71"}.ri-moon-fill:before{content:"\ef72"}.ri-moon-foggy-fill:before{content:"\ef73"}.ri-moon-foggy-line:before{content:"\ef74"}.ri-moon-line:before{content:"\ef75"}.ri-more-2-fill:before{content:"\ef76"}.ri-more-2-line:before{content:"\ef77"}.ri-more-fill:before{content:"\ef78"}.ri-more-line:before{content:"\ef79"}.ri-motorbike-fill:before{content:"\ef7a"}.ri-motorbike-line:before{content:"\ef7b"}.ri-mouse-fill:before{content:"\ef7c"}.ri-mouse-line:before{content:"\ef7d"}.ri-movie-2-fill:before{content:"\ef7e"}.ri-movie-2-line:before{content:"\ef7f"}.ri-movie-fill:before{content:"\ef80"}.ri-movie-line:before{content:"\ef81"}.ri-music-2-fill:before{content:"\ef82"}.ri-music-2-line:before{content:"\ef83"}.ri-music-fill:before{content:"\ef84"}.ri-music-line:before{content:"\ef85"}.ri-mv-fill:before{content:"\ef86"}.ri-mv-line:before{content:"\ef87"}.ri-navigation-fill:before{content:"\ef88"}.ri-navigation-line:before{content:"\ef89"}.ri-netease-cloud-music-fill:before{content:"\ef8a"}.ri-netease-cloud-music-line:before{content:"\ef8b"}.ri-netflix-fill:before{content:"\ef8c"}.ri-netflix-line:before{content:"\ef8d"}.ri-newspaper-fill:before{content:"\ef8e"}.ri-newspaper-line:before{content:"\ef8f"}.ri-node-tree:before{content:"\ef90"}.ri-notification-2-fill:before{content:"\ef91"}.ri-notification-2-line:before{content:"\ef92"}.ri-notification-3-fill:before{content:"\ef93"}.ri-notification-3-line:before{content:"\ef94"}.ri-notification-4-fill:before{content:"\ef95"}.ri-notification-4-line:before{content:"\ef96"}.ri-notification-badge-fill:before{content:"\ef97"}.ri-notification-badge-line:before{content:"\ef98"}.ri-notification-fill:before{content:"\ef99"}.ri-notification-line:before{content:"\ef9a"}.ri-notification-off-fill:before{content:"\ef9b"}.ri-notification-off-line:before{content:"\ef9c"}.ri-npmjs-fill:before{content:"\ef9d"}.ri-npmjs-line:before{content:"\ef9e"}.ri-number-0:before{content:"\ef9f"}.ri-number-1:before{content:"\efa0"}.ri-number-2:before{content:"\efa1"}.ri-number-3:before{content:"\efa2"}.ri-number-4:before{content:"\efa3"}.ri-number-5:before{content:"\efa4"}.ri-number-6:before{content:"\efa5"}.ri-number-7:before{content:"\efa6"}.ri-number-8:before{content:"\efa7"}.ri-number-9:before{content:"\efa8"}.ri-numbers-fill:before{content:"\efa9"}.ri-numbers-line:before{content:"\efaa"}.ri-nurse-fill:before{content:"\efab"}.ri-nurse-line:before{content:"\efac"}.ri-oil-fill:before{content:"\efad"}.ri-oil-line:before{content:"\efae"}.ri-omega:before{content:"\efaf"}.ri-open-arm-fill:before{content:"\efb0"}.ri-open-arm-line:before{content:"\efb1"}.ri-open-source-fill:before{content:"\efb2"}.ri-open-source-line:before{content:"\efb3"}.ri-opera-fill:before{content:"\efb4"}.ri-opera-line:before{content:"\efb5"}.ri-order-play-fill:before{content:"\efb6"}.ri-order-play-line:before{content:"\efb7"}.ri-organization-chart:before{content:"\efb8"}.ri-outlet-2-fill:before{content:"\efb9"}.ri-outlet-2-line:before{content:"\efba"}.ri-outlet-fill:before{content:"\efbb"}.ri-outlet-line:before{content:"\efbc"}.ri-page-separator:before{content:"\efbd"}.ri-pages-fill:before{content:"\efbe"}.ri-pages-line:before{content:"\efbf"}.ri-paint-brush-fill:before{content:"\efc0"}.ri-paint-brush-line:before{content:"\efc1"}.ri-paint-fill:before{content:"\efc2"}.ri-paint-line:before{content:"\efc3"}.ri-palette-fill:before{content:"\efc4"}.ri-palette-line:before{content:"\efc5"}.ri-pantone-fill:before{content:"\efc6"}.ri-pantone-line:before{content:"\efc7"}.ri-paragraph:before{content:"\efc8"}.ri-parent-fill:before{content:"\efc9"}.ri-parent-line:before{content:"\efca"}.ri-parentheses-fill:before{content:"\efcb"}.ri-parentheses-line:before{content:"\efcc"}.ri-parking-box-fill:before{content:"\efcd"}.ri-parking-box-line:before{content:"\efce"}.ri-parking-fill:before{content:"\efcf"}.ri-parking-line:before{content:"\efd0"}.ri-passport-fill:before{content:"\efd1"}.ri-passport-line:before{content:"\efd2"}.ri-patreon-fill:before{content:"\efd3"}.ri-patreon-line:before{content:"\efd4"}.ri-pause-circle-fill:before{content:"\efd5"}.ri-pause-circle-line:before{content:"\efd6"}.ri-pause-fill:before{content:"\efd7"}.ri-pause-line:before{content:"\efd8"}.ri-pause-mini-fill:before{content:"\efd9"}.ri-pause-mini-line:before{content:"\efda"}.ri-paypal-fill:before{content:"\efdb"}.ri-paypal-line:before{content:"\efdc"}.ri-pen-nib-fill:before{content:"\efdd"}.ri-pen-nib-line:before{content:"\efde"}.ri-pencil-fill:before{content:"\efdf"}.ri-pencil-line:before{content:"\efe0"}.ri-pencil-ruler-2-fill:before{content:"\efe1"}.ri-pencil-ruler-2-line:before{content:"\efe2"}.ri-pencil-ruler-fill:before{content:"\efe3"}.ri-pencil-ruler-line:before{content:"\efe4"}.ri-percent-fill:before{content:"\efe5"}.ri-percent-line:before{content:"\efe6"}.ri-phone-camera-fill:before{content:"\efe7"}.ri-phone-camera-line:before{content:"\efe8"}.ri-phone-fill:before{content:"\efe9"}.ri-phone-find-fill:before{content:"\efea"}.ri-phone-find-line:before{content:"\efeb"}.ri-phone-line:before{content:"\efec"}.ri-phone-lock-fill:before{content:"\efed"}.ri-phone-lock-line:before{content:"\efee"}.ri-picture-in-picture-2-fill:before{content:"\efef"}.ri-picture-in-picture-2-line:before{content:"\eff0"}.ri-picture-in-picture-exit-fill:before{content:"\eff1"}.ri-picture-in-picture-exit-line:before{content:"\eff2"}.ri-picture-in-picture-fill:before{content:"\eff3"}.ri-picture-in-picture-line:before{content:"\eff4"}.ri-pie-chart-2-fill:before{content:"\eff5"}.ri-pie-chart-2-line:before{content:"\eff6"}.ri-pie-chart-box-fill:before{content:"\eff7"}.ri-pie-chart-box-line:before{content:"\eff8"}.ri-pie-chart-fill:before{content:"\eff9"}.ri-pie-chart-line:before{content:"\effa"}.ri-pin-distance-fill:before{content:"\effb"}.ri-pin-distance-line:before{content:"\effc"}.ri-ping-pong-fill:before{content:"\effd"}.ri-ping-pong-line:before{content:"\effe"}.ri-pinterest-fill:before{content:"\efff"}.ri-pinterest-line:before{content:"\f000"}.ri-pinyin-input:before{content:"\f001"}.ri-pixelfed-fill:before{content:"\f002"}.ri-pixelfed-line:before{content:"\f003"}.ri-plane-fill:before{content:"\f004"}.ri-plane-line:before{content:"\f005"}.ri-plant-fill:before{content:"\f006"}.ri-plant-line:before{content:"\f007"}.ri-play-circle-fill:before{content:"\f008"}.ri-play-circle-line:before{content:"\f009"}.ri-play-fill:before{content:"\f00a"}.ri-play-line:before{content:"\f00b"}.ri-play-list-2-fill:before{content:"\f00c"}.ri-play-list-2-line:before{content:"\f00d"}.ri-play-list-add-fill:before{content:"\f00e"}.ri-play-list-add-line:before{content:"\f00f"}.ri-play-list-fill:before{content:"\f010"}.ri-play-list-line:before{content:"\f011"}.ri-play-mini-fill:before{content:"\f012"}.ri-play-mini-line:before{content:"\f013"}.ri-playstation-fill:before{content:"\f014"}.ri-playstation-line:before{content:"\f015"}.ri-plug-2-fill:before{content:"\f016"}.ri-plug-2-line:before{content:"\f017"}.ri-plug-fill:before{content:"\f018"}.ri-plug-line:before{content:"\f019"}.ri-polaroid-2-fill:before{content:"\f01a"}.ri-polaroid-2-line:before{content:"\f01b"}.ri-polaroid-fill:before{content:"\f01c"}.ri-polaroid-line:before{content:"\f01d"}.ri-police-car-fill:before{content:"\f01e"}.ri-police-car-line:before{content:"\f01f"}.ri-price-tag-2-fill:before{content:"\f020"}.ri-price-tag-2-line:before{content:"\f021"}.ri-price-tag-3-fill:before{content:"\f022"}.ri-price-tag-3-line:before{content:"\f023"}.ri-price-tag-fill:before{content:"\f024"}.ri-price-tag-line:before{content:"\f025"}.ri-printer-cloud-fill:before{content:"\f026"}.ri-printer-cloud-line:before{content:"\f027"}.ri-printer-fill:before{content:"\f028"}.ri-printer-line:before{content:"\f029"}.ri-product-hunt-fill:before{content:"\f02a"}.ri-product-hunt-line:before{content:"\f02b"}.ri-profile-fill:before{content:"\f02c"}.ri-profile-line:before{content:"\f02d"}.ri-projector-2-fill:before{content:"\f02e"}.ri-projector-2-line:before{content:"\f02f"}.ri-projector-fill:before{content:"\f030"}.ri-projector-line:before{content:"\f031"}.ri-psychotherapy-fill:before{content:"\f032"}.ri-psychotherapy-line:before{content:"\f033"}.ri-pulse-fill:before{content:"\f034"}.ri-pulse-line:before{content:"\f035"}.ri-pushpin-2-fill:before{content:"\f036"}.ri-pushpin-2-line:before{content:"\f037"}.ri-pushpin-fill:before{content:"\f038"}.ri-pushpin-line:before{content:"\f039"}.ri-qq-fill:before{content:"\f03a"}.ri-qq-line:before{content:"\f03b"}.ri-qr-code-fill:before{content:"\f03c"}.ri-qr-code-line:before{content:"\f03d"}.ri-qr-scan-2-fill:before{content:"\f03e"}.ri-qr-scan-2-line:before{content:"\f03f"}.ri-qr-scan-fill:before{content:"\f040"}.ri-qr-scan-line:before{content:"\f041"}.ri-question-answer-fill:before{content:"\f042"}.ri-question-answer-line:before{content:"\f043"}.ri-question-fill:before{content:"\f044"}.ri-question-line:before{content:"\f045"}.ri-question-mark:before{content:"\f046"}.ri-questionnaire-fill:before{content:"\f047"}.ri-questionnaire-line:before{content:"\f048"}.ri-quill-pen-fill:before{content:"\f049"}.ri-quill-pen-line:before{content:"\f04a"}.ri-radar-fill:before{content:"\f04b"}.ri-radar-line:before{content:"\f04c"}.ri-radio-2-fill:before{content:"\f04d"}.ri-radio-2-line:before{content:"\f04e"}.ri-radio-button-fill:before{content:"\f04f"}.ri-radio-button-line:before{content:"\f050"}.ri-radio-fill:before{content:"\f051"}.ri-radio-line:before{content:"\f052"}.ri-rainbow-fill:before{content:"\f053"}.ri-rainbow-line:before{content:"\f054"}.ri-rainy-fill:before{content:"\f055"}.ri-rainy-line:before{content:"\f056"}.ri-reactjs-fill:before{content:"\f057"}.ri-reactjs-line:before{content:"\f058"}.ri-record-circle-fill:before{content:"\f059"}.ri-record-circle-line:before{content:"\f05a"}.ri-record-mail-fill:before{content:"\f05b"}.ri-record-mail-line:before{content:"\f05c"}.ri-recycle-fill:before{content:"\f05d"}.ri-recycle-line:before{content:"\f05e"}.ri-red-packet-fill:before{content:"\f05f"}.ri-red-packet-line:before{content:"\f060"}.ri-reddit-fill:before{content:"\f061"}.ri-reddit-line:before{content:"\f062"}.ri-refresh-fill:before{content:"\f063"}.ri-refresh-line:before{content:"\f064"}.ri-refund-2-fill:before{content:"\f065"}.ri-refund-2-line:before{content:"\f066"}.ri-refund-fill:before{content:"\f067"}.ri-refund-line:before{content:"\f068"}.ri-registered-fill:before{content:"\f069"}.ri-registered-line:before{content:"\f06a"}.ri-remixicon-fill:before{content:"\f06b"}.ri-remixicon-line:before{content:"\f06c"}.ri-remote-control-2-fill:before{content:"\f06d"}.ri-remote-control-2-line:before{content:"\f06e"}.ri-remote-control-fill:before{content:"\f06f"}.ri-remote-control-line:before{content:"\f070"}.ri-repeat-2-fill:before{content:"\f071"}.ri-repeat-2-line:before{content:"\f072"}.ri-repeat-fill:before{content:"\f073"}.ri-repeat-line:before{content:"\f074"}.ri-repeat-one-fill:before{content:"\f075"}.ri-repeat-one-line:before{content:"\f076"}.ri-reply-all-fill:before{content:"\f077"}.ri-reply-all-line:before{content:"\f078"}.ri-reply-fill:before{content:"\f079"}.ri-reply-line:before{content:"\f07a"}.ri-reserved-fill:before{content:"\f07b"}.ri-reserved-line:before{content:"\f07c"}.ri-rest-time-fill:before{content:"\f07d"}.ri-rest-time-line:before{content:"\f07e"}.ri-restart-fill:before{content:"\f07f"}.ri-restart-line:before{content:"\f080"}.ri-restaurant-2-fill:before{content:"\f081"}.ri-restaurant-2-line:before{content:"\f082"}.ri-restaurant-fill:before{content:"\f083"}.ri-restaurant-line:before{content:"\f084"}.ri-rewind-fill:before{content:"\f085"}.ri-rewind-line:before{content:"\f086"}.ri-rewind-mini-fill:before{content:"\f087"}.ri-rewind-mini-line:before{content:"\f088"}.ri-rhythm-fill:before{content:"\f089"}.ri-rhythm-line:before{content:"\f08a"}.ri-riding-fill:before{content:"\f08b"}.ri-riding-line:before{content:"\f08c"}.ri-road-map-fill:before{content:"\f08d"}.ri-road-map-line:before{content:"\f08e"}.ri-roadster-fill:before{content:"\f08f"}.ri-roadster-line:before{content:"\f090"}.ri-robot-fill:before{content:"\f091"}.ri-robot-line:before{content:"\f092"}.ri-rocket-2-fill:before{content:"\f093"}.ri-rocket-2-line:before{content:"\f094"}.ri-rocket-fill:before{content:"\f095"}.ri-rocket-line:before{content:"\f096"}.ri-rotate-lock-fill:before{content:"\f097"}.ri-rotate-lock-line:before{content:"\f098"}.ri-rounded-corner:before{content:"\f099"}.ri-route-fill:before{content:"\f09a"}.ri-route-line:before{content:"\f09b"}.ri-router-fill:before{content:"\f09c"}.ri-router-line:before{content:"\f09d"}.ri-rss-fill:before{content:"\f09e"}.ri-rss-line:before{content:"\f09f"}.ri-ruler-2-fill:before{content:"\f0a0"}.ri-ruler-2-line:before{content:"\f0a1"}.ri-ruler-fill:before{content:"\f0a2"}.ri-ruler-line:before{content:"\f0a3"}.ri-run-fill:before{content:"\f0a4"}.ri-run-line:before{content:"\f0a5"}.ri-safari-fill:before{content:"\f0a6"}.ri-safari-line:before{content:"\f0a7"}.ri-safe-2-fill:before{content:"\f0a8"}.ri-safe-2-line:before{content:"\f0a9"}.ri-safe-fill:before{content:"\f0aa"}.ri-safe-line:before{content:"\f0ab"}.ri-sailboat-fill:before{content:"\f0ac"}.ri-sailboat-line:before{content:"\f0ad"}.ri-save-2-fill:before{content:"\f0ae"}.ri-save-2-line:before{content:"\f0af"}.ri-save-3-fill:before{content:"\f0b0"}.ri-save-3-line:before{content:"\f0b1"}.ri-save-fill:before{content:"\f0b2"}.ri-save-line:before{content:"\f0b3"}.ri-scales-2-fill:before{content:"\f0b4"}.ri-scales-2-line:before{content:"\f0b5"}.ri-scales-3-fill:before{content:"\f0b6"}.ri-scales-3-line:before{content:"\f0b7"}.ri-scales-fill:before{content:"\f0b8"}.ri-scales-line:before{content:"\f0b9"}.ri-scan-2-fill:before{content:"\f0ba"}.ri-scan-2-line:before{content:"\f0bb"}.ri-scan-fill:before{content:"\f0bc"}.ri-scan-line:before{content:"\f0bd"}.ri-scissors-2-fill:before{content:"\f0be"}.ri-scissors-2-line:before{content:"\f0bf"}.ri-scissors-cut-fill:before{content:"\f0c0"}.ri-scissors-cut-line:before{content:"\f0c1"}.ri-scissors-fill:before{content:"\f0c2"}.ri-scissors-line:before{content:"\f0c3"}.ri-screenshot-2-fill:before{content:"\f0c4"}.ri-screenshot-2-line:before{content:"\f0c5"}.ri-screenshot-fill:before{content:"\f0c6"}.ri-screenshot-line:before{content:"\f0c7"}.ri-sd-card-fill:before{content:"\f0c8"}.ri-sd-card-line:before{content:"\f0c9"}.ri-sd-card-mini-fill:before{content:"\f0ca"}.ri-sd-card-mini-line:before{content:"\f0cb"}.ri-search-2-fill:before{content:"\f0cc"}.ri-search-2-line:before{content:"\f0cd"}.ri-search-eye-fill:before{content:"\f0ce"}.ri-search-eye-line:before{content:"\f0cf"}.ri-search-fill:before{content:"\f0d0"}.ri-search-line:before{content:"\f0d1"}.ri-secure-payment-fill:before{content:"\f0d2"}.ri-secure-payment-line:before{content:"\f0d3"}.ri-seedling-fill:before{content:"\f0d4"}.ri-seedling-line:before{content:"\f0d5"}.ri-send-backward:before{content:"\f0d6"}.ri-send-plane-2-fill:before{content:"\f0d7"}.ri-send-plane-2-line:before{content:"\f0d8"}.ri-send-plane-fill:before{content:"\f0d9"}.ri-send-plane-line:before{content:"\f0da"}.ri-send-to-back:before{content:"\f0db"}.ri-sensor-fill:before{content:"\f0dc"}.ri-sensor-line:before{content:"\f0dd"}.ri-separator:before{content:"\f0de"}.ri-server-fill:before{content:"\f0df"}.ri-server-line:before{content:"\f0e0"}.ri-service-fill:before{content:"\f0e1"}.ri-service-line:before{content:"\f0e2"}.ri-settings-2-fill:before{content:"\f0e3"}.ri-settings-2-line:before{content:"\f0e4"}.ri-settings-3-fill:before{content:"\f0e5"}.ri-settings-3-line:before{content:"\f0e6"}.ri-settings-4-fill:before{content:"\f0e7"}.ri-settings-4-line:before{content:"\f0e8"}.ri-settings-5-fill:before{content:"\f0e9"}.ri-settings-5-line:before{content:"\f0ea"}.ri-settings-6-fill:before{content:"\f0eb"}.ri-settings-6-line:before{content:"\f0ec"}.ri-settings-fill:before{content:"\f0ed"}.ri-settings-line:before{content:"\f0ee"}.ri-shape-2-fill:before{content:"\f0ef"}.ri-shape-2-line:before{content:"\f0f0"}.ri-shape-fill:before{content:"\f0f1"}.ri-shape-line:before{content:"\f0f2"}.ri-share-box-fill:before{content:"\f0f3"}.ri-share-box-line:before{content:"\f0f4"}.ri-share-circle-fill:before{content:"\f0f5"}.ri-share-circle-line:before{content:"\f0f6"}.ri-share-fill:before{content:"\f0f7"}.ri-share-forward-2-fill:before{content:"\f0f8"}.ri-share-forward-2-line:before{content:"\f0f9"}.ri-share-forward-box-fill:before{content:"\f0fa"}.ri-share-forward-box-line:before{content:"\f0fb"}.ri-share-forward-fill:before{content:"\f0fc"}.ri-share-forward-line:before{content:"\f0fd"}.ri-share-line:before{content:"\f0fe"}.ri-shield-check-fill:before{content:"\f0ff"}.ri-shield-check-line:before{content:"\f100"}.ri-shield-cross-fill:before{content:"\f101"}.ri-shield-cross-line:before{content:"\f102"}.ri-shield-fill:before{content:"\f103"}.ri-shield-flash-fill:before{content:"\f104"}.ri-shield-flash-line:before{content:"\f105"}.ri-shield-keyhole-fill:before{content:"\f106"}.ri-shield-keyhole-line:before{content:"\f107"}.ri-shield-line:before{content:"\f108"}.ri-shield-star-fill:before{content:"\f109"}.ri-shield-star-line:before{content:"\f10a"}.ri-shield-user-fill:before{content:"\f10b"}.ri-shield-user-line:before{content:"\f10c"}.ri-ship-2-fill:before{content:"\f10d"}.ri-ship-2-line:before{content:"\f10e"}.ri-ship-fill:before{content:"\f10f"}.ri-ship-line:before{content:"\f110"}.ri-shirt-fill:before{content:"\f111"}.ri-shirt-line:before{content:"\f112"}.ri-shopping-bag-2-fill:before{content:"\f113"}.ri-shopping-bag-2-line:before{content:"\f114"}.ri-shopping-bag-3-fill:before{content:"\f115"}.ri-shopping-bag-3-line:before{content:"\f116"}.ri-shopping-bag-fill:before{content:"\f117"}.ri-shopping-bag-line:before{content:"\f118"}.ri-shopping-basket-2-fill:before{content:"\f119"}.ri-shopping-basket-2-line:before{content:"\f11a"}.ri-shopping-basket-fill:before{content:"\f11b"}.ri-shopping-basket-line:before{content:"\f11c"}.ri-shopping-cart-2-fill:before{content:"\f11d"}.ri-shopping-cart-2-line:before{content:"\f11e"}.ri-shopping-cart-fill:before{content:"\f11f"}.ri-shopping-cart-line:before{content:"\f120"}.ri-showers-fill:before{content:"\f121"}.ri-showers-line:before{content:"\f122"}.ri-shuffle-fill:before{content:"\f123"}.ri-shuffle-line:before{content:"\f124"}.ri-shut-down-fill:before{content:"\f125"}.ri-shut-down-line:before{content:"\f126"}.ri-side-bar-fill:before{content:"\f127"}.ri-side-bar-line:before{content:"\f128"}.ri-signal-tower-fill:before{content:"\f129"}.ri-signal-tower-line:before{content:"\f12a"}.ri-signal-wifi-1-fill:before{content:"\f12b"}.ri-signal-wifi-1-line:before{content:"\f12c"}.ri-signal-wifi-2-fill:before{content:"\f12d"}.ri-signal-wifi-2-line:before{content:"\f12e"}.ri-signal-wifi-3-fill:before{content:"\f12f"}.ri-signal-wifi-3-line:before{content:"\f130"}.ri-signal-wifi-error-fill:before{content:"\f131"}.ri-signal-wifi-error-line:before{content:"\f132"}.ri-signal-wifi-fill:before{content:"\f133"}.ri-signal-wifi-line:before{content:"\f134"}.ri-signal-wifi-off-fill:before{content:"\f135"}.ri-signal-wifi-off-line:before{content:"\f136"}.ri-sim-card-2-fill:before{content:"\f137"}.ri-sim-card-2-line:before{content:"\f138"}.ri-sim-card-fill:before{content:"\f139"}.ri-sim-card-line:before{content:"\f13a"}.ri-single-quotes-l:before{content:"\f13b"}.ri-single-quotes-r:before{content:"\f13c"}.ri-sip-fill:before{content:"\f13d"}.ri-sip-line:before{content:"\f13e"}.ri-skip-back-fill:before{content:"\f13f"}.ri-skip-back-line:before{content:"\f140"}.ri-skip-back-mini-fill:before{content:"\f141"}.ri-skip-back-mini-line:before{content:"\f142"}.ri-skip-forward-fill:before{content:"\f143"}.ri-skip-forward-line:before{content:"\f144"}.ri-skip-forward-mini-fill:before{content:"\f145"}.ri-skip-forward-mini-line:before{content:"\f146"}.ri-skull-2-fill:before{content:"\f147"}.ri-skull-2-line:before{content:"\f148"}.ri-skull-fill:before{content:"\f149"}.ri-skull-line:before{content:"\f14a"}.ri-skype-fill:before{content:"\f14b"}.ri-skype-line:before{content:"\f14c"}.ri-slack-fill:before{content:"\f14d"}.ri-slack-line:before{content:"\f14e"}.ri-slice-fill:before{content:"\f14f"}.ri-slice-line:before{content:"\f150"}.ri-slideshow-2-fill:before{content:"\f151"}.ri-slideshow-2-line:before{content:"\f152"}.ri-slideshow-3-fill:before{content:"\f153"}.ri-slideshow-3-line:before{content:"\f154"}.ri-slideshow-4-fill:before{content:"\f155"}.ri-slideshow-4-line:before{content:"\f156"}.ri-slideshow-fill:before{content:"\f157"}.ri-slideshow-line:before{content:"\f158"}.ri-smartphone-fill:before{content:"\f159"}.ri-smartphone-line:before{content:"\f15a"}.ri-snapchat-fill:before{content:"\f15b"}.ri-snapchat-line:before{content:"\f15c"}.ri-snowy-fill:before{content:"\f15d"}.ri-snowy-line:before{content:"\f15e"}.ri-sort-asc:before{content:"\f15f"}.ri-sort-desc:before{content:"\f160"}.ri-sound-module-fill:before{content:"\f161"}.ri-sound-module-line:before{content:"\f162"}.ri-soundcloud-fill:before{content:"\f163"}.ri-soundcloud-line:before{content:"\f164"}.ri-space-ship-fill:before{content:"\f165"}.ri-space-ship-line:before{content:"\f166"}.ri-space:before{content:"\f167"}.ri-spam-2-fill:before{content:"\f168"}.ri-spam-2-line:before{content:"\f169"}.ri-spam-3-fill:before{content:"\f16a"}.ri-spam-3-line:before{content:"\f16b"}.ri-spam-fill:before{content:"\f16c"}.ri-spam-line:before{content:"\f16d"}.ri-speaker-2-fill:before{content:"\f16e"}.ri-speaker-2-line:before{content:"\f16f"}.ri-speaker-3-fill:before{content:"\f170"}.ri-speaker-3-line:before{content:"\f171"}.ri-speaker-fill:before{content:"\f172"}.ri-speaker-line:before{content:"\f173"}.ri-spectrum-fill:before{content:"\f174"}.ri-spectrum-line:before{content:"\f175"}.ri-speed-fill:before{content:"\f176"}.ri-speed-line:before{content:"\f177"}.ri-speed-mini-fill:before{content:"\f178"}.ri-speed-mini-line:before{content:"\f179"}.ri-split-cells-horizontal:before{content:"\f17a"}.ri-split-cells-vertical:before{content:"\f17b"}.ri-spotify-fill:before{content:"\f17c"}.ri-spotify-line:before{content:"\f17d"}.ri-spy-fill:before{content:"\f17e"}.ri-spy-line:before{content:"\f17f"}.ri-stack-fill:before{content:"\f180"}.ri-stack-line:before{content:"\f181"}.ri-stack-overflow-fill:before{content:"\f182"}.ri-stack-overflow-line:before{content:"\f183"}.ri-stackshare-fill:before{content:"\f184"}.ri-stackshare-line:before{content:"\f185"}.ri-star-fill:before{content:"\f186"}.ri-star-half-fill:before{content:"\f187"}.ri-star-half-line:before{content:"\f188"}.ri-star-half-s-fill:before{content:"\f189"}.ri-star-half-s-line:before{content:"\f18a"}.ri-star-line:before{content:"\f18b"}.ri-star-s-fill:before{content:"\f18c"}.ri-star-s-line:before{content:"\f18d"}.ri-star-smile-fill:before{content:"\f18e"}.ri-star-smile-line:before{content:"\f18f"}.ri-steam-fill:before{content:"\f190"}.ri-steam-line:before{content:"\f191"}.ri-steering-2-fill:before{content:"\f192"}.ri-steering-2-line:before{content:"\f193"}.ri-steering-fill:before{content:"\f194"}.ri-steering-line:before{content:"\f195"}.ri-stethoscope-fill:before{content:"\f196"}.ri-stethoscope-line:before{content:"\f197"}.ri-sticky-note-2-fill:before{content:"\f198"}.ri-sticky-note-2-line:before{content:"\f199"}.ri-sticky-note-fill:before{content:"\f19a"}.ri-sticky-note-line:before{content:"\f19b"}.ri-stock-fill:before{content:"\f19c"}.ri-stock-line:before{content:"\f19d"}.ri-stop-circle-fill:before{content:"\f19e"}.ri-stop-circle-line:before{content:"\f19f"}.ri-stop-fill:before{content:"\f1a0"}.ri-stop-line:before{content:"\f1a1"}.ri-stop-mini-fill:before{content:"\f1a2"}.ri-stop-mini-line:before{content:"\f1a3"}.ri-store-2-fill:before{content:"\f1a4"}.ri-store-2-line:before{content:"\f1a5"}.ri-store-3-fill:before{content:"\f1a6"}.ri-store-3-line:before{content:"\f1a7"}.ri-store-fill:before{content:"\f1a8"}.ri-store-line:before{content:"\f1a9"}.ri-strikethrough-2:before{content:"\f1aa"}.ri-strikethrough:before{content:"\f1ab"}.ri-subscript-2:before{content:"\f1ac"}.ri-subscript:before{content:"\f1ad"}.ri-subtract-fill:before{content:"\f1ae"}.ri-subtract-line:before{content:"\f1af"}.ri-subway-fill:before{content:"\f1b0"}.ri-subway-line:before{content:"\f1b1"}.ri-subway-wifi-fill:before{content:"\f1b2"}.ri-subway-wifi-line:before{content:"\f1b3"}.ri-suitcase-2-fill:before{content:"\f1b4"}.ri-suitcase-2-line:before{content:"\f1b5"}.ri-suitcase-3-fill:before{content:"\f1b6"}.ri-suitcase-3-line:before{content:"\f1b7"}.ri-suitcase-fill:before{content:"\f1b8"}.ri-suitcase-line:before{content:"\f1b9"}.ri-sun-cloudy-fill:before{content:"\f1ba"}.ri-sun-cloudy-line:before{content:"\f1bb"}.ri-sun-fill:before{content:"\f1bc"}.ri-sun-foggy-fill:before{content:"\f1bd"}.ri-sun-foggy-line:before{content:"\f1be"}.ri-sun-line:before{content:"\f1bf"}.ri-superscript-2:before{content:"\f1c0"}.ri-superscript:before{content:"\f1c1"}.ri-surgical-mask-fill:before{content:"\f1c2"}.ri-surgical-mask-line:before{content:"\f1c3"}.ri-surround-sound-fill:before{content:"\f1c4"}.ri-surround-sound-line:before{content:"\f1c5"}.ri-survey-fill:before{content:"\f1c6"}.ri-survey-line:before{content:"\f1c7"}.ri-swap-box-fill:before{content:"\f1c8"}.ri-swap-box-line:before{content:"\f1c9"}.ri-swap-fill:before{content:"\f1ca"}.ri-swap-line:before{content:"\f1cb"}.ri-switch-fill:before{content:"\f1cc"}.ri-switch-line:before{content:"\f1cd"}.ri-sword-fill:before{content:"\f1ce"}.ri-sword-line:before{content:"\f1cf"}.ri-syringe-fill:before{content:"\f1d0"}.ri-syringe-line:before{content:"\f1d1"}.ri-t-box-fill:before{content:"\f1d2"}.ri-t-box-line:before{content:"\f1d3"}.ri-t-shirt-2-fill:before{content:"\f1d4"}.ri-t-shirt-2-line:before{content:"\f1d5"}.ri-t-shirt-air-fill:before{content:"\f1d6"}.ri-t-shirt-air-line:before{content:"\f1d7"}.ri-t-shirt-fill:before{content:"\f1d8"}.ri-t-shirt-line:before{content:"\f1d9"}.ri-table-2:before{content:"\f1da"}.ri-table-alt-fill:before{content:"\f1db"}.ri-table-alt-line:before{content:"\f1dc"}.ri-table-fill:before{content:"\f1dd"}.ri-table-line:before{content:"\f1de"}.ri-tablet-fill:before{content:"\f1df"}.ri-tablet-line:before{content:"\f1e0"}.ri-takeaway-fill:before{content:"\f1e1"}.ri-takeaway-line:before{content:"\f1e2"}.ri-taobao-fill:before{content:"\f1e3"}.ri-taobao-line:before{content:"\f1e4"}.ri-tape-fill:before{content:"\f1e5"}.ri-tape-line:before{content:"\f1e6"}.ri-task-fill:before{content:"\f1e7"}.ri-task-line:before{content:"\f1e8"}.ri-taxi-fill:before{content:"\f1e9"}.ri-taxi-line:before{content:"\f1ea"}.ri-taxi-wifi-fill:before{content:"\f1eb"}.ri-taxi-wifi-line:before{content:"\f1ec"}.ri-team-fill:before{content:"\f1ed"}.ri-team-line:before{content:"\f1ee"}.ri-telegram-fill:before{content:"\f1ef"}.ri-telegram-line:before{content:"\f1f0"}.ri-temp-cold-fill:before{content:"\f1f1"}.ri-temp-cold-line:before{content:"\f1f2"}.ri-temp-hot-fill:before{content:"\f1f3"}.ri-temp-hot-line:before{content:"\f1f4"}.ri-terminal-box-fill:before{content:"\f1f5"}.ri-terminal-box-line:before{content:"\f1f6"}.ri-terminal-fill:before{content:"\f1f7"}.ri-terminal-line:before{content:"\f1f8"}.ri-terminal-window-fill:before{content:"\f1f9"}.ri-terminal-window-line:before{content:"\f1fa"}.ri-test-tube-fill:before{content:"\f1fb"}.ri-test-tube-line:before{content:"\f1fc"}.ri-text-direction-l:before{content:"\f1fd"}.ri-text-direction-r:before{content:"\f1fe"}.ri-text-spacing:before{content:"\f1ff"}.ri-text-wrap:before{content:"\f200"}.ri-text:before{content:"\f201"}.ri-thermometer-fill:before{content:"\f202"}.ri-thermometer-line:before{content:"\f203"}.ri-thumb-down-fill:before{content:"\f204"}.ri-thumb-down-line:before{content:"\f205"}.ri-thumb-up-fill:before{content:"\f206"}.ri-thumb-up-line:before{content:"\f207"}.ri-thunderstorms-fill:before{content:"\f208"}.ri-thunderstorms-line:before{content:"\f209"}.ri-ticket-2-fill:before{content:"\f20a"}.ri-ticket-2-line:before{content:"\f20b"}.ri-ticket-fill:before{content:"\f20c"}.ri-ticket-line:before{content:"\f20d"}.ri-time-fill:before{content:"\f20e"}.ri-time-line:before{content:"\f20f"}.ri-timer-2-fill:before{content:"\f210"}.ri-timer-2-line:before{content:"\f211"}.ri-timer-fill:before{content:"\f212"}.ri-timer-flash-fill:before{content:"\f213"}.ri-timer-flash-line:before{content:"\f214"}.ri-timer-line:before{content:"\f215"}.ri-todo-fill:before{content:"\f216"}.ri-todo-line:before{content:"\f217"}.ri-toggle-fill:before{content:"\f218"}.ri-toggle-line:before{content:"\f219"}.ri-tools-fill:before{content:"\f21a"}.ri-tools-line:before{content:"\f21b"}.ri-tornado-fill:before{content:"\f21c"}.ri-tornado-line:before{content:"\f21d"}.ri-trademark-fill:before{content:"\f21e"}.ri-trademark-line:before{content:"\f21f"}.ri-traffic-light-fill:before{content:"\f220"}.ri-traffic-light-line:before{content:"\f221"}.ri-train-fill:before{content:"\f222"}.ri-train-line:before{content:"\f223"}.ri-train-wifi-fill:before{content:"\f224"}.ri-train-wifi-line:before{content:"\f225"}.ri-translate-2:before{content:"\f226"}.ri-translate:before{content:"\f227"}.ri-travesti-fill:before{content:"\f228"}.ri-travesti-line:before{content:"\f229"}.ri-treasure-map-fill:before{content:"\f22a"}.ri-treasure-map-line:before{content:"\f22b"}.ri-trello-fill:before{content:"\f22c"}.ri-trello-line:before{content:"\f22d"}.ri-trophy-fill:before{content:"\f22e"}.ri-trophy-line:before{content:"\f22f"}.ri-truck-fill:before{content:"\f230"}.ri-truck-line:before{content:"\f231"}.ri-tumblr-fill:before{content:"\f232"}.ri-tumblr-line:before{content:"\f233"}.ri-tv-2-fill:before{content:"\f234"}.ri-tv-2-line:before{content:"\f235"}.ri-tv-fill:before{content:"\f236"}.ri-tv-line:before{content:"\f237"}.ri-twitch-fill:before{content:"\f238"}.ri-twitch-line:before{content:"\f239"}.ri-twitter-fill:before{content:"\f23a"}.ri-twitter-line:before{content:"\f23b"}.ri-typhoon-fill:before{content:"\f23c"}.ri-typhoon-line:before{content:"\f23d"}.ri-u-disk-fill:before{content:"\f23e"}.ri-u-disk-line:before{content:"\f23f"}.ri-ubuntu-fill:before{content:"\f240"}.ri-ubuntu-line:before{content:"\f241"}.ri-umbrella-fill:before{content:"\f242"}.ri-umbrella-line:before{content:"\f243"}.ri-underline:before{content:"\f244"}.ri-uninstall-fill:before{content:"\f245"}.ri-uninstall-line:before{content:"\f246"}.ri-unsplash-fill:before{content:"\f247"}.ri-unsplash-line:before{content:"\f248"}.ri-upload-2-fill:before{content:"\f249"}.ri-upload-2-line:before{content:"\f24a"}.ri-upload-cloud-2-fill:before{content:"\f24b"}.ri-upload-cloud-2-line:before{content:"\f24c"}.ri-upload-cloud-fill:before{content:"\f24d"}.ri-upload-cloud-line:before{content:"\f24e"}.ri-upload-fill:before{content:"\f24f"}.ri-upload-line:before{content:"\f250"}.ri-usb-fill:before{content:"\f251"}.ri-usb-line:before{content:"\f252"}.ri-user-2-fill:before{content:"\f253"}.ri-user-2-line:before{content:"\f254"}.ri-user-3-fill:before{content:"\f255"}.ri-user-3-line:before{content:"\f256"}.ri-user-4-fill:before{content:"\f257"}.ri-user-4-line:before{content:"\f258"}.ri-user-5-fill:before{content:"\f259"}.ri-user-5-line:before{content:"\f25a"}.ri-user-6-fill:before{content:"\f25b"}.ri-user-6-line:before{content:"\f25c"}.ri-user-add-fill:before{content:"\f25d"}.ri-user-add-line:before{content:"\f25e"}.ri-user-fill:before{content:"\f25f"}.ri-user-follow-fill:before{content:"\f260"}.ri-user-follow-line:before{content:"\f261"}.ri-user-heart-fill:before{content:"\f262"}.ri-user-heart-line:before{content:"\f263"}.ri-user-line:before{content:"\f264"}.ri-user-location-fill:before{content:"\f265"}.ri-user-location-line:before{content:"\f266"}.ri-user-received-2-fill:before{content:"\f267"}.ri-user-received-2-line:before{content:"\f268"}.ri-user-received-fill:before{content:"\f269"}.ri-user-received-line:before{content:"\f26a"}.ri-user-search-fill:before{content:"\f26b"}.ri-user-search-line:before{content:"\f26c"}.ri-user-settings-fill:before{content:"\f26d"}.ri-user-settings-line:before{content:"\f26e"}.ri-user-shared-2-fill:before{content:"\f26f"}.ri-user-shared-2-line:before{content:"\f270"}.ri-user-shared-fill:before{content:"\f271"}.ri-user-shared-line:before{content:"\f272"}.ri-user-smile-fill:before{content:"\f273"}.ri-user-smile-line:before{content:"\f274"}.ri-user-star-fill:before{content:"\f275"}.ri-user-star-line:before{content:"\f276"}.ri-user-unfollow-fill:before{content:"\f277"}.ri-user-unfollow-line:before{content:"\f278"}.ri-user-voice-fill:before{content:"\f279"}.ri-user-voice-line:before{content:"\f27a"}.ri-video-add-fill:before{content:"\f27b"}.ri-video-add-line:before{content:"\f27c"}.ri-video-chat-fill:before{content:"\f27d"}.ri-video-chat-line:before{content:"\f27e"}.ri-video-download-fill:before{content:"\f27f"}.ri-video-download-line:before{content:"\f280"}.ri-video-fill:before{content:"\f281"}.ri-video-line:before{content:"\f282"}.ri-video-upload-fill:before{content:"\f283"}.ri-video-upload-line:before{content:"\f284"}.ri-vidicon-2-fill:before{content:"\f285"}.ri-vidicon-2-line:before{content:"\f286"}.ri-vidicon-fill:before{content:"\f287"}.ri-vidicon-line:before{content:"\f288"}.ri-vimeo-fill:before{content:"\f289"}.ri-vimeo-line:before{content:"\f28a"}.ri-vip-crown-2-fill:before{content:"\f28b"}.ri-vip-crown-2-line:before{content:"\f28c"}.ri-vip-crown-fill:before{content:"\f28d"}.ri-vip-crown-line:before{content:"\f28e"}.ri-vip-diamond-fill:before{content:"\f28f"}.ri-vip-diamond-line:before{content:"\f290"}.ri-vip-fill:before{content:"\f291"}.ri-vip-line:before{content:"\f292"}.ri-virus-fill:before{content:"\f293"}.ri-virus-line:before{content:"\f294"}.ri-visa-fill:before{content:"\f295"}.ri-visa-line:before{content:"\f296"}.ri-voice-recognition-fill:before{content:"\f297"}.ri-voice-recognition-line:before{content:"\f298"}.ri-voiceprint-fill:before{content:"\f299"}.ri-voiceprint-line:before{content:"\f29a"}.ri-volume-down-fill:before{content:"\f29b"}.ri-volume-down-line:before{content:"\f29c"}.ri-volume-mute-fill:before{content:"\f29d"}.ri-volume-mute-line:before{content:"\f29e"}.ri-volume-off-vibrate-fill:before{content:"\f29f"}.ri-volume-off-vibrate-line:before{content:"\f2a0"}.ri-volume-up-fill:before{content:"\f2a1"}.ri-volume-up-line:before{content:"\f2a2"}.ri-volume-vibrate-fill:before{content:"\f2a3"}.ri-volume-vibrate-line:before{content:"\f2a4"}.ri-vuejs-fill:before{content:"\f2a5"}.ri-vuejs-line:before{content:"\f2a6"}.ri-walk-fill:before{content:"\f2a7"}.ri-walk-line:before{content:"\f2a8"}.ri-wallet-2-fill:before{content:"\f2a9"}.ri-wallet-2-line:before{content:"\f2aa"}.ri-wallet-3-fill:before{content:"\f2ab"}.ri-wallet-3-line:before{content:"\f2ac"}.ri-wallet-fill:before{content:"\f2ad"}.ri-wallet-line:before{content:"\f2ae"}.ri-water-flash-fill:before{content:"\f2af"}.ri-water-flash-line:before{content:"\f2b0"}.ri-webcam-fill:before{content:"\f2b1"}.ri-webcam-line:before{content:"\f2b2"}.ri-wechat-2-fill:before{content:"\f2b3"}.ri-wechat-2-line:before{content:"\f2b4"}.ri-wechat-fill:before{content:"\f2b5"}.ri-wechat-line:before{content:"\f2b6"}.ri-wechat-pay-fill:before{content:"\f2b7"}.ri-wechat-pay-line:before{content:"\f2b8"}.ri-weibo-fill:before{content:"\f2b9"}.ri-weibo-line:before{content:"\f2ba"}.ri-whatsapp-fill:before{content:"\f2bb"}.ri-whatsapp-line:before{content:"\f2bc"}.ri-wheelchair-fill:before{content:"\f2bd"}.ri-wheelchair-line:before{content:"\f2be"}.ri-wifi-fill:before{content:"\f2bf"}.ri-wifi-line:before{content:"\f2c0"}.ri-wifi-off-fill:before{content:"\f2c1"}.ri-wifi-off-line:before{content:"\f2c2"}.ri-window-2-fill:before{content:"\f2c3"}.ri-window-2-line:before{content:"\f2c4"}.ri-window-fill:before{content:"\f2c5"}.ri-window-line:before{content:"\f2c6"}.ri-windows-fill:before{content:"\f2c7"}.ri-windows-line:before{content:"\f2c8"}.ri-windy-fill:before{content:"\f2c9"}.ri-windy-line:before{content:"\f2ca"}.ri-wireless-charging-fill:before{content:"\f2cb"}.ri-wireless-charging-line:before{content:"\f2cc"}.ri-women-fill:before{content:"\f2cd"}.ri-women-line:before{content:"\f2ce"}.ri-wubi-input:before{content:"\f2cf"}.ri-xbox-fill:before{content:"\f2d0"}.ri-xbox-line:before{content:"\f2d1"}.ri-xing-fill:before{content:"\f2d2"}.ri-xing-line:before{content:"\f2d3"}.ri-youtube-fill:before{content:"\f2d4"}.ri-youtube-line:before{content:"\f2d5"}.ri-zcool-fill:before{content:"\f2d6"}.ri-zcool-line:before{content:"\f2d7"}.ri-zhihu-fill:before{content:"\f2d8"}.ri-zhihu-line:before{content:"\f2d9"}.ri-zoom-in-fill:before{content:"\f2da"}.ri-zoom-in-line:before{content:"\f2db"}.ri-zoom-out-fill:before{content:"\f2dc"}.ri-zoom-out-line:before{content:"\f2dd"}.ri-zzz-fill:before{content:"\f2de"}.ri-zzz-line:before{content:"\f2df"}.ri-arrow-down-double-fill:before{content:"\f2e0"}.ri-arrow-down-double-line:before{content:"\f2e1"}.ri-arrow-left-double-fill:before{content:"\f2e2"}.ri-arrow-left-double-line:before{content:"\f2e3"}.ri-arrow-right-double-fill:before{content:"\f2e4"}.ri-arrow-right-double-line:before{content:"\f2e5"}.ri-arrow-turn-back-fill:before{content:"\f2e6"}.ri-arrow-turn-back-line:before{content:"\f2e7"}.ri-arrow-turn-forward-fill:before{content:"\f2e8"}.ri-arrow-turn-forward-line:before{content:"\f2e9"}.ri-arrow-up-double-fill:before{content:"\f2ea"}.ri-arrow-up-double-line:before{content:"\f2eb"}.ri-bard-fill:before{content:"\f2ec"}.ri-bard-line:before{content:"\f2ed"}.ri-bootstrap-fill:before{content:"\f2ee"}.ri-bootstrap-line:before{content:"\f2ef"}.ri-box-1-fill:before{content:"\f2f0"}.ri-box-1-line:before{content:"\f2f1"}.ri-box-2-fill:before{content:"\f2f2"}.ri-box-2-line:before{content:"\f2f3"}.ri-box-3-fill:before{content:"\f2f4"}.ri-box-3-line:before{content:"\f2f5"}.ri-brain-fill:before{content:"\f2f6"}.ri-brain-line:before{content:"\f2f7"}.ri-candle-fill:before{content:"\f2f8"}.ri-candle-line:before{content:"\f2f9"}.ri-cash-fill:before{content:"\f2fa"}.ri-cash-line:before{content:"\f2fb"}.ri-contract-left-fill:before{content:"\f2fc"}.ri-contract-left-line:before{content:"\f2fd"}.ri-contract-left-right-fill:before{content:"\f2fe"}.ri-contract-left-right-line:before{content:"\f2ff"}.ri-contract-right-fill:before{content:"\f300"}.ri-contract-right-line:before{content:"\f301"}.ri-contract-up-down-fill:before{content:"\f302"}.ri-contract-up-down-line:before{content:"\f303"}.ri-copilot-fill:before{content:"\f304"}.ri-copilot-line:before{content:"\f305"}.ri-corner-down-left-fill:before{content:"\f306"}.ri-corner-down-left-line:before{content:"\f307"}.ri-corner-down-right-fill:before{content:"\f308"}.ri-corner-down-right-line:before{content:"\f309"}.ri-corner-left-down-fill:before{content:"\f30a"}.ri-corner-left-down-line:before{content:"\f30b"}.ri-corner-left-up-fill:before{content:"\f30c"}.ri-corner-left-up-line:before{content:"\f30d"}.ri-corner-right-down-fill:before{content:"\f30e"}.ri-corner-right-down-line:before{content:"\f30f"}.ri-corner-right-up-fill:before{content:"\f310"}.ri-corner-right-up-line:before{content:"\f311"}.ri-corner-up-left-double-fill:before{content:"\f312"}.ri-corner-up-left-double-line:before{content:"\f313"}.ri-corner-up-left-fill:before{content:"\f314"}.ri-corner-up-left-line:before{content:"\f315"}.ri-corner-up-right-double-fill:before{content:"\f316"}.ri-corner-up-right-double-line:before{content:"\f317"}.ri-corner-up-right-fill:before{content:"\f318"}.ri-corner-up-right-line:before{content:"\f319"}.ri-cross-fill:before{content:"\f31a"}.ri-cross-line:before{content:"\f31b"}.ri-edge-new-fill:before{content:"\f31c"}.ri-edge-new-line:before{content:"\f31d"}.ri-equal-fill:before{content:"\f31e"}.ri-equal-line:before{content:"\f31f"}.ri-expand-left-fill:before{content:"\f320"}.ri-expand-left-line:before{content:"\f321"}.ri-expand-left-right-fill:before{content:"\f322"}.ri-expand-left-right-line:before{content:"\f323"}.ri-expand-right-fill:before{content:"\f324"}.ri-expand-right-line:before{content:"\f325"}.ri-expand-up-down-fill:before{content:"\f326"}.ri-expand-up-down-line:before{content:"\f327"}.ri-flickr-fill:before{content:"\f328"}.ri-flickr-line:before{content:"\f329"}.ri-forward-10-fill:before{content:"\f32a"}.ri-forward-10-line:before{content:"\f32b"}.ri-forward-15-fill:before{content:"\f32c"}.ri-forward-15-line:before{content:"\f32d"}.ri-forward-30-fill:before{content:"\f32e"}.ri-forward-30-line:before{content:"\f32f"}.ri-forward-5-fill:before{content:"\f330"}.ri-forward-5-line:before{content:"\f331"}.ri-graduation-cap-fill:before{content:"\f332"}.ri-graduation-cap-line:before{content:"\f333"}.ri-home-office-fill:before{content:"\f334"}.ri-home-office-line:before{content:"\f335"}.ri-hourglass-2-fill:before{content:"\f336"}.ri-hourglass-2-line:before{content:"\f337"}.ri-hourglass-fill:before{content:"\f338"}.ri-hourglass-line:before{content:"\f339"}.ri-javascript-fill:before{content:"\f33a"}.ri-javascript-line:before{content:"\f33b"}.ri-loop-left-fill:before{content:"\f33c"}.ri-loop-left-line:before{content:"\f33d"}.ri-loop-right-fill:before{content:"\f33e"}.ri-loop-right-line:before{content:"\f33f"}.ri-memories-fill:before{content:"\f340"}.ri-memories-line:before{content:"\f341"}.ri-meta-fill:before{content:"\f342"}.ri-meta-line:before{content:"\f343"}.ri-microsoft-loop-fill:before{content:"\f344"}.ri-microsoft-loop-line:before{content:"\f345"}.ri-nft-fill:before{content:"\f346"}.ri-nft-line:before{content:"\f347"}.ri-notion-fill:before{content:"\f348"}.ri-notion-line:before{content:"\f349"}.ri-openai-fill:before{content:"\f34a"}.ri-openai-line:before{content:"\f34b"}.ri-overline:before{content:"\f34c"}.ri-p2p-fill:before{content:"\f34d"}.ri-p2p-line:before{content:"\f34e"}.ri-presentation-fill:before{content:"\f34f"}.ri-presentation-line:before{content:"\f350"}.ri-replay-10-fill:before{content:"\f351"}.ri-replay-10-line:before{content:"\f352"}.ri-replay-15-fill:before{content:"\f353"}.ri-replay-15-line:before{content:"\f354"}.ri-replay-30-fill:before{content:"\f355"}.ri-replay-30-line:before{content:"\f356"}.ri-replay-5-fill:before{content:"\f357"}.ri-replay-5-line:before{content:"\f358"}.ri-school-fill:before{content:"\f359"}.ri-school-line:before{content:"\f35a"}.ri-shining-2-fill:before{content:"\f35b"}.ri-shining-2-line:before{content:"\f35c"}.ri-shining-fill:before{content:"\f35d"}.ri-shining-line:before{content:"\f35e"}.ri-sketching:before{content:"\f35f"}.ri-skip-down-fill:before{content:"\f360"}.ri-skip-down-line:before{content:"\f361"}.ri-skip-left-fill:before{content:"\f362"}.ri-skip-left-line:before{content:"\f363"}.ri-skip-right-fill:before{content:"\f364"}.ri-skip-right-line:before{content:"\f365"}.ri-skip-up-fill:before{content:"\f366"}.ri-skip-up-line:before{content:"\f367"}.ri-slow-down-fill:before{content:"\f368"}.ri-slow-down-line:before{content:"\f369"}.ri-sparkling-2-fill:before{content:"\f36a"}.ri-sparkling-2-line:before{content:"\f36b"}.ri-sparkling-fill:before{content:"\f36c"}.ri-sparkling-line:before{content:"\f36d"}.ri-speak-fill:before{content:"\f36e"}.ri-speak-line:before{content:"\f36f"}.ri-speed-up-fill:before{content:"\f370"}.ri-speed-up-line:before{content:"\f371"}.ri-tiktok-fill:before{content:"\f372"}.ri-tiktok-line:before{content:"\f373"}.ri-token-swap-fill:before{content:"\f374"}.ri-token-swap-line:before{content:"\f375"}.ri-unpin-fill:before{content:"\f376"}.ri-unpin-line:before{content:"\f377"}.ri-wechat-channels-fill:before{content:"\f378"}.ri-wechat-channels-line:before{content:"\f379"}.ri-wordpress-fill:before{content:"\f37a"}.ri-wordpress-line:before{content:"\f37b"}.ri-blender-fill:before{content:"\f37c"}.ri-blender-line:before{content:"\f37d"}.ri-emoji-sticker-fill:before{content:"\f37e"}.ri-emoji-sticker-line:before{content:"\f37f"}.ri-git-close-pull-request-fill:before{content:"\f380"}.ri-git-close-pull-request-line:before{content:"\f381"}.ri-instance-fill:before{content:"\f382"}.ri-instance-line:before{content:"\f383"}.ri-megaphone-fill:before{content:"\f384"}.ri-megaphone-line:before{content:"\f385"}.ri-pass-expired-fill:before{content:"\f386"}.ri-pass-expired-line:before{content:"\f387"}.ri-pass-pending-fill:before{content:"\f388"}.ri-pass-pending-line:before{content:"\f389"}.ri-pass-valid-fill:before{content:"\f38a"}.ri-pass-valid-line:before{content:"\f38b"}.ri-ai-generate:before{content:"\f38c"}.ri-calendar-close-fill:before{content:"\f38d"}.ri-calendar-close-line:before{content:"\f38e"}.ri-draggable:before{content:"\f38f"}.ri-font-family:before{content:"\f390"}.ri-font-mono:before{content:"\f391"}.ri-font-sans-serif:before{content:"\f392"}.ri-font-sans:before{content:"\f393"}.ri-hard-drive-3-fill:before{content:"\f394"}.ri-hard-drive-3-line:before{content:"\f395"}.ri-kick-fill:before{content:"\f396"}.ri-kick-line:before{content:"\f397"}.ri-list-check-3:before{content:"\f398"}.ri-list-indefinite:before{content:"\f399"}.ri-list-ordered-2:before{content:"\f39a"}.ri-list-radio:before{content:"\f39b"}.ri-openbase-fill:before{content:"\f39c"}.ri-openbase-line:before{content:"\f39d"}.ri-planet-fill:before{content:"\f39e"}.ri-planet-line:before{content:"\f39f"}.ri-prohibited-fill:before{content:"\f3a0"}.ri-prohibited-line:before{content:"\f3a1"}.ri-quote-text:before{content:"\f3a2"}.ri-seo-fill:before{content:"\f3a3"}.ri-seo-line:before{content:"\f3a4"}.ri-slash-commands:before{content:"\f3a5"}.ri-archive-2-fill:before{content:"\f3a6"}.ri-archive-2-line:before{content:"\f3a7"}.ri-inbox-2-fill:before{content:"\f3a8"}.ri-inbox-2-line:before{content:"\f3a9"}.ri-shake-hands-fill:before{content:"\f3aa"}.ri-shake-hands-line:before{content:"\f3ab"}.ri-supabase-fill:before{content:"\f3ac"}.ri-supabase-line:before{content:"\f3ad"}.ri-water-percent-fill:before{content:"\f3ae"}.ri-water-percent-line:before{content:"\f3af"}.ri-yuque-fill:before{content:"\f3b0"}.ri-yuque-line:before{content:"\f3b1"}.ri-crosshair-2-fill:before{content:"\f3b2"}.ri-crosshair-2-line:before{content:"\f3b3"}.ri-crosshair-fill:before{content:"\f3b4"}.ri-crosshair-line:before{content:"\f3b5"}.ri-file-close-fill:before{content:"\f3b6"}.ri-file-close-line:before{content:"\f3b7"}.ri-infinity-fill:before{content:"\f3b8"}.ri-infinity-line:before{content:"\f3b9"}.ri-rfid-fill:before{content:"\f3ba"}.ri-rfid-line:before{content:"\f3bb"}.ri-slash-commands-2:before{content:"\f3bc"}.ri-user-forbid-fill:before{content:"\f3bd"}.ri-user-forbid-line:before{content:"\f3be"}.ri-beer-fill:before{content:"\f3bf"}.ri-beer-line:before{content:"\f3c0"}.ri-circle-fill:before{content:"\f3c1"}.ri-circle-line:before{content:"\f3c2"}.ri-dropdown-list:before{content:"\f3c3"}.ri-file-image-fill:before{content:"\f3c4"}.ri-file-image-line:before{content:"\f3c5"}.ri-file-pdf-2-fill:before{content:"\f3c6"}.ri-file-pdf-2-line:before{content:"\f3c7"}.ri-file-video-fill:before{content:"\f3c8"}.ri-file-video-line:before{content:"\f3c9"}.ri-folder-image-fill:before{content:"\f3ca"}.ri-folder-image-line:before{content:"\f3cb"}.ri-folder-video-fill:before{content:"\f3cc"}.ri-folder-video-line:before{content:"\f3cd"}.ri-hexagon-fill:before{content:"\f3ce"}.ri-hexagon-line:before{content:"\f3cf"}.ri-menu-search-fill:before{content:"\f3d0"}.ri-menu-search-line:before{content:"\f3d1"}.ri-octagon-fill:before{content:"\f3d2"}.ri-octagon-line:before{content:"\f3d3"}.ri-pentagon-fill:before{content:"\f3d4"}.ri-pentagon-line:before{content:"\f3d5"}.ri-rectangle-fill:before{content:"\f3d6"}.ri-rectangle-line:before{content:"\f3d7"}.ri-robot-2-fill:before{content:"\f3d8"}.ri-robot-2-line:before{content:"\f3d9"}.ri-shapes-fill:before{content:"\f3da"}.ri-shapes-line:before{content:"\f3db"}.ri-square-fill:before{content:"\f3dc"}.ri-square-line:before{content:"\f3dd"}.ri-tent-fill:before{content:"\f3de"}.ri-tent-line:before{content:"\f3df"}.ri-threads-fill:before{content:"\f3e0"}.ri-threads-line:before{content:"\f3e1"}.ri-tree-fill:before{content:"\f3e2"}.ri-tree-line:before{content:"\f3e3"}.ri-triangle-fill:before{content:"\f3e4"}.ri-triangle-line:before{content:"\f3e5"}.ri-twitter-x-fill:before{content:"\f3e6"}.ri-twitter-x-line:before{content:"\f3e7"}.ri-verified-badge-fill:before{content:"\f3e8"}.ri-verified-badge-line:before{content:"\f3e9"}@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(./KaTeX_AMS-Regular-U6PRYMIZ.woff2) format("woff2"),url(./KaTeX_AMS-Regular-CYEKBG2K.woff) format("woff"),url(./KaTeX_AMS-Regular-JKX5W2C4.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(./KaTeX_Caligraphic-Bold-5QL5CMTE.woff2) format("woff2"),url(./KaTeX_Caligraphic-Bold-WZ3QSGD3.woff) format("woff"),url(./KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(./KaTeX_Caligraphic-Regular-KX5MEWCF.woff2) format("woff2"),url(./KaTeX_Caligraphic-Regular-3LKEU76G.woff) format("woff"),url(./KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(./KaTeX_Fraktur-Bold-2QVFK6NQ.woff2) format("woff2"),url(./KaTeX_Fraktur-Bold-T4SWXBMT.woff) format("woff"),url(./KaTeX_Fraktur-Bold-WGHVTYOR.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(./KaTeX_Fraktur-Regular-2PEIFJSJ.woff2) format("woff2"),url(./KaTeX_Fraktur-Regular-PQMHCIK6.woff) format("woff"),url(./KaTeX_Fraktur-Regular-5U4OPH2X.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(./KaTeX_Main-Bold-YP5VVQRP.woff2) format("woff2"),url(./KaTeX_Main-Bold-2GA4IZIN.woff) format("woff"),url(./KaTeX_Main-Bold-W5FBVCZM.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(./KaTeX_Main-BoldItalic-N4V3DX7S.woff2) format("woff2"),url(./KaTeX_Main-BoldItalic-4P4C7HJH.woff) format("woff"),url(./KaTeX_Main-BoldItalic-ODMLBJJQ.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(./KaTeX_Main-Italic-RELBIK7M.woff2) format("woff2"),url(./KaTeX_Main-Italic-SASNQFN2.woff) format("woff"),url(./KaTeX_Main-Italic-I43T2HSR.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(./KaTeX_Main-Regular-ARRPAO67.woff2) format("woff2"),url(./KaTeX_Main-Regular-P5I74A2A.woff) format("woff"),url(./KaTeX_Main-Regular-W74P5G27.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(./KaTeX_Math-BoldItalic-K4WTGH3J.woff2) format("woff2"),url(./KaTeX_Math-BoldItalic-6EBV3DK5.woff) format("woff"),url(./KaTeX_Math-BoldItalic-VB447A4D.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(./KaTeX_Math-Italic-6KGCHLFN.woff2) format("woff2"),url(./KaTeX_Math-Italic-KKK3USB2.woff) format("woff"),url(./KaTeX_Math-Italic-SON4MRCA.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(./KaTeX_SansSerif-Bold-RRNVJFFW.woff2) format("woff2"),url(./KaTeX_SansSerif-Bold-X5M5EMOD.woff) format("woff"),url(./KaTeX_SansSerif-Bold-STQ6RXC7.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(./KaTeX_SansSerif-Italic-HMPFTM52.woff2) format("woff2"),url(./KaTeX_SansSerif-Italic-PSN4QKYX.woff) format("woff"),url(./KaTeX_SansSerif-Italic-WTBAZBGY.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(./KaTeX_SansSerif-Regular-XIQ62X4E.woff2) format("woff2"),url(./KaTeX_SansSerif-Regular-OQCII6EP.woff) format("woff"),url(./KaTeX_SansSerif-Regular-2TL3USAE.ttf) format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(./KaTeX_Script-Regular-APUWIHLP.woff2) format("woff2"),url(./KaTeX_Script-Regular-A5IFOEBS.woff) format("woff"),url(./KaTeX_Script-Regular-72OLXYNA.ttf) format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(./KaTeX_Size1-Regular-5LRUTBFT.woff2) format("woff2"),url(./KaTeX_Size1-Regular-4HRHTS65.woff) format("woff"),url(./KaTeX_Size1-Regular-7K6AASVL.ttf) format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(./KaTeX_Size2-Regular-LELKET5D.woff2) format("woff2"),url(./KaTeX_Size2-Regular-K5ZHAIS6.woff) format("woff"),url(./KaTeX_Size2-Regular-222HN3GT.ttf) format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(./KaTeX_Size3-Regular-WQRQ47UD.woff2) format("woff2"),url(./KaTeX_Size3-Regular-TLFPAHDE.woff) format("woff"),url(./KaTeX_Size3-Regular-UFCO6WCA.ttf) format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(./KaTeX_Size4-Regular-CDMV7U5C.woff2) format("woff2"),url(./KaTeX_Size4-Regular-PKMWZHNC.woff) format("woff"),url(./KaTeX_Size4-Regular-7PGNVPQK.ttf) format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(./KaTeX_Typewriter-Regular-VBYJ4NRC.woff2) format("woff2"),url(./KaTeX_Typewriter-Regular-MJMFSK64.woff) format("woff"),url(./KaTeX_Typewriter-Regular-3F5K6SQ6.ttf) format("truetype")}.katex{text-rendering:auto;font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.9"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.83333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.85714286em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857143em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96285714em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55428571em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.66666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.77777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.88888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.58333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.66666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.41666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.48611111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.55555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44027778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.28935185em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.34722222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.40509259em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.46296296em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.52083333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023148em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981481em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108004em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.28929605em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.33751205em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.38572806em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.43394407em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216008em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57859209em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69431051em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.83317261em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961427em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.20096463em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.24115756em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.28135048em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.32154341em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.36173633em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.40192926em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.48231511em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.57877814em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.69453376em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.83360129em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-cyrillic-ext-400-normal-JB453SGZ.woff2) format("woff2"),url(./inter-cyrillic-ext-400-normal-UT7C7CGZ.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-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-cyrillic-400-normal-KFLOZ6L3.woff2) format("woff2"),url(./inter-cyrillic-400-normal-UGV3X2ZX.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-greek-ext-400-normal-QIS4ONLW.woff2) format("woff2"),url(./inter-greek-ext-400-normal-4HYCVGMS.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-greek-400-normal-BRMJUT6T.woff2) format("woff2"),url(./inter-greek-400-normal-7Y67TOYM.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-vietnamese-400-normal-KH5NGGJJ.woff2) format("woff2"),url(./inter-vietnamese-400-normal-724F3VTF.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-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-latin-ext-400-normal-BTAMM2KL.woff2) format("woff2"),url(./inter-latin-ext-400-normal-YUALTDTA.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-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-latin-400-normal-VQ3UBCDI.woff2) format("woff2"),url(./inter-latin-400-normal-O6KIPRV2.woff) format("woff");unicode-range:U+0000-00FF,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-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-cyrillic-ext-500-normal-JTQKN4HY.woff2) format("woff2"),url(./inter-cyrillic-ext-500-normal-WLOKRQXN.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-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-cyrillic-500-normal-MRQZIV3H.woff2) format("woff2"),url(./inter-cyrillic-500-normal-5QURBI26.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-greek-ext-500-normal-Z2CEJP2K.woff2) format("woff2"),url(./inter-greek-ext-500-normal-AOIZUIP4.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-greek-500-normal-PQX5SJVP.woff2) format("woff2"),url(./inter-greek-500-normal-LCPH243Y.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-vietnamese-500-normal-F77QXW2X.woff2) format("woff2"),url(./inter-vietnamese-500-normal-ZTDWBSHR.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-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-latin-ext-500-normal-DV5RJSXI.woff2) format("woff2"),url(./inter-latin-ext-500-normal-KJKTVLML.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-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-latin-500-normal-PUEXTTCT.woff2) format("woff2"),url(./inter-latin-500-normal-OD7WVACW.woff) format("woff");unicode-range:U+0000-00FF,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-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-cyrillic-ext-600-normal-EFECVKGZ.woff2) format("woff2"),url(./inter-cyrillic-ext-600-normal-NBG3W4IU.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-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-cyrillic-600-normal-VQSXM56D.woff2) format("woff2"),url(./inter-cyrillic-600-normal-EDUIRGIU.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-greek-ext-600-normal-KM6XRHAQ.woff2) format("woff2"),url(./inter-greek-ext-600-normal-FQPCNDF3.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-greek-600-normal-PKJBTQPQ.woff2) format("woff2"),url(./inter-greek-600-normal-UPKYUUFH.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-vietnamese-600-normal-47DK6MCQ.woff2) format("woff2"),url(./inter-vietnamese-600-normal-M4XR4C4S.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-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-latin-ext-600-normal-AOYWYIP3.woff2) format("woff2"),url(./inter-latin-ext-600-normal-L5SWE5DY.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-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-latin-600-normal-GQRH5MIF.woff2) format("woff2"),url(./inter-latin-600-normal-5WVF6G4B.woff) format("woff");unicode-range:U+0000-00FF,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-family:Red Hat Text;font-style:normal;font-display:swap;font-weight:400;src:url(./red-hat-text-latin-ext-400-normal-7X3BOMKZ.woff2) format("woff2"),url(./red-hat-text-latin-ext-400-normal-3AG7KJ23.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-family:Red Hat Text;font-style:normal;font-display:swap;font-weight:400;src:url(./red-hat-text-latin-400-normal-SKCAVGFN.woff2) format("woff2"),url(./red-hat-text-latin-400-normal-34QPSVOZ.woff) format("woff");unicode-range:U+0000-00FF,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-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-cyrillic-ext-400-normal-HYAFUTTD.woff2) format("woff2"),url(./jetbrains-mono-cyrillic-ext-400-normal-U7JCD3HP.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-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-cyrillic-400-normal-RF3F6BDX.woff2) format("woff2"),url(./jetbrains-mono-cyrillic-400-normal-QZ4EYELX.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-greek-400-normal-KMD3CAMP.woff2) format("woff2"),url(./jetbrains-mono-greek-400-normal-CE6KMGS2.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-vietnamese-400-normal-SZYMLMOU.woff2) format("woff2"),url(./jetbrains-mono-vietnamese-400-normal-AWIMX5C6.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-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-ext-400-normal-QLFFZGQN.woff2) format("woff2"),url(./jetbrains-mono-latin-ext-400-normal-XZJVN265.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-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-400-normal-62SJVGG5.woff2) format("woff2"),url(./jetbrains-mono-latin-400-normal-47HBTU5K.woff) format("woff");unicode-range:U+0000-00FF,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}.monaco-aria-container{position:absolute;left:-999em}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box;background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border)}@font-face{font-family:codicon;font-display:block;src:url(./codicon-5T574S7B.ttf) format("truetype")}.codicon[class*=codicon-]{font: 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-user-select:none;user-select:none;-webkit-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.monaco-editor .codicon.codicon-symbol-array,.monaco-workbench .codicon.codicon-symbol-array{color:var(--vscode-symbolIcon-arrayForeground)}.monaco-editor .codicon.codicon-symbol-boolean,.monaco-workbench .codicon.codicon-symbol-boolean{color:var(--vscode-symbolIcon-booleanForeground)}.monaco-editor .codicon.codicon-symbol-class,.monaco-workbench .codicon.codicon-symbol-class{color:var(--vscode-symbolIcon-classForeground)}.monaco-editor .codicon.codicon-symbol-method,.monaco-workbench .codicon.codicon-symbol-method{color:var(--vscode-symbolIcon-methodForeground)}.monaco-editor .codicon.codicon-symbol-color,.monaco-workbench .codicon.codicon-symbol-color{color:var(--vscode-symbolIcon-colorForeground)}.monaco-editor .codicon.codicon-symbol-constant,.monaco-workbench .codicon.codicon-symbol-constant{color:var(--vscode-symbolIcon-constantForeground)}.monaco-editor .codicon.codicon-symbol-constructor,.monaco-workbench .codicon.codicon-symbol-constructor{color:var(--vscode-symbolIcon-constructorForeground)}.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-value,.monaco-editor .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-enum{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .codicon.codicon-symbol-enum-member,.monaco-workbench .codicon.codicon-symbol-enum-member{color:var(--vscode-symbolIcon-enumeratorMemberForeground)}.monaco-editor .codicon.codicon-symbol-event,.monaco-workbench .codicon.codicon-symbol-event{color:var(--vscode-symbolIcon-eventForeground)}.monaco-editor .codicon.codicon-symbol-field,.monaco-workbench .codicon.codicon-symbol-field{color:var(--vscode-symbolIcon-fieldForeground)}.monaco-editor .codicon.codicon-symbol-file,.monaco-workbench .codicon.codicon-symbol-file{color:var(--vscode-symbolIcon-fileForeground)}.monaco-editor .codicon.codicon-symbol-folder,.monaco-workbench .codicon.codicon-symbol-folder{color:var(--vscode-symbolIcon-folderForeground)}.monaco-editor .codicon.codicon-symbol-function,.monaco-workbench .codicon.codicon-symbol-function{color:var(--vscode-symbolIcon-functionForeground)}.monaco-editor .codicon.codicon-symbol-interface,.monaco-workbench .codicon.codicon-symbol-interface{color:var(--vscode-symbolIcon-interfaceForeground)}.monaco-editor .codicon.codicon-symbol-key,.monaco-workbench .codicon.codicon-symbol-key{color:var(--vscode-symbolIcon-keyForeground)}.monaco-editor .codicon.codicon-symbol-keyword,.monaco-workbench .codicon.codicon-symbol-keyword{color:var(--vscode-symbolIcon-keywordForeground)}.monaco-editor .codicon.codicon-symbol-module,.monaco-workbench .codicon.codicon-symbol-module{color:var(--vscode-symbolIcon-moduleForeground)}.monaco-editor .codicon.codicon-symbol-namespace,.monaco-workbench .codicon.codicon-symbol-namespace{color:var(--vscode-symbolIcon-namespaceForeground)}.monaco-editor .codicon.codicon-symbol-null,.monaco-workbench .codicon.codicon-symbol-null{color:var(--vscode-symbolIcon-nullForeground)}.monaco-editor .codicon.codicon-symbol-number,.monaco-workbench .codicon.codicon-symbol-number{color:var(--vscode-symbolIcon-numberForeground)}.monaco-editor .codicon.codicon-symbol-object,.monaco-workbench .codicon.codicon-symbol-object{color:var(--vscode-symbolIcon-objectForeground)}.monaco-editor .codicon.codicon-symbol-operator,.monaco-workbench .codicon.codicon-symbol-operator{color:var(--vscode-symbolIcon-operatorForeground)}.monaco-editor .codicon.codicon-symbol-package,.monaco-workbench .codicon.codicon-symbol-package{color:var(--vscode-symbolIcon-packageForeground)}.monaco-editor .codicon.codicon-symbol-property,.monaco-workbench .codicon.codicon-symbol-property{color:var(--vscode-symbolIcon-propertyForeground)}.monaco-editor .codicon.codicon-symbol-reference,.monaco-workbench .codicon.codicon-symbol-reference{color:var(--vscode-symbolIcon-referenceForeground)}.monaco-editor .codicon.codicon-symbol-snippet,.monaco-workbench .codicon.codicon-symbol-snippet{color:var(--vscode-symbolIcon-snippetForeground)}.monaco-editor .codicon.codicon-symbol-string,.monaco-workbench .codicon.codicon-symbol-string{color:var(--vscode-symbolIcon-stringForeground)}.monaco-editor .codicon.codicon-symbol-struct,.monaco-workbench .codicon.codicon-symbol-struct{color:var(--vscode-symbolIcon-structForeground)}.monaco-editor .codicon.codicon-symbol-text,.monaco-workbench .codicon.codicon-symbol-text{color:var(--vscode-symbolIcon-textForeground)}.monaco-editor .codicon.codicon-symbol-type-parameter,.monaco-workbench .codicon.codicon-symbol-type-parameter{color:var(--vscode-symbolIcon-typeParameterForeground)}.monaco-editor .codicon.codicon-symbol-unit,.monaco-workbench .codicon.codicon-symbol-unit{color:var(--vscode-symbolIcon-unitForeground)}.monaco-editor .codicon.codicon-symbol-variable,.monaco-workbench .codicon.codicon-symbol-variable{color:var(--vscode-symbolIcon-variableForeground)}.monaco-editor .lightBulbWidget{display:flex;align-items:center;justify-content:center}.monaco-editor .lightBulbWidget:hover{cursor:pointer}.monaco-editor .lightBulbWidget.codicon-light-bulb{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground, var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget:before{position:relative;z-index:2}.monaco-editor .lightBulbWidget:after{position:absolute;top:0;left:0;content:"";display:block;width:100%;height:100%;opacity:.3;background-color:var(--vscode-editor-background);z-index:1}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:2px 4px;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);border-radius:3px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-block:0px}.monaco-editor .monaco-editor-overlaymessage .message a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-editor-overlaymessage .message a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{width:0!important;height:0!important;border-color:transparent;border-style:solid;z-index:1000;border-width:8px;position:absolute;left:2px}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,.monaco-editor .monaco-editor-overlaymessage.below .anchor.below{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-radius:3px;border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);vertical-align:middle;padding:1px 3px}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.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{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-single,.monaco-list.selection-multiple{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:rgba(0,0,0,0);transition:opacity .1s linear;z-index:11}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.scrollbar>.slider{background:var(--vscode-scrollbarSlider-background)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-scrollable-element>.scrollbar>.slider.active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-select-box-dropdown-padding{--dropdown-padding-top: 1px;--dropdown-padding-bottom: 1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top: 3px;--dropdown-padding-bottom: 4px}.monaco-select-box-dropdown-container{display:none;box-sizing:border-box}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown *{margin:0}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{line-height:15px;font-family:var(--monaco-monospace-font)}.monaco-select-box-dropdown-container.visible{display:flex;flex-direction:column;text-align:left;width:1px;overflow:hidden;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{flex:0 0 auto;align-self:flex-start;padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;width:100%;overflow:hidden;box-sizing:border-box}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row{cursor:pointer}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left;opacity:.7}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{text-overflow:ellipsis;overflow:hidden;padding-right:10px;white-space:nowrap;float:right}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{flex:1 1 auto;align-self:flex-start;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{overflow:hidden;max-height:0px}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div>.option-text-width-control{padding-left:4px;padding-right:8px;white-space:nowrap}.monaco-select-box{width:100%;cursor:pointer;border-radius:2px}.monaco-select-box-dropdown-container{font-size:13px;font-weight:400;text-transform:none}.monaco-action-bar .action-item.select-container{cursor:default}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-width:100px;min-height:18px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{font-size:11px;border-radius:5px}.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .icon,.monaco-action-bar .action-item .codicon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{display:flex;font-size:11px;padding:3px;border-radius:5px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{opacity:.6}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{display:flex;align-items:center;cursor:default}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.action-widget{font-size:13px;min-width:160px;max-width:80vw;z-index:40;display:block;width:100%;border:1px solid var(--vscode-editorWidget-border)!important;border-radius:2px;background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground)}.context-view-block{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:-1}.context-view-pointerBlock{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:2}.action-widget .monaco-list{-moz-user-select:none;user-select:none;-webkit-user-select:none;border:none!important;border-width:0!important}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{padding:0 10px;white-space:nowrap;cursor:pointer;touch-action:none;width:100%}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){background-color:var(--vscode-quickInputList-focusBackground)!important;color:var(--vscode-quickInputList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder, transparent);outline-offset:-1px}.action-widget .monaco-list-row.group-header{color:var(--vscode-descriptionForeground)!important;font-weight:600}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled:before,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before{cursor:default!important;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:transparent!important;outline:0 solid!important}.action-widget .monaco-list-row.action{display:flex;gap:6px;align-items:center}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{flex:1;overflow:hidden;text-overflow:ellipsis}.action-widget .action-widget-action-bar{background-color:var(--vscode-editorHoverWidget-statusBarBackground);border-top:1px solid var(--vscode-editorHoverWidget-border)}.action-widget .action-widget-action-bar:before{display:block;content:"";width:100%}.action-widget .action-widget-action-bar .actions-container{padding:0 8px}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);font-size:12px;line-height:22px;padding:0;pointer-events:all}.action-widget-action-bar .action-item{margin-right:16px;pointer-events:none}.action-widget-action-bar .action-label:hover{background-color:transparent!important}.monaco-action-bar .actions-container.highlight-toggled .action-label.checked{background:var(--vscode-actionBar-toggledBackground)!important}.monaco-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize);padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault)}.monaco-editor .codelens-decoration>span,.monaco-editor .codelens-decoration>a{-moz-user-select:none;user-select:none;-webkit-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize)}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.monaco-editor.vs .dnd-target,.monaco-editor.hc-light .dnd-target{border-right:2px dotted black;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #AEAFAD;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines,.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines{cursor:default}.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines,.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines{cursor:copy}.inline-editor-progress-decoration{display:inline-block;width:1em;height:1em}.inline-progress-widget{display:flex!important;justify-content:center;align-items:center}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{font-size:90%!important;animation:none}.inline-progress-widget:hover .icon:before{content:"\ea76"}.monaco-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;border-radius:2px;text-align:center;cursor:pointer;justify-content:center;align-items:center;border:1px solid var(--vscode-button-border, transparent);line-height:18px}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled:focus,.monaco-button.disabled{opacity:.4!important;cursor:default}.monaco-text-button .codicon{margin:0 .2em;color:inherit!important}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;padding:0 4px;overflow:hidden;height:28px}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label{flex-basis:100%}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;width:0;overflow:hidden}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{display:flex;justify-content:center;align-items:center;font-weight:400;font-style:inherit;padding:4px 0}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus,.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{padding:4px 0;cursor:default}.monaco-button-dropdown .monaco-button-dropdown-separator>div{height:100%;width:1px}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{border:1px solid var(--vscode-button-border, transparent);border-left-width:0!important;border-radius:0 2px 2px 0}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{display:flex;flex-direction:column;align-items:center;margin:4px 5px}.monaco-description-button .monaco-button-description{font-style:italic;font-size:11px;padding:4px 20px}.monaco-description-button .monaco-button-label,.monaco-description-button .monaco-button-description{display:flex;justify-content:center;align-items:center}.monaco-description-button .monaco-button-label>.codicon,.monaco-description-button .monaco-button-description>.codicon{margin:0 .2em;color:inherit!important}.monaco-button.default-colors,.monaco-button-dropdown.default-colors>.monaco-button{color:var(--vscode-button-foreground);background-color:var(--vscode-button-background)}.monaco-button.default-colors:hover,.monaco-button-dropdown.default-colors>.monaco-button:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-button.default-colors.secondary,.monaco-button-dropdown.default-colors>.monaco-button.secondary{color:var(--vscode-button-secondaryForeground);background-color:var(--vscode-button-secondaryBackground)}.monaco-button.default-colors.secondary:hover,.monaco-button-dropdown.default-colors>.monaco-button.secondary:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator{background-color:var(--vscode-button-background);border-top:1px solid var(--vscode-button-border);border-bottom:1px solid var(--vscode-button-border)}.monaco-button-dropdown.default-colors .monaco-button.secondary+.monaco-button-dropdown-separator{background-color:var(--vscode-button-secondaryBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator>div{background-color:var(--vscode-button-separator)}.post-edit-widget{box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:1px solid var(--vscode-widget-border, transparent);border-radius:4px;background-color:var(--vscode-editorWidget-background);overflow:hidden}.post-edit-widget .monaco-button{padding:2px;border:none;border-radius:0}.post-edit-widget .monaco-button:hover{background-color:var(--vscode-button-secondaryHoverBackground)!important}.post-edit-widget .monaco-button .codicon{margin:0}.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:2px solid var(--vscode-contrastBorder)}.monaco-custom-toggle{margin-left:2px;float:left;cursor:pointer;overflow:hidden;width:20px;height:20px;border-radius:3px;border:1px solid transparent;padding:1px;box-sizing:border-box;-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-custom-toggle:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-toggle,.hc-light .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-custom-toggle.monaco-checkbox:not(.checked):before{visibility:hidden}:root{--vscode-sash-size: 4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;top:0;width:var(--vscode-sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--vscode-sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--vscode-sash-size) * 2);width:calc(var(--vscode-sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size) * -.5);top:calc(var(--vscode-sash-size) * -1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--vscode-sash-size) * -.5);bottom:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--vscode-sash-size) * -.5);left:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--vscode-sash-size) * -.5);right:calc(var(--vscode-sash-size) * -1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;background:transparent}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.hover:before,.monaco-sash.active:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{width:var(--vscode-sash-hover-size);left:calc(50% - (var(--vscode-sash-hover-size) / 2))}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - (var(--vscode-sash-hover-size) / 2))}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:cyan}.monaco-sash.debug.disabled{background:rgba(0,255,255,.2)}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px));border-bottom-left-radius:4px;border-bottom-right-radius:4px}.monaco-workbench.reduce-motion .monaco-editor .find-widget{transition:transform 0ms linear}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:3px 25px 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:center center;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{color:var(--vscode-disabledForeground);cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important}.monaco-editor .find-widget .monaco-sash{left:0!important}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-editor .find-widget>.button.codicon-widget-close{position:absolute;top:5px;right:4px}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;border-radius:2px;font-size:inherit}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;scrollbar-width:none;outline:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls,.hc-light .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls,.hc-light .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:rgba(253,255,0,.8)}to{background:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:rgba(253,255,0,.8)}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:rgba(255,255,255,.44)}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:rgba(255,255,255,.44)}99%{background:transparent}}.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-collapsed{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed{transition:initial}.monaco-editor .margin-view-overlays:hover .codicon,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons{opacity:1}.monaco-editor .inline-folded:after{color:gray;margin:.1em .2em 0;content:"\22ef";display:inline;line-height:1em;cursor:pointer}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text .ghost-text{font-style:italic}.monaco-editor .inline-completion-text-to-replace{text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{color:var(--vscode-editorGhostText-foreground)!important;background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border)}.monaco-editor .inlineSuggestionsHints.withBorder{z-index:39;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineSuggestionsHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineSuggestionsHints .availableSuggestionCount a{display:flex;min-width:19px;justify-content:center}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{display:inline-block;padding:0}.monaco-editor .snippet-placeholder{min-width:2px;outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetTabstopHighlightBorder, transparent)}.monaco-editor .finish-snippet-placeholder{outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder, transparent)}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column;border-radius:3px}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-widget,.monaco-editor .suggest-details{flex:0 1 auto;width:100%;border-style:solid;border-width:1px;border-color:var(--vscode-editorSuggestWidget-border);background-color:var(--vscode-editorSuggestWidget-background)}.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-light .suggest-widget,.monaco-editor.hc-light .suggest-details{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid var(--vscode-editorSuggestWidget-border);overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:initial;text-overflow:ellipsis;overflow:hidden;align-self:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-shrink:1;flex-grow:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default;color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-details.focused{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{padding:0;white-space:initial;min-height:calc(1rem + 8px)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ul,.monaco-editor .suggest-details ol{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);background-color:var(--vscode-editor-background)}.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-rangeHighlightBorder)}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-symbolHighlightBorder)}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorError-background)}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorWarning-background)}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorInfo-background)}.monaco-editor .squiggly-hint{border-bottom:2px dotted var(--vscode-editorHint-border)}.monaco-editor.showUnused .squiggly-unnecessary{border-bottom:2px dashed var(--vscode-editorUnnecessaryCode-border)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;text-decoration-color:var(--vscode-editor-foreground, inherit)}.monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent;z-index:-10}.monaco-editor .inputarea.ime-input{z-index:10;caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground)}.monaco-editor .margin-view-overlays .line-numbers{font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default;height:100%}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground)}.monaco-editor .line-numbers.active-line-number{color:var(--vscode-editorLineNumber-activeForeground)}.monaco-editor .margin{background-color:var(--vscode-editorGutter-background)}.monaco-mouse-cursor-text{cursor:text}.monaco-editor .view-overlays .current-line,.monaco-editor .margin-view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute}.monaco-editor .lines-content .core-guide{position:absolute;box-sizing:border-box}.mtkcontrol{color:#fff!important;background:rgb(150,0,0)!important}.mtkoverflow{background-color:var(--vscode-button-background, var(--vscode-editor-background));color:var(--vscode-button-foreground, var(--vscode-editor-foreground));border-width:1px;border-style:solid;border-color:var(--vscode-contrastBorder);border-radius:2px;padding:4px;cursor:pointer}.mtkoverflow:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{-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:initial;-webkit-user-select:initial}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .mtkw{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .lines-decorations{position:absolute;top:0;background:white}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .glyph-margin-widgets .cgmr{position:absolute;display:flex;align-items:center;justify-content:center}.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin:before{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover:hover .minimap-slider,.monaco-editor .minimap.slider-mouseover .minimap-slider.active{opacity:1}.monaco-editor .minimap-slider .minimap-slider-horizontal{background:var(--vscode-minimapSlider-background)}.monaco-editor .minimap-slider:hover .minimap-slider-horizontal{background:var(--vscode-minimapSlider-hoverBackground)}.monaco-editor .minimap-slider.active .minimap-slider-horizontal{background:var(--vscode-minimapSlider-activeBackground)}.monaco-editor .minimap-shadow-visible{box-shadow:var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0;box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .focused .selected-text{background-color:var(--vscode-editor-selectionBackground)}.monaco-editor .selected-text{background-color:var(--vscode-editor-inactiveSelectionBackground)}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor.hc-light .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-light .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-light .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-light .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:transparent!important}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-editor .blockDecorations-container{position:absolute;top:0;pointer-events:none}.monaco-editor .blockDecorations-block{position:absolute;box-sizing:border-box}.monaco-editor .mwh{position:absolute;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;justify-content:space-between;flex-wrap:nowrap}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:baseline;font-size:13px;margin-left:20px;min-width:0;text-overflow:ellipsis;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;text-align:right;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{margin-right:4px;align-self:center}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:initial}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:initial;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;position:relative;height:100%;width:100%;white-space:nowrap;overflow:hidden}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{width:100%;height:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}.monaco-table-th,.monaco-table-td{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--vscode-sash-size) / 2);width:0;border-left:1px solid transparent}.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2,.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-twistie,.monaco-tl-contents{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translate(3px)}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.monaco-tree-type-filter{position:absolute;top:0;display:flex;padding:3px;max-width:200px;z-index:100;margin:0 6px;border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px}.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter{transition:top .3s}.monaco-tree-type-filter.disabled{top:-40px!important}.monaco-tree-type-filter-grab{display:flex!important;align-items:center;justify-content:center;cursor:grab;margin-right:2px}.monaco-tree-type-filter-grab.grabbing{cursor:grabbing}.monaco-tree-type-filter-input{flex:1}.monaco-tree-type-filter-input .monaco-inputbox{height:23px}.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.input,.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.mirror{padding:2px 4px}.monaco-tree-type-filter-input .monaco-findInput>.controls{top:2px}.monaco-tree-type-filter-actionbar{margin-left:4px}.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label{padding:2px}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px;background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground)}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%;color:var(--vscode-peekViewResult-fileForeground)}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-right:12px;margin-left:auto}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{background-color:var(--vscode-peekViewResult-matchHighlightBackground)}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder, transparent);box-sizing:border-box}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;-moz-user-select:text;user-select:text;-webkit-user-select:text;padding:8px 12px 0 20px}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-foreground);color:var(--vscode-textLink-activeForeground)}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer}.monaco-editor .zone-widget .codicon.codicon-error,.markers-panel .marker-icon.error,.markers-panel .marker-icon .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.extension-editor .codicon.codicon-error,.preferences-editor .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-warning,.markers-panel .marker-icon.warning,.markers-panel .marker-icon .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.extension-editor .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-info,.markers-panel .marker-icon.info,.markers-panel .marker-icon .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.extension-editor .codicon.codicon-info,.preferences-editor .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}.monaco-hover{cursor:default;position:absolute;overflow:hidden;-moz-user-select:text;user-select:text;-webkit-user-select:text;box-sizing:border-box;animation:fadein .1s linear;line-height:1.5em;white-space:var(--vscode-hover-whiteSpace, normal)}.monaco-hover.hidden{display:none}.monaco-hover a:hover:not(.disabled){cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:var(--vscode-hover-maxWidth, 500px);word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover p,.monaco-hover .code,.monaco-hover ul,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{margin:8px 0}.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{line-height:1.1}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0px;border-right:0px;margin:4px -8px -4px;height:1px}.monaco-hover p:first-child,.monaco-hover .code:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover p:last-child,.monaco-hover .code:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ul,.monaco-hover ol{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:var(--vscode-hover-sourceWhiteSpace, pre-wrap)}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .info{font-style:italic;padding:0 8px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px}.monaco-hover .hover-row.status-bar .actions .action-container{margin-right:16px;cursor:pointer}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link:hover,.monaco-hover .hover-contents a.code-link{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-foreground)}.monaco-hover .hover-contents a.code-link>span:hover{color:var(--vscode-textLink-activeForeground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container a{-webkit-user-select:none;-moz-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-hover{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px}.monaco-editor .monaco-hover a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .monaco-hover .hover-row .actions{background-color:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-editor .monaco-hover code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.monaco-editor .linked-editing-decoration{background-color:var(--vscode-editor-linkedEditingBackground);min-width:1px}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-selectionHighlightBorder)}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightBorder)}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightStrongBorder)}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightTextBorder)}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .parameter-hints-widget{z-index:39;display:flex;flex-direction:column;line-height:1.5em;cursor:default;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{content:"";display:block;height:100%;position:absolute;opacity:.5;border-left:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .monaco-scrollable-element,.monaco-editor .parameter-hints-widget .body{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px;position:relative}.monaco-editor .parameter-hints-widget .signature.has-docs:after{content:"";display:block;position:absolute;left:0;width:100%;padding-top:4px;opacity:.5;border-bottom:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs a{color:var(--vscode-textLink-foreground)}.monaco-editor .parameter-hints-widget .docs a:hover{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:initial}.monaco-editor .parameter-hints-widget .docs code{font-family:var(--monaco-monospace-font);border-radius:3px;padding:0 .4em;background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source,.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .signature .parameter.active{color:var(--vscode-editorHoverWidget-highlightForeground);font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .rename-box{z-index:100;color:inherit;border-radius:4px}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input{padding:3px;border-radius:2px}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .sticky-widget{overflow:hidden}.monaco-editor .sticky-widget-line-numbers{float:left;background-color:inherit}.monaco-editor .sticky-widget-lines-scrollable{display:inline-block;position:absolute;overflow:hidden;width:var(--vscode-editorStickyScroll-scrollableWidth);background-color:inherit}.monaco-editor .sticky-widget-lines{position:absolute;background-color:inherit}.monaco-editor .sticky-line-number,.monaco-editor .sticky-line-content{color:var(--vscode-editorLineNumber-foreground);white-space:nowrap;display:inline-block;position:absolute;background-color:inherit}.monaco-editor .sticky-line-number .codicon{float:right;transition:var(--vscode-editorStickyScroll-foldingOpacityTransition)}.monaco-editor .sticky-line-content{width:var(--vscode-editorStickyScroll-scrollableWidth);background-color:inherit;white-space:nowrap}.monaco-editor .sticky-line-number-inner{display:block;text-align:right}.monaco-editor.hc-black .sticky-widget,.monaco-editor.hc-light .sticky-widget{border-bottom:1px solid var(--vscode-contrastBorder)}.monaco-editor .sticky-line-content:hover{background-color:var(--vscode-editorStickyScrollHover-background);cursor:pointer}.monaco-editor .sticky-widget{width:100%;box-shadow:var(--vscode-scrollbar-shadow) 0 3px 2px -2px;z-index:4;background-color:var(--vscode-editorStickyScroll-background)}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .unicode-highlight{border:1px solid var(--vscode-editorUnicodeHighlight-border);background-color:var(--vscode-editorUnicodeHighlight-background);box-sizing:border-box}.editor-banner{box-sizing:border-box;cursor:default;width:100%;font-size:12px;display:flex;overflow:visible;height:26px;background:var(--vscode-banner-background)}.editor-banner .icon-container{display:flex;flex-shrink:0;align-items:center;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-repeat:no-repeat;background-position:center center;background-size:16px;width:16px;padding:0;margin:0 6px 0 10px}.editor-banner .message-container{display:flex;align-items:center;line-height:26px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-banner .message-container p{margin-block-start:0;margin-block-end:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;line-height:26px;margin:0 4px}.editor-banner .message-actions-container a.monaco-button{width:inherit;margin:2px 8px;padding:0 12px}.editor-banner .message-actions-container a{padding:3px;margin-left:12px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-link{color:var(--vscode-textLink-foreground)}.monaco-link:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .tokens-inspect-widget{z-index:50;-moz-user-select:text;user-select:text;-webkit-user-select:text;padding:10px;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor.hc-black .tokens-inspect-widget,.monaco-editor.hc-light .tokens-inspect-widget{border-width:2px}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{height:1px;border:0;background-color:var(--vscode-editorHoverWidget-border)}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace}.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%)}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.monaco-diff-editor.vs-dark .diffOverview{background:rgba(255,255,255,.01)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:rgba(0,0,0,0)}.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:rgba(171,171,171,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active{background:none}.monaco-editor .insert-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-diff-editor .delete-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-editor.hc-black .insert-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .delete-sign,.monaco-editor.hc-light .insert-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .delete-sign{opacity:1}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .inline-added-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{z-index:10;position:absolute}.monaco-editor .arrow-revert-change:hover{cursor:pointer}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-editor .char-insert,.monaco-diff-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .line-insert,.monaco-diff-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground, var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .line-insert,.monaco-editor .char-insert{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-insertedTextBorder)}.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .line-insert,.monaco-editor.hc-black .char-insert,.monaco-editor.hc-light .char-insert{border-style:dashed}.monaco-editor .line-delete,.monaco-editor .char-delete{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-removedTextBorder)}.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .line-delete,.monaco-editor.hc-black .char-delete,.monaco-editor.hc-light .char-delete{border-style:dashed}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .gutter-insert,.monaco-diff-editor .gutter-insert{background-color:var(--vscode-diffEditorGutter-insertedLineBackground, var(--vscode-diffEditor-insertedLineBackground), var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .char-delete,.monaco-diff-editor .char-delete{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-editor .line-delete,.monaco-diff-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground, var(--vscode-diffEditor-removedTextBackground))}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .gutter-delete,.monaco-diff-editor .gutter-delete{background-color:var(--vscode-diffEditorGutter-removedLineBackground, var(--vscode-diffEditor-removedLineBackground), var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor.side-by-side .editor.modified{box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow);border-left:1px solid var(--vscode-diffEditor-border)}.monaco-diff-editor .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-diff-editor .diff-review-line-number{text-align:right;display:inline-block;color:var(--vscode-editorLineNumber-foreground)}.monaco-diff-editor .diff-review{position:absolute;-moz-user-select:none;user-select:none;-webkit-user-select:none;z-index:99}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{position:absolute;box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px;z-index:100}.monaco-diff-editor .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}.context-view{position:absolute}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;color:inherit}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border:solid 1px rgba(204,204,204,.4);border-bottom-color:#bbb6;box-shadow:inset 0 -1px #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px rgb(111,195,223);box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px #0F4A85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:solid 1px rgba(51,51,51,.6);border-bottom-color:#4449;box-shadow:inset 0 -1px #4449;color:#ccc}.monaco-progress-container{width:100%;height:5px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;transform:translateZ(0);animation-timing-function:linear}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translate(0) scaleX(1)}50%{transform:translate(2500%) scaleX(3)}to{transform:translate(4900%) scaleX(1)}}.quick-input-widget{position:absolute;width:600px;z-index:2550;left:50%;margin-left:-300px;-webkit-app-region:no-drag;border-radius:6px}.quick-input-titlebar{display:flex;align-items:center;border-top-left-radius:5px;border-top-right-radius:5px}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:center;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px 6px 6px 11px}.quick-input-header .quick-input-description{margin:4px 2px;flex:1}.quick-input-header{display:flex;padding:8px 6px 6px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:25px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px;overflow-wrap:break-word}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-message a{color:inherit}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-progress.monaco-progress-container,.quick-input-progress.monaco-progress-container .progress-bit{height:2px}.quick-input-list{line-height:22px}.quick-input-widget.hidden-input .quick-input-list{margin-top:4px;padding-bottom:4px}.quick-input-list .monaco-list{overflow:hidden;max-height:440px;padding-bottom:5px}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .monaco-list-row{border-radius:3px}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-icon{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;display:flex;align-items:center;justify-content:center}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:flex;align-items:center}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label>span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-highlighted-label .highlight{font-weight:700}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px;margin-right:4px}.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.quick-input-list .quick-input-list-separator-as-item{font-weight:600;font-size:12px}.monaco-editor .diff-hidden-lines-widget{width:100%}.monaco-editor .diff-hidden-lines{height:0px;transform:translateY(-10px);font-size:13px;line-height:14px}.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover,.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,.monaco-editor .diff-hidden-lines .top.dragging,.monaco-editor .diff-hidden-lines .bottom.dragging{background-color:var(--vscode-focusBorder)}.monaco-editor .diff-hidden-lines .top,.monaco-editor .diff-hidden-lines .bottom{transition:background-color .1s ease-out;height:4px;background-color:transparent;background-clip:padding-box;border-bottom:2px solid transparent;border-top:4px solid transparent;cursor:ns-resize}.monaco-editor .diff-hidden-lines .top{transform:translateY(4px)}.monaco-editor .diff-hidden-lines .bottom{transform:translateY(-6px)}.monaco-editor .diff-unchanged-lines{background:var(--vscode-diffEditor-unchangedCodeBackground)}.monaco-editor .noModificationsOverlay{z-index:1;background:var(--vscode-editor-background);display:flex;justify-content:center;align-items:center}.monaco-editor .diff-hidden-lines .center{background:var(--vscode-diffEditor-unchangedRegionBackground);color:var(--vscode-diffEditor-unchangedRegionForeground);overflow:hidden;display:block;text-overflow:ellipsis;white-space:nowrap;height:24px}.monaco-editor .diff-hidden-lines .center span.codicon{vertical-align:middle}.monaco-editor .diff-hidden-lines .center a:hover .codicon{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .diff-hidden-lines div.breadcrumb-item{cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item:hover{color:var(--vscode-editorLink-activeForeground)}.monaco-editor .movedOriginal,.monaco-editor .movedModified{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-editor .movedOriginal.currentMove,.monaco-editor .movedModified.currentMove{border:2px solid var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path.currentMove{stroke:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path{pointer-events:visiblestroke}.monaco-diff-editor .moved-blocks-lines .arrow{fill:var(--vscode-diffEditor-move-border)}.monaco-diff-editor .moved-blocks-lines .arrow.currentMove{fill:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines .arrow-rectangle{fill:var(--vscode-editor-background)}.monaco-diff-editor .moved-blocks-lines{position:absolute;pointer-events:none}.monaco-diff-editor .moved-blocks-lines path{fill:none;stroke:var(--vscode-diffEditor-move-border);stroke-width:2}.monaco-editor .char-delete.diff-range-empty{margin-left:-1px;border-left:solid var(--vscode-diffEditor-removedTextBackground) 3px}.monaco-editor .char-insert.diff-range-empty{border-left:solid var(--vscode-diffEditor-insertedTextBackground) 3px}.monaco-editor .fold-unchanged{cursor:pointer}.monaco-diff-editor .diff-moved-code-block{display:flex;justify-content:flex-end;margin-top:-4px}.monaco-diff-editor .diff-moved-code-block .action-bar .action-label.codicon{width:12px;height:12px;font-size:12px}.colorpicker-widget{height:190px;-moz-user-select:none;user-select:none;-webkit-user-select:none}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{border:solid .1em #000;box-sizing:border-box;margin:.1em .2em 0;width:.8em;height:.8em;line-height:.8em;display:inline-block;cursor:pointer}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:solid .1em #eee}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:240px;display:flex;align-items:center;justify-content:center;line-height:24px;cursor:pointer;color:#fff;flex:1;white-space:nowrap;overflow:hidden}.colorpicker-header .picked-color .picked-color-presentation{white-space:nowrap;margin-left:5px;margin-right:5px}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.standalone-colorpicker{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{cursor:pointer;background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header .close-button-inner-div{width:100%;height:100%;text-align:center}.colorpicker-header .close-button-inner-div:hover{background-color:var(--vscode-toolbar-hoverBackground)}.colorpicker-header .close-icon{padding:3px}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid rgb(255,255,255);border-radius:100%;box-shadow:0 0 2px #000c;position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .standalone-strip{width:25px;height:122px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(to bottom,#ff0000 0%,#ffff00 17%,#00ff00 33%,#00ffff 50%,#0000ff 67%,#ff00ff 83%,#ff0000 100%)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid rgba(255,255,255,.71);box-shadow:0 0 1px #000000d9}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.colorpicker-body .standalone-strip .standalone-overlay{height:122px;pointer-events:none}.standalone-colorpicker-body{display:block;border:1px solid transparent;border-bottom:1px solid var(--vscode-editorHoverWidget-border);overflow:hidden}.colorpicker-body .insert-button{position:absolute;height:20px;width:58px;padding:0;right:8px;bottom:8px;background:var(--vscode-button-background);color:var(--vscode-button-foreground);border-radius:2px;border:none;cursor:pointer}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #F6F6F6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #252526} diff --git a/static/assets/app.js b/static/assets/app.js index 373c1bae4..9966bd36d 100644 --- a/static/assets/app.js +++ b/static/assets/app.js @@ -1,15 +1,15 @@ -import{b as kne}from"./chunk-JY7ZYBHV.js";import{a as Zh}from"./chunk-BZUL2CAN.js";import{$ as gi,$a as Ie,$b as Me,$c as AP,$d as KP,$e as nO,$f as DO,$g as Dre,$h as uF,$i as kF,$j as WF,$k as ry,$l as Ms,A as ci,Aa as Zi,Ab as qi,Ac as Ar,Ad as X3,Ae as zi,Af as pO,Ag as zO,Ah as ga,Ai as yl,Aj as Pi,Ak as ZF,Al as _z,B as Je,Ba as Kn,Bb as of,Bc as SP,Bd as lf,Be as ki,Bf as g_,Bg as Ym,Bh as iF,Bi as uk,Bj as V_,Bk as Zre,Bl as xu,C as M3,Ca as Mm,Cb as z3,Cc as lre,Cd as Q3,Ce as Jt,Cf as gl,Cg as BO,Ch as yu,Ci as hk,Cj as Sl,Ck as Sk,Cl as xa,D as W9,Da as aP,Db as mP,Dc as q3,Dd as Ot,De as Vc,Df as b_,Dg as HO,Dh as ig,Di as _F,Dj as Sf,Dk as Jre,Dl as ug,E as ei,Ea as lP,Eb as B3,Ec as cre,Ed as Hr,Ee as Do,Ef as mO,Eg as Tre,Eh as Nre,Ei as yF,Ej as Kre,Ek as ty,El as cne,F as V9,Fa as cP,Fb as H3,Fc as kP,Fd as r_,Fe as hf,Ff as gO,Fg as w_,Fh as wf,Fi as wF,Fj as kl,Fk as JF,Fl as yz,G as q9,Ga as O3,Gb as zc,Gc as dre,Gd as mre,Ge as ml,Gf as bO,Gg as Ire,Gh as Ri,Gi as O_,Gj as q_,Gk as ez,Gl as dne,H as K9,Ha as bi,Hb as gP,Hc as ul,Hd as jc,He as u_,Hf as vO,Hg as Xm,Hh as Mo,Hi as Lr,Hj as vk,Hk as ene,Hl as une,I as Bv,Ia as cu,Ib as bP,Ic as EP,Id as gre,Ie as aa,If as jm,Ig as pa,Ih as rF,Ii as fk,Ij as OF,Ik as kk,Il as wz,J as Hv,Ja as xs,Jb as vP,Jc as Qv,Jd as Z3,Je as ui,Jf as _O,Jg as UO,Jh as ba,Ji as og,Jj as K_,Jk as Ek,Jl as xz,K as N3,Ka as Te,Kb as _P,Kc as Zv,Kd as mu,Ke as tO,Kf as Wm,Kg as Is,Kh as vl,Ki as F_,Kj as _k,Kk as Tk,Kl as Cz,L as Am,La as du,Lb as $v,Lc as Jv,Ld as n_,Le as h_,Lf as ha,Lg as Qm,Lh as $c,Li as va,Lj as FF,Lk as tne,Ll as Sz,M as $9,Ma as Ae,Mb as yP,Mc as ure,Md as BP,Me as f_,Mf as bl,Mg as jO,Mh as Kt,Mi as z_,Mj as $re,Mk as tz,Ml as hne,N as Bt,Na as dP,Nb as Gv,Nc as fu,Nd as o_,Ne as Mn,Nf as yO,Ng as WO,Nh as jr,Ni as Yn,Nj as zF,Nk as iz,Nl as fne,O as Nc,Oa as un,Ob as U3,Oc as K3,Od as bre,Oe as iO,Of as vu,Og as VO,Oh as nF,Oi as B_,Oj as yk,Ok as rz,Ol as pne,P as G9,Pa as Br,Pb as Ni,Pc as Uc,Pd as O,Pe as jt,Pf as wO,Pg as vf,Ph as I_,Pi as wu,Pj as BF,Pk as ine,Pl as mne,Q as zr,Qa as uP,Qb as fe,Qc as hre,Qd as ti,Qe as rO,Qf as tk,Qg as qO,Qh as oF,Qi as xF,Qj as HF,Qk as iy,Ql as gne,R as Rc,Ra as Kv,Rb as ht,Rc as sf,Rd as cf,Re as ff,Rf as xO,Rg as sk,Rh as sF,Ri as nn,Rj as Gre,Rk as nz,Rl as bne,S as En,Sa as Ht,Sb as it,Sc as Om,Sd as s_,Se as ek,Sf as CO,Sg as _f,Sh as Rre,Si as wl,Sj as on,Sk as oz,Sl as vne,T as Y9,Ta as ar,Tb as wt,Tc as TP,Td as HP,Te as Gn,Tf as SO,Tg as fn,Th as aF,Ti as H_,Tj as wk,Tk as sz,Tl as _ne,U as Pc,Ua as uu,Ub as wP,Uc as Fm,Ud as sa,Ue as la,Uf as kO,Ug as KO,Uh as lF,Ui as CF,Uj as ya,Uk as rne,Ul as yne,V as Uv,Va as Io,Vb as are,Vc as IP,Vd as df,Ve as bu,Vf as EO,Vg as $O,Vh as cF,Vi as SF,Vj as sg,Vk as Ik,Vl as wne,W as Lm,Wa as Ke,Wb as Jr,Wc as zm,Wd as UP,We as qc,Wf as TO,Wg as GO,Wh as A_,Wi as Bre,Wj as No,Wk as az,Wl as xne,X as X9,Xa as Qr,Xb as dl,Xc as fre,Xd as jP,Xe as Ts,Xf as IO,Xg as Are,Xh as dF,Xi as lr,Xj as xk,Xk as nne,Xl as Cne,Y as jv,Ya as Ut,Yb as Ao,Yc as ks,Yd as WP,Ye as Hm,Yf as ik,Yg as YO,Yh as xf,Yi as Ds,Yj as UF,Yk as cg,Yl as Sne,Z as Q9,Za as ai,Zb as j3,Zc as pu,Zd as VP,Ze as vt,Zf as AO,Zg as Lre,Zh as ck,Zi as ii,Zj as jF,Zk as Ak,Zl as Cu,_ as Tn,_a as In,_b as xP,_c as e_,_d as qP,_e as ca,_f as LO,_g as XO,_h as L_,_i as _a,_j as pn,_k as lz,_l as Ca,a as b,aa as ll,ab as di,ac as Ss,ad as $3,ae as gu,af as yre,ag as MO,ah as ak,ai as hF,aj as Hre,ak as $_,al as Lk,am as Ns,b as He,ba as R3,bb as Di,bc as Zo,bd as hn,be as fl,bf as oO,bg as NO,bh as yf,bi as Pre,bj as xl,bk as El,bl as Dk,c as ft,ca as sre,cb as Xo,cc as Pm,cd as G3,ce as a_,cf as pf,cg as RO,ch as mt,ci as tr,cj as pk,ck as VF,cl as Mk,d as Xt,da as Wv,db as Cr,dc as na,dd as LP,de as l_,df as wre,dg as PO,dh as Ur,di as is,dj as EF,dk as qF,dl as cz,e as Yo,ea as Z9,eb as ra,ec as Jo,ed as Ki,ee as $P,ef as sO,eg as OO,eh as x_,ei as D_,ej as TF,ek as KF,el as dz,f as Pv,fa as Vv,fb as Qo,fc as Si,fd as DP,fe as pl,ff as xre,fg as fa,fh as Mre,fi as Ore,fj as mk,fk as wa,fl as uz,g as ko,ga as J9,gb as Cs,gc as Ji,gd as MP,ge as GP,gf as mf,gg as Vm,gh as lk,gi as fF,gj as IF,gk as ag,gl as one,h as Im,ha as eP,hb as Nm,hc as Ln,hd as t_,he as vre,hf as Cre,hg as qm,hh as QO,hi as Fre,hj as U_,hk as $F,hl as hz,i as qt,ia as ef,ib as tf,ic as Bc,id as NP,ie as YP,if as aO,ig as Km,ih as ZO,ii as dk,ij as Yc,ik as G_,il as sne,j as Ov,ja as qv,jb as Fc,jc as Hc,jd as RP,je as _re,jf as Sre,jg as $m,jh as JO,ji as zre,jj as j_,jk as Y_,jl as ny,k as H9,ka as tP,kb as pt,kc as Yv,kd as PP,ke as XP,kf as lO,kg as FO,kh as As,ki as _l,kj as AF,kk as GF,kl as fz,l as kn,la as yt,lb as Zr,lc as Xv,ld as OP,le as J3,lf as kre,lg as v_,lh as Zm,li as M_,lj as Ure,lk as Ck,ll as dg,m as Jh,ma as Ir,mb as _t,mc as Fi,md as mi,me as c_,mf as cO,mg as gf,mh as eF,mi as pF,mj as W_,mk as Yre,ml as pz,n as Fv,na as Eo,nb as An,nc as de,nd as FP,ne as QP,nf as Ere,ng as rk,nh as C_,ni as Cf,nj as LF,nk as kf,nl as Nk,o as ji,oa as Dm,ob as _i,oc as W3,od as pre,oe as Dn,of as da,og as Gm,oh as ma,oi as N_,oj as DF,ok as lg,ol as ane,p as D3,pa as qn,pb as Dt,pc as oa,pd as i_,pe as ZP,pf as je,pg as Nn,ph as S_,pi as R_,pj as MF,pk as X_,pl as mz,q as ri,qa as iP,qb as Vi,qc as $n,qd as zP,qe as uf,qf as ze,qg as __,qh as Jm,qi as mF,qj as NF,qk as Q_,ql as lne,r as ae,ra as Lt,rb as rf,rc as We,rd as Mt,re as JP,rf as dO,rg as tn,rh as eg,ri as rg,rj as jre,rk as Z_,rl as Ef,s as ce,sa as To,sb as F3,sc as ee,sd as Sr,se as eO,sf as Um,sg as _u,sh as k_,si as gF,sj as gk,sk as YF,sl as Rk,t as Wi,ta as rP,tb as hP,tc as V3,td as er,te as Bm,tf as uO,tg as nk,th as tF,ti as Ls,tj as Cl,tk as J_,tl as oy,u as U9,ua as P3,ub as nf,uc as CP,ud as es,ue as Lo,uf as ts,ug as ok,uh as Kc,ui as ng,uj as bk,uk as XF,ul as gz,v as ke,va as nP,vb as cl,vc as Ue,vd as en,ve as $i,vf as ua,vg as br,vh as E_,vi as bF,vj as RF,vk as Xre,vl as bz,w as zv,wa as Oc,wb as fP,wc as lt,wd as hl,we as Wc,wf as p_,wg as Ei,wh as tg,wi as P_,wj as Wre,wk as QF,wl as Pk,x as j9,xa as Qt,xb as pP,xc as B,xd as gr,xe as d_,xf as m_,xg as bf,xh as Se,xi as vF,xj as Vre,xk as Qre,xl as vz,y as mr,ya as oP,yb as hu,yc as et,yd as Y3,ye as Es,yf as hO,yg as rn,yh as Pt,yi as Gc,yj as PF,yk as Tl,yl as Ok,z as al,za as sP,zb as Rm,zc as Qe,zd as af,ze as st,zf as fO,zg as y_,zh as T_,zi as rs,zj as qre,zk as ey,zl as sy}from"./chunk-23JDWT7I.js";import{a as ue,b as xt,c as lu,d as ao,e as M,f as Qi,g as Xh,h as Vn,i as Qh,j as xr,k as B9}from"./chunk-EP6THQJ3.js";var DB=Qi((qSe,LB)=>{"use strict";var Ly=Object.prototype.hasOwnProperty,AB=Object.prototype.toString,CB=Object.defineProperty,SB=Object.getOwnPropertyDescriptor,kB=function(e){return typeof Array.isArray=="function"?Array.isArray(e):AB.call(e)==="[object Array]"},EB=function(e){if(!e||AB.call(e)!=="[object Object]")return!1;var t=Ly.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ly.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;var n;for(n in e);return typeof n=="undefined"||Ly.call(e,n)},TB=function(e,t){CB&&t.name==="__proto__"?CB(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},IB=function(e,t){if(t==="__proto__")if(Ly.call(e,t)){if(SB)return SB(e,t).value}else return;return e[t]};LB.exports=function i(){var e,t,r,n,o,s,a=arguments[0],l=1,c=arguments.length,d=!1;for(typeof a=="boolean"&&(d=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l{});var hq=M(()=>{uq()});var Hme,Ume,yx,uT,wx,Zl,hT,fT,pT,mT,gT=M(()=>{Io();Es();ll();hq();lt();Ar();ti();He();wt();Hme=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ume=function(i,e){return function(t,r){e(t,r,i)}},yx=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},wx=new ht("selectionAnchorSet",!1),Zl=uT=class{static get(e){return e.getContribution(uT.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=wx.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){let e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(Qe.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new $i().appendText(b("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),ar(b("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){let t=this.editor.getPosition();this.editor.setSelection(Qe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){let e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};Zl.ID="editor.contrib.selectionAnchorController";Zl=uT=Hme([Ume(1,it)],Zl);hT=class extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:b("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2080),weight:100}})}run(e,t){var r;return yx(this,void 0,void 0,function*(){(r=Zl.get(t))===null||r===void 0||r.setSelectionAnchor()})}},fT=class extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:b("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:wx})}run(e,t){var r;return yx(this,void 0,void 0,function*(){(r=Zl.get(t))===null||r===void 0||r.goToSelectionAnchor()})}},pT=class extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:b("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:wx,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2089),weight:100}})}run(e,t){var r;return yx(this,void 0,void 0,function*(){(r=Zl.get(t))===null||r===void 0||r.selectFromAnchorToCursor()})}},mT=class extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:b("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:wx,kbOpts:{kbExpr:O.editorTextFocus,primary:9,weight:100}})}run(e,t){var r;return yx(this,void 0,void 0,function*(){(r=Zl.get(t))===null||r===void 0||r.cancelSelectionAnchor()})}};Ue(Zl.ID,Zl,4);ee(hT);ee(fT);ee(pT);ee(mT)});var fq=M(()=>{});var pq=M(()=>{fq()});var jme,bT,vT,_T,yT,Ba,wT=M(()=>{jt();ke();pq();lt();di();et();Ar();ti();qc();Ur();He();Ji();tn();rn();jme=je("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},b("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),bT=class extends de{constructor(){super({id:"editor.action.jumpToBracket",label:b("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:3165,weight:100}})}run(e,t){var r;(r=Ba.get(t))===null||r===void 0||r.jumpToBracket()}},vT=class extends de{constructor(){super({id:"editor.action.selectToBracket",label:b("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,r){var n;let o=!0;r&&r.selectBrackets===!1&&(o=!1),(n=Ba.get(t))===null||n===void 0||n.selectToBracket(o)}},_T=class extends de{constructor(){super({id:"editor.action.removeBrackets",label:b("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:2561,weight:100}})}run(e,t){var r;(r=Ba.get(t))===null||r===void 0||r.removeBrackets(this.id)}},yT=class{constructor(e,t,r){this.position=e,this.brackets=t,this.options=r}},Ba=class i extends ce{static get(e){return e.getContribution(i.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new ui(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(70),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(70)&&(this._matchBrackets=this._editor.getOption(70),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;let e=this._editor.getModel(),t=this._editor.getSelections().map(r=>{let n=r.getStartPosition(),o=e.bracketPairs.matchBracket(n),s=null;if(o)o[0].containsPosition(n)&&!o[1].containsPosition(n)?s=o[1].getStartPosition():o[1].containsPosition(n)&&(s=o[0].getStartPosition());else{let a=e.bracketPairs.findEnclosingBrackets(n);if(a)s=a[1].getStartPosition();else{let l=e.bracketPairs.findNextBracket(n);l&&l.range&&(s=l.range.getStartPosition())}}return s?new Qe(s.lineNumber,s.column,s.lineNumber,s.column):new Qe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),r=[];this._editor.getSelections().forEach(n=>{let o=n.getStartPosition(),s=t.bracketPairs.matchBracket(o);if(!s&&(s=t.bracketPairs.findEnclosingBrackets(o),!s)){let c=t.bracketPairs.findNextBracket(o);c&&c.range&&(s=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(s){s.sort(B.compareRangesUsingStarts);let[c,d]=s;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(o)){let u=a;a=l,l=u}}a&&l&&r.push(new Qe(a.lineNumber,a.column,l.lineNumber,l.column))}),r.length>0&&(this._editor.setSelections(r),this._editor.revealRange(r[0]))}removeBrackets(e){if(!this._editor.hasModel())return;let t=this._editor.getModel();this._editor.getSelections().forEach(r=>{let n=r.getPosition(),o=t.bracketPairs.matchBracket(n);o||(o=t.bracketPairs.findEnclosingBrackets(n)),o&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:o[0],text:""},{range:o[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();let e=[],t=0;for(let r of this._lastBracketsData){let n=r.brackets;n&&(e[t++]={range:n[0],options:r.options},e[t++]={range:n[1],options:r.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}let e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}let t=this._editor.getModel(),r=t.getVersionId(),n=[];this._lastVersionId===r&&(n=this._lastBracketsData);let o=[],s=0;for(let u=0,h=e.length;u1&&o.sort(Ie.compare);let a=[],l=0,c=0,d=n.length;for(let u=0,h=o.length;u{et();Ar();xx=class{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;let r=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(r)))if(this._isMovingLeft){let s=new B(r,n-1,r,n),a=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new B(r,o,r,o),a)}else{let s=new B(r,o,r,o+1),a=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new B(r,n,r,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new Qe(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new Qe(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}});var Cx,xT,CT,ST=M(()=>{lt();ti();mq();He();Cx=class extends de{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let r=[],n=t.getSelections();for(let o of n)r.push(new xx(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}},xT=class extends Cx{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:b("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:O.writable})}},CT=class extends Cx{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:b("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:O.writable})}};ee(xT);ee(CT)});var kT,ET=M(()=>{lt();Zv();ure();et();ti();He();kT=class extends de{constructor(){super({id:"editor.action.transposeLetters",label:b("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let r=t.getModel(),n=[],o=t.getSelections();for(let s of o){if(!s.isEmpty())continue;let a=s.startLineNumber,l=s.startColumn,c=r.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;let d=l===c?s.getPosition():Jv.rightPosition(r,s.getPosition().lineNumber,s.getPosition().column),u=Jv.leftPosition(r,d),h=Jv.leftPosition(r,u),f=r.getValueInRange(B.fromPositions(h,u)),m=r.getValueInRange(B.fromPositions(u,d)),g=B.fromPositions(h,d);n.push(new ul(g,m+f))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}};ee(kT)});function AT(i){return i.register(),i}function bq(i,e){i&&(i.addImplementation(1e4,"code-editor",(t,r)=>{let n=t.get(ai).getFocusedCodeEditor();if(n&&n.hasTextFocus()){let o=n.getOption(36),s=n.getSelection();return s&&s.isEmpty()&&!o||document.execCommand(e),!0}return!1}),i.addImplementation(0,"generic-dom",(t,r)=>(document.execCommand(e),!0)))}var Wme,qu,Vme,gq,qme,Kme,$me,TT,IT,LT=M(()=>{K9();Tn();JO();lt();In();ti();He();Ji();Zm();wt();Wme=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},qu="9_cutcopypaste",Vme=Pc||document.queryCommandSupported("cut"),gq=Pc||document.queryCommandSupported("copy"),qme=typeof navigator.clipboard=="undefined"||q9?document.queryCommandSupported("paste"):!0;Kme=Vme?AT(new Xv({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:Pc?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:Me.MenubarEditMenu,group:"2_ccp",title:b({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:Me.EditorContext,group:qu,title:b("actions.clipboard.cutLabel","Cut"),when:O.writable,order:1},{menuId:Me.CommandPalette,group:"",title:b("actions.clipboard.cutLabel","Cut"),order:1},{menuId:Me.SimpleEditorContext,group:qu,title:b("actions.clipboard.cutLabel","Cut"),when:O.writable,order:1}]})):void 0,$me=gq?AT(new Xv({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:Pc?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:Me.MenubarEditMenu,group:"2_ccp",title:b({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:Me.EditorContext,group:qu,title:b("actions.clipboard.copyLabel","Copy"),order:2},{menuId:Me.CommandPalette,group:"",title:b("actions.clipboard.copyLabel","Copy"),order:1},{menuId:Me.SimpleEditorContext,group:qu,title:b("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Zo.appendMenuItem(Me.MenubarEditMenu,{submenu:Me.MenubarCopy,title:{value:b("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Zo.appendMenuItem(Me.EditorContext,{submenu:Me.EditorContextCopy,title:{value:b("copy as","Copy As"),original:"Copy As"},group:qu,order:3});Zo.appendMenuItem(Me.EditorContext,{submenu:Me.EditorContextShare,title:{value:b("share","Share"),original:"Share"},group:"11_share",order:-1,when:fe.and(fe.notEquals("resourceScheme","output"),O.editorTextFocus)});Zo.appendMenuItem(Me.EditorTitleContext,{submenu:Me.EditorTitleContextShare,title:{value:b("share","Share"),original:"Share"},group:"11_share",order:-1});Zo.appendMenuItem(Me.ExplorerContext,{submenu:Me.ExplorerContextShare,title:{value:b("share","Share"),original:"Share"},group:"11_share",order:-1});TT=qme?AT(new Xv({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:Pc?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:Me.MenubarEditMenu,group:"2_ccp",title:b({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:Me.EditorContext,group:qu,title:b("actions.clipboard.pasteLabel","Paste"),when:O.writable,order:4},{menuId:Me.CommandPalette,group:"",title:b("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:Me.SimpleEditorContext,group:qu,title:b("actions.clipboard.pasteLabel","Paste"),when:O.writable,order:4}]})):void 0,IT=class extends de{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:b("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(36)&&t.getSelection().isEmpty()||(lk.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),lk.forceCopyWithSyntaxHighlighting=!1)}};bq(Kme,"cut");bq($me,"copy");TT&&(TT.addImplementation(1e4,"code-editor",(i,e)=>{let t=i.get(ai),r=i.get(As),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Uv?(()=>Wme(void 0,void 0,void 0,function*(){let s=yield r.readText();if(s!==""){let a=QO.INSTANCE.get(s),l=!1,c=null,d=null;a&&(l=n.getOption(36)&&!!a.isFromEmptySelection,c=typeof a.multicursorText!="undefined"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:s,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),TT.addImplementation(0,"generic-dom",(i,e)=>(document.execCommand("paste"),!0)));gq&&ee(IT)});function vq(i,e){return!(i.include&&!i.include.intersects(e)||i.excludes&&i.excludes.some(t=>yq(e,t,i.include))||!i.includeSourceActions&&nt.Source.contains(e))}function _q(i,e){let t=e.kind?new nt(e.kind):void 0;return!(i.include&&(!t||!i.include.contains(t))||i.excludes&&t&&i.excludes.some(r=>yq(t,r,i.include))||!i.includeSourceActions&&t&&nt.Source.contains(t)||i.onlyIncludePreferredActions&&!e.isPreferred)}function yq(i,e,t){return!(!e.contains(i)||t&&e.contains(t))}var Gme,nt,Vr,Cd,Sx,Sd=M(()=>{qt();Gme=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},nt=class i{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+i.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new i(this.value+i.sep+e)}};nt.sep=".";nt.None=new nt("@@none@@");nt.Empty=new nt("");nt.QuickFix=new nt("quickfix");nt.Refactor=new nt("refactor");nt.RefactorExtract=nt.Refactor.append("extract");nt.RefactorInline=nt.Refactor.append("inline");nt.RefactorMove=nt.Refactor.append("move");nt.RefactorRewrite=nt.Refactor.append("rewrite");nt.Source=new nt("source");nt.SourceOrganizeImports=nt.Source.append("organizeImports");nt.SourceFixAll=nt.Source.append("fixAll");nt.SurroundWith=nt.Refactor.append("surround");(function(i){i.Refactor="refactor",i.RefactorPreview="refactor preview",i.Lightbulb="lightbulb",i.Default="other (default)",i.SourceAction="source action",i.QuickFix="quick fix action",i.FixAll="fix all",i.OrganizeImports="organize imports",i.AutoFix="auto fix",i.QuickFixHover="quick fix hover window",i.OnSave="save participants",i.ProblemsView="problems view"})(Vr||(Vr={}));Cd=class i{static fromUser(e,t){return!e||typeof e!="object"?new i(t.kind,t.apply,!1):new i(i.getKindFromUser(e,t.kind),i.getApplyFromUser(e,t.apply),i.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 nt(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,r){this.kind=e,this.apply=t,this.preferred=r}},Sx=class{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return Gme(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let r;try{r=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Xt(n)}r&&(this.action.edit=r.edit)}return this})}}});function A0(i,e,t,r,n,o){var s;return kx(this,void 0,void 0,function*(){let a=r.filter||{},l={only:(s=a.include)===null||s===void 0?void 0:s.value,trigger:r.type},c=new iF(e,o),d=Yme(i,e,a),u=new ae,h=d.map(m=>kx(this,void 0,void 0,function*(){try{n.report(m);let g=yield m.provideCodeActions(e,t,l,c.token);if(g&&u.add(g),c.token.isCancellationRequested)return wq;let w=((g==null?void 0:g.actions)||[]).filter(E=>E&&_q(a,E)),_=Qme(m,w,a.include);return{actions:w.map(E=>new Sx(E,m)),documentation:_}}catch(g){if(Yo(g))throw g;return Xt(g),wq}})),f=i.onDidChange(()=>{let m=i.all(e);ks(m,d)||c.cancel()});try{let m=yield Promise.all(h),g=m.map(_=>_.actions).flat(),w=[...hn(m.map(_=>_.documentation)),...Xme(i,e,r,g)];return new DT(g,w,u)}finally{f.dispose(),c.dispose()}})}function Yme(i,e,t){return i.all(e).filter(r=>r.providedCodeActionKinds?r.providedCodeActionKinds.some(n=>vq(t,new nt(n))):!0)}function*Xme(i,e,t,r){var n,o,s;if(e&&r.length)for(let a of i.all(e))a._getAdditionalMenuItems&&(yield*B9((n=a._getAdditionalMenuItems)===null||n===void 0?void 0:n.call(a,{trigger:t.type,only:(s=(o=t.filter)===null||o===void 0?void 0:o.include)===null||s===void 0?void 0:s.value},r.map(l=>l.action))))}function Qme(i,e,t){if(!i.documentation)return;let r=i.documentation.map(n=>({kind:new nt(n.kind),command:n.command}));if(t){let n;for(let o of r)o.kind.contains(t)&&(n?n.kind.contains(o.kind)&&(n=o):n=o);if(n)return n==null?void 0:n.command}for(let n of e)if(n.kind){for(let o of r)if(o.kind.contains(new nt(n.kind)))return o.command}}function xq(i,e,t,r,n=st.None){var o;return kx(this,void 0,void 0,function*(){let s=i.get(Kc),a=i.get(_i),l=i.get(Ln),c=i.get(Ri);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(n),!n.isCancellationRequested&&!(!((o=e.action.edit)===null||o===void 0)&&o.edits.length&&!(yield s.apply(e.action.edit,{editor:r==null?void 0:r.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==E0.OnSave,showPreview:r==null?void 0:r.preview})).isApplied)&&e.action.command)try{yield a.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(d){let u=Zme(d);c.error(typeof u=="string"?u:b("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function Zme(i){return typeof i=="string"?i:i instanceof Error&&typeof i.message=="string"?i.message:void 0}var kx,Ex,tp,Tx,Ix,Ax,T0,I0,DT,wq,E0,Ku=M(()=>{mi();ki();qt();ke();Ir();tg();et();Ar();Pt();Xo();yu();He();Vi();Mo();$c();Bc();Sd();kx=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Ex="editor.action.codeAction",tp="editor.action.quickFix",Tx="editor.action.autoFix",Ix="editor.action.refactor",Ax="editor.action.sourceAction",T0="editor.action.organizeImports",I0="editor.action.fixAll",DT=class i extends ce{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return Ki(e.diagnostics)?Ki(t.diagnostics)?i.codeActionsPreferredComparator(e,t):-1:Ki(t.diagnostics)?1:i.codeActionsPreferredComparator(e,t)}constructor(e,t,r){super(),this.documentation=t,this._register(r),this.allActions=[...e].sort(i.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&nt.QuickFix.contains(new nt(e.kind))&&!!e.isPreferred)}},wq={actions:[],documentation:void 0};(function(i){i.OnSave="onSave",i.FromProblemsView="fromProblemsView",i.FromCodeActions="fromCodeActions"})(E0||(E0={}));Dt.registerCommand("_executeCodeActionProvider",function(i,e,t,r,n){return kx(this,void 0,void 0,function*(){if(!(e instanceof yt))throw ko();let{codeActionProvider:o}=i.get(Se),s=i.get(Di).getModel(e);if(!s)throw ko();let a=Qe.isISelection(t)?Qe.liftSelection(t):B.isIRange(t)?s.validateRange(t):void 0;if(!a)throw ko();let l=typeof r=="string"?new nt(r):void 0,c=yield A0(o,s,a,{type:1,triggerAction:Vr.Default,filter:{includeSourceActions:!0,include:l}},ba.None,st.None),d=[],u=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let h=0;hh.action)}finally{setTimeout(()=>c.dispose(),100)}})})});var Jme,ege,MT,L0,Cq=M(()=>{F3();Ku();Sd();jr();Jme=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ege=function(i,e){return function(t,r){e(t,r,i)}},L0=MT=class{constructor(e){this.keybindingService=e}getResolver(){let e=new rf(()=>this.keybindingService.getKeybindings().filter(t=>MT.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let r=t.commandArgs;return t.command===T0?r={kind:nt.SourceOrganizeImports.value}:t.command===I0&&(r={kind:nt.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Cd.fromUser(r,{kind:nt.None,apply:"never"}))}));return t=>{if(t.kind){let r=this.bestKeybindingForCodeAction(t,e.value);return r==null?void 0:r.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;let r=new nt(e.kind);return t.filter(n=>n.kind.contains(r)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,o)=>n?n.kind.contains(o.kind)?o:n:o,void 0)}};L0.codeActionCommands=[Ix,Ex,Ax,T0,I0];L0=MT=Jme([ege(0,Kt)],L0)});var Sq=M(()=>{});var kq=M(()=>{Sq()});var Eq=M(()=>{});var Tq=M(()=>{Eq()});var D0=M(()=>{kq();Tq()});var Iq=M(()=>{});var Aq=M(()=>{Iq()});var iOe,rOe,nOe,oOe,sOe,aOe,lOe,cOe,dOe,uOe,hOe,fOe,pOe,mOe,gOe,bOe,vOe,_Oe,yOe,wOe,xOe,COe,SOe,kOe,EOe,TOe,IOe,AOe,LOe,DOe,MOe,NOe,ROe,Lx=M(()=>{Aq();He();tn();iOe=je("symbolIcon.arrayForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),rOe=je("symbolIcon.booleanForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),nOe=je("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},b("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),oOe=je("symbolIcon.colorForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),sOe=je("symbolIcon.constantForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),aOe=je("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},b("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),lOe=je("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},b("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),cOe=je("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},b("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),dOe=je("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},b("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),uOe=je("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},b("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),hOe=je("symbolIcon.fileForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),fOe=je("symbolIcon.folderForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),pOe=je("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},b("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),mOe=je("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},b("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),gOe=je("symbolIcon.keyForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),bOe=je("symbolIcon.keywordForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),vOe=je("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},b("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_Oe=je("symbolIcon.moduleForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yOe=je("symbolIcon.namespaceForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),wOe=je("symbolIcon.nullForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),xOe=je("symbolIcon.numberForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),COe=je("symbolIcon.objectForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),SOe=je("symbolIcon.operatorForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),kOe=je("symbolIcon.packageForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),EOe=je("symbolIcon.propertyForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),TOe=je("symbolIcon.referenceForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),IOe=je("symbolIcon.snippetForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),AOe=je("symbolIcon.stringForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),LOe=je("symbolIcon.structForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),DOe=je("symbolIcon.textForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),MOe=je("symbolIcon.typeParameterForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),NOe=je("symbolIcon.unitForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ROe=je("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},b("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))});function Dq(i,e,t){if(!e)return i.map(o=>({kind:"action",item:o,group:Lq,disabled:!!o.action.disabled,label:o.action.disabled||o.action.title}));let r=tge.map(o=>({group:o,actions:[]}));for(let o of i){let s=o.action.kind?new nt(o.action.kind):nt.None;for(let a of r)if(a.group.kind.contains(s)){a.actions.push(o);break}}let n=[];for(let o of r)if(o.actions.length){n.push({kind:"header",group:o.group});for(let s of o.actions)n.push({kind:"action",item:s,group:o.group,label:s.action.title,disabled:!!s.action.disabled,keybinding:t(s.action)})}return n}var Lq,tge,Mq=M(()=>{D0();Zr();Sd();Lx();He();Lq=Object.freeze({kind:nt.Empty,title:b("codeAction.widget.id.more","More Actions...")}),tge=Object.freeze([{kind:nt.QuickFix,title:b("codeAction.widget.id.quickfix","Quick Fix")},{kind:nt.RefactorExtract,title:b("codeAction.widget.id.extract","Extract"),icon:pt.wrench},{kind:nt.RefactorInline,title:b("codeAction.widget.id.inline","Inline"),icon:pt.wrench},{kind:nt.RefactorRewrite,title:b("codeAction.widget.id.convert","Rewrite"),icon:pt.wrench},{kind:nt.RefactorMove,title:b("codeAction.widget.id.move","Move"),icon:pt.wrench},{kind:nt.SurroundWith,title:b("codeAction.widget.id.surround","Surround With"),icon:pt.symbolSnippet},{kind:nt.Source,title:b("codeAction.widget.id.source","Source Action"),icon:pt.symbolFile},Lq])});var Nq=M(()=>{});var Rq=M(()=>{Nq()});var ige,rge,NT,ip,Jl,RT=M(()=>{Ht();oF();Zr();ei();ke();An();Rq();BO();Ku();He();jr();ige=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},rge=function(i,e){return function(t,r){e(t,r,i)}};(function(i){i.Hidden={type:0};class e{constructor(r,n,o,s){this.actions=r,this.trigger=n,this.editorPosition=o,this.widgetPosition=s,this.type=1}}i.Showing=e})(ip||(ip={}));Jl=NT=class extends ce{constructor(e,t){super(),this._editor=e,this._onClick=this._register(new Je),this.onClick=this._onClick.event,this._state=ip.Hidden,this._domNode=Ae("div.lightBulbWidget"),this._register(I_.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(r=>{let n=this._editor.getModel();(this.state.type!==1||!n||this.state.editorPosition.lineNumber>=n.getLineCount())&&this.hide()})),this._register(rP(this._domNode,r=>{if(this.state.type!==1)return;this._editor.focus(),r.preventDefault();let{top:n,height:o}=Zi(this._domNode),s=this._editor.getOption(65),a=Math.floor(s/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(r.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(63)&&!this._editor.getOption(63).enabled&&this.hide()})),this._register(ci.runAndSubscribe(t.onDidUpdateKeybindings,()=>{var r,n,o,s;this._preferredKbLabel=(n=(r=t.lookupKeybinding(Tx))===null||r===void 0?void 0:r.getLabel())!==null&&n!==void 0?n:void 0,this._quickFixKbLabel=(s=(o=t.lookupKeybinding(tp))===null||o===void 0?void 0:o.getLabel())!==null&&s!==void 0?s: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,r){if(e.validActions.length<=0)return this.hide();let n=this._editor.getOptions();if(!n.get(63).enabled)return this.hide();let o=this._editor.getModel();if(!o)return this.hide();let{lineNumber:s,column:a}=o.validatePosition(r),l=o.getOptions().tabSize,c=n.get(49),d=o.getLineContent(s),u=Ym(d,l),h=c.spaceWidth*u>22,f=g=>g>2&&this._editor.getTopForLineNumber(g)===this._editor.getTopForLineNumber(g-1),m=s;if(!h){if(s>1&&!f(s-1))m-=1;else if(!f(s+1))m+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new ip.Showing(e,t,r,{position:{lineNumber:m,column:1},preference:NT._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==ip.Hidden&&(this.state=ip.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(..._t.asClassNameArray(pt.lightBulb)),this._domNode.classList.add(..._t.asClassNameArray(pt.lightbulbAutofix)),this._preferredKbLabel)){this.title=b("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel);return}this._domNode.classList.remove(..._t.asClassNameArray(pt.lightbulbAutofix)),this._domNode.classList.add(..._t.asClassNameArray(pt.lightBulb)),this._quickFixKbLabel?this.title=b("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=b("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};Jl.ID="editor.contrib.lightbulbWidget";Jl._posPref=[0];Jl=NT=ige([rge(1,Kt)],Jl)});var Pq=M(()=>{});var Oq=M(()=>{Pq()});var Fq=M(()=>{});var zq=M(()=>{Fq()});function OT(i,e,t){return Hq(this,void 0,void 0,function*(){try{return yield i.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:oge(t)})}catch(r){return ft(r),!1}})}function oge(i){return i===!0?!0:i&&Array.isArray(i.enabledCommands)?i.enabledCommands:!1}var nge,Bq,Hq,PT,to,kd=M(()=>{dF();ck();qt();ei();ke();zq();uF();es();Q3();Pre();is();nge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Bq=function(i,e){return function(t,r){e(t,r,i)}},Hq=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},to=PT=class{constructor(e,t,r){this._options=e,this._languageService=t,this._openerService=r,this._onDidRenderAsync=new Je,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,r){if(!e)return{element:document.createElement("span"),dispose:()=>{}};let n=new ae,o=n.add(A_(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),r));return o.element.classList.add("rendered-markdown"),{element:o.element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(r,n)=>Hq(this,void 0,void 0,function*(){var o,s,a;let l;r?l=this._languageService.getLanguageIdByLanguageName(r):this._options.editor&&(l=(o=this._options.editor.getModel())===null||o===void 0?void 0:o.getLanguageId()),l||(l=lf);let c=yield hF(this._languageService,n,l),d=document.createElement("span");if(d.innerHTML=(a=(s=PT._ttpTokenizer)===null||s===void 0?void 0:s.createHTML(c))!==null&&a!==void 0?a:c,this._options.editor){let u=this._options.editor.getOption(49);L_(d,u)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(d.style.fontSize=this._options.codeBlockFontSize),d}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:r=>OT(this._openerService,r,e.isTrusted),disposables:t}}}};to._ttpTokenizer=xf("tokenizeToString",{createHTML(i){return i}});to=PT=nge([Bq(1,er),Bq(2,tr)],to)});var sge,Uq,Dx,qr,age,Mx,M0=M(()=>{dF();Io();ei();Es();ke();Oq();lt();et();kd();He();wt();is();Ht();sge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Uq=function(i,e){return function(t,r){e(t,r,i)}},qr=Dx=class{static get(e){return e.getContribution(Dx.ID)}constructor(e,t,r){this._openerService=r,this._messageWidget=new Wi,this._messageListeners=new ae,this._mouseOverMessage=!1,this._editor=e,this._visible=Dx.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){ar(d_(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=d_(e)?A_(e,{actionHandler:{callback:n=>OT(this._openerService,n,d_(e)?e.isTrusted:void 0),disposables:this._messageListeners}}):void 0,this._messageWidget.value=new Mx(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(ci.debounce(this._editor.onDidBlurEditorText,(n,o)=>o,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&aP(document.activeElement,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(Lt(this._messageWidget.value.getDomNode(),bi.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(Lt(this._messageWidget.value.getDomNode(),bi.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let r;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(r?r.containsPosition(n.target.position)||this.closeMessage():r=new B(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(Mx.fadeOut(this._messageWidget.value))}};qr.ID="editor.contrib.messageController";qr.MESSAGE_VISIBLE=new ht("messageVisible",!1,b("messageVisible","Whether the editor is currently showing an inline message"));qr=Dx=sge([Uq(1,it),Uq(2,tr)],qr);age=Fi.bindToContribution(qr.get);We(new age({id:"leaveEditorMessage",precondition:qr.MESSAGE_VISIBLE,handler:i=>i.closeMessage(),kbOpts:{weight:100+30,primary:9}}));Mx=class{static fadeOut(e){let t=()=>{e.dispose(),clearTimeout(r),e.getDomNode().removeEventListener("animationend",t)},r=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:r},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:r},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";let o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);let s=document.createElement("div");typeof n=="string"?(s.classList.add("message"),s.textContent=n):(n.classList.add("message"),s.appendChild(n)),this._domNode.appendChild(s);let 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)}};Ue(qr.ID,qr,4)});var jq=M(()=>{});var FT=M(()=>{jq()});function lge(i){if(i.kind==="action")return i.label}function Vq(i){return i.replace(/\r\n|\r|\n/g," ")}var Wq,zT,jT,WT,BT,HT,UT,Nx,Rx,qq=M(()=>{Ht();vF();mF();Zr();ke();Tn();An();FT();He();yl();jr();O_();tn();Wq=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},zT=function(i,e){return function(t,r){e(t,r,i)}},jT="acceptSelectedCodeAction",WT="previewSelectedCodeAction",BT=class{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");let t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,r){var n,o;r.text.textContent=(o=(n=e.group)===null||n===void 0?void 0:n.title)!==null&&o!==void 0?o:""}disposeTemplate(e){}},HT=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);let t=document.createElement("div");t.className="icon",e.append(t);let r=document.createElement("span");r.className="title",e.append(r);let n=new P_(e,jv);return{container:e,icon:t,text:r,keybinding:n}}renderElement(e,t,r){var n,o,s;if(!((n=e.group)===null||n===void 0)&&n.icon?(r.icon.className=_t.asClassName(e.group.icon),e.group.icon.color&&(r.icon.style.color=da(e.group.icon.color.id))):(r.icon.className=_t.asClassName(pt.lightBulb),r.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;r.text.textContent=Vq(e.label),r.keybinding.set(e.keybinding),dP(!!e.keybinding,r.keybinding.element);let a=(o=this._keybindingService.lookupKeybinding(jT))===null||o===void 0?void 0:o.getLabel(),l=(s=this._keybindingService.lookupKeybinding(WT))===null||s===void 0?void 0:s.getLabel();r.container.classList.toggle("option-disabled",e.disabled),e.disabled?r.container.title=e.label:a&&l?this._supportsPreview?r.container.title=b({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",a,l):r.container.title=b({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",a):r.container.title=""}disposeTemplate(e){}};HT=Wq([zT(1,Kt)],HT);UT=class extends UIEvent{constructor(){super("acceptSelectedAction")}},Nx=class extends UIEvent{constructor(){super("previewSelectedAction")}};Rx=class extends ce{constructor(e,t,r,n,o,s){super(),this._delegate=n,this._contextViewService=o,this._keybindingService=s,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");let a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new R_(e,this.domNode,a,[new HT(t,this._keybindingService),new BT],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:lge},accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let c=l.label?Vq(l==null?void 0:l.label):"";return l.disabled&&(c=b({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",c,l.disabled)),c}return null},getWidgetAriaLabel:()=>b({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(yF),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this._list.domFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=r,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._contextViewService.hideContextView()}layout(e){let t=this._allMenuItems.filter(c=>c.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);let o=this._allMenuItems.map((c,d)=>{let u=document.getElementById(this._list.getElementID(d));if(u){u.style.width="auto";let h=u.getBoundingClientRect().width;return u.style.width="",h}return 0}),s=Math.max(...o,e),a=.7,l=Math.min(n,document.body.clientHeight*a);return this._list.layout(l,s),this.domNode.style.height=`${l}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){let t=this._list.getFocus();if(t.length===0)return;let r=t[0],n=this._list.element(r);if(!this.focusCondition(n))return;let o=e?new Nx:new UT;this._list.setSelection([r],o)}onListSelection(e){if(!e.elements.length)return;let t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof Nx):this._list.setSelection([])}onListHover(e){this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};Rx=Wq([zT(4,Gc),zT(5,Kt)],Rx)});var cge,VT,$u,Ed,Gu,N0,Kq=M(()=>{Ht();ng();ke();FT();He();qq();Ji();wt();yl();hl();Ut();tn();cge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},VT=function(i,e){return function(t,r){e(t,r,i)}};je("actionBar.toggledBackground",{dark:gl,light:gl,hcDark:gl,hcLight:gl},b("actionBar.toggledBackground","Background color for toggled action items in action bar."));$u={Visible:new ht("codeActionMenuVisible",!1,b("codeActionMenuVisible","Whether the action widget list is visible"))},Ed=Qr("actionWidgetService"),Gu=class extends ce{get isVisible(){return $u.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,r){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=r,this._list=this._register(new Wi)}show(e,t,r,n,o,s,a){let l=$u.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(Rx,e,t,r,n);this._contextViewService.showContextView({getAnchor:()=>o,render:d=>(l.set(!0),this._renderWidget(d,c,a!=null?a:[])),onHide:d=>{l.reset(),this._onWidgetClosed(d)}},s,!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(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,r){var n;let o=document.createElement("div");if(o.classList.add("action-widget"),e.appendChild(o),this._list.value=t,this._list.value)o.appendChild(this._list.value.domNode);else throw new Error("List has no value");let s=new ae,a=document.createElement("div"),l=e.appendChild(a);l.classList.add("context-view-block"),s.add(Lt(l,bi.MOUSE_DOWN,m=>m.stopPropagation()));let c=document.createElement("div"),d=e.appendChild(c);d.classList.add("context-view-pointerBlock"),s.add(Lt(d,bi.POINTER_MOVE,()=>d.remove())),s.add(Lt(d,bi.MOUSE_DOWN,()=>d.remove()));let u=0;if(r.length){let m=this._createActionBar(".action-widget-action-bar",r);m&&(o.appendChild(m.getContainer().parentElement),s.add(m),u=m.getContainer().offsetWidth)}let h=(n=this._list.value)===null||n===void 0?void 0:n.layout(u);o.style.width=`${h}px`;let f=s.add(xs(e));return s.add(f.onDidBlur(()=>this.hide())),s}_createActionBar(e,t){if(!t.length)return;let r=Ae(e),n=new Ls(r);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};Gu=cge([VT(0,Gc),VT(1,it),VT(2,Ke)],Gu);en(Ed,Gu,1);N0=100+1e3;Si(class extends Jo{constructor(){super({id:"hideCodeActionWidget",title:{value:b("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:$u.Visible,keybinding:{weight:N0,primary:9,secondary:[1033]}})}run(i){i.get(Ed).hide()}});Si(class extends Jo{constructor(){super({id:"selectPrevCodeAction",title:{value:b("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:$u.Visible,keybinding:{weight:N0,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(i){let e=i.get(Ed);e instanceof Gu&&e.focusPrevious()}});Si(class extends Jo{constructor(){super({id:"selectNextCodeAction",title:{value:b("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:$u.Visible,keybinding:{weight:N0,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(i){let e=i.get(Ed);e instanceof Gu&&e.focusNext()}});Si(class extends Jo{constructor(){super({id:jT,title:{value:b("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:$u.Visible,keybinding:{weight:N0,primary:3,secondary:[2137]}})}run(i){let e=i.get(Ed);e instanceof Gu&&e.acceptSelected()}});Si(class extends Jo{constructor(){super({id:WT,title:{value:b("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:$u.Visible,keybinding:{weight:N0,primary:2051}})}run(i){let e=i.get(Ed);e instanceof Gu&&e.acceptSelected(!0)}})});var KT,qT,Yu,dge,Px,$T=M(()=>{jt();qt();ei();ke();Lo();wt();$c();Sd();Ku();KT=new ht("supportedCodeAction",""),qT=class extends ce{constructor(e,t,r,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=r,this._delay=n,this._autoTriggerTimer=this._register(new aa),this._register(this._markerService.onMarkerChanged(o=>this._onMarkerChanges(o))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(e){let t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){let t=this._editor.getModel();t&&e.some(r=>c_(r,t.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:Vr.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),r=this._editor.getSelection();if(r.isEmpty()&&e.type===2){let{lineNumber:n,column:o}=r.getPosition(),s=t.getLineContent(n);if(s.length===0)return;if(o===1){if(/\s/.test(s[0]))return}else if(o===t.getLineMaxColumn(n)){if(/\s/.test(s[s.length-1]))return}else if(/\s/.test(s[o-2])&&/\s/.test(s[o-1]))return}return r}};(function(i){i.Empty={type:0};class e{constructor(r,n,o){this.trigger=r,this.position=n,this._cancellablePromise=o,this.type=1,this.actions=o.catch(s=>{if(Yo(s))return dge;throw s})}cancel(){this._cancellablePromise.cancel()}}i.Triggered=e})(Yu||(Yu={}));dge=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1}),Px=class extends ce{constructor(e,t,r,n,o){super(),this._editor=e,this._registry=t,this._markerService=r,this._progressService=o,this._codeActionOracle=this._register(new Wi),this._state=Yu.Empty,this._onDidChangeState=this._register(new Je),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=KT.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(Yu.Empty,!0))}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(Yu.Empty);let e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(89)){let t=this._registry.all(e).flatMap(r=>{var n;return(n=r.providedCodeActionKinds)!==null&&n!==void 0?n:[]});this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new qT(this._editor,this._markerService,r=>{var n;if(!r){this.setState(Yu.Empty);return}let o=Jt(s=>A0(this._registry,e,r.selection,r.trigger,ba.None,s));r.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(o,250)),this.setState(new Yu.Triggered(r.trigger,r.selection.getStartPosition(),o))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:Vr.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 uge,ec,Ox,GT,Ha,Fx=M(()=>{Ht();qt();F3();ke();di();Pt();Ku();Cq();Mq();RT();M0();He();Kq();Vi();Sr();wt();Ut();F_();$c();Sd();$T();uge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ec=function(i,e){return function(t,r){e(t,r,i)}},Ox=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Ha=GT=class extends ce{static get(e){return e.getContribution(GT.ID)}constructor(e,t,r,n,o,s,a,l,c,d){super(),this._commandService=a,this._configurationService=l,this._actionWidgetService=c,this._instantiationService=d,this._activeCodeActions=this._register(new Wi),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new Px(this._editor,o.codeActionProvider,t,r,s)),this._register(this._model.onDidChangeState(u=>this.update(u))),this._lightBulbWidget=new rf(()=>{let u=this._editor.getContribution(Jl.ID);return u&&this._register(u.onClick(h=>this.showCodeActionList(h.actions,h,{includeDisabledActions:!1,fromLightbulb:!0}))),u}),this._resolver=n.createInstance(L0),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){this._disposed=!0,super.dispose()}showCodeActions(e,t,r){return this.showCodeActionList(t,r,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,r,n){var o;if(!this._editor.hasModel())return;(o=qr.get(this._editor))===null||o===void 0||o.closeMessage();let s=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:r,autoApply:n,context:{notAvailableMessage:e,position:s}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t,r){return Ox(this,void 0,void 0,function*(){try{yield this._instantiationService.invokeFunction(xq,e,E0.FromCodeActions,{preview:r,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:Vr.QuickFix,filter:{}})}})}update(e){var t,r,n,o,s,a,l;return Ox(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let c;try{c=yield e.actions}catch(d){ft(d);return}if(!this._disposed)if((r=this._lightBulbWidget.value)===null||r===void 0||r.update(c,e.trigger,e.position),e.trigger.type===1){if(!((n=e.trigger.filter)===null||n===void 0)&&n.include){let u=this.tryGetValidActionToApply(e.trigger,c);if(u){try{(o=this._lightBulbWidget.value)===null||o===void 0||o.hide(),yield this._applyCodeAction(u,!1,!1)}finally{c.dispose()}return}if(e.trigger.context){let h=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,c);if(h&&h.action.disabled){(s=qr.get(this._editor))===null||s===void 0||s.showMessage(h.action.disabled,e.trigger.context.position),c.dispose();return}}}let d=!!(!((a=e.trigger.filter)===null||a===void 0)&&a.include);if(e.trigger.context&&(!c.allActions.length||!d&&!c.validActions.length)){(l=qr.get(this._editor))===null||l===void 0||l.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=c,c.dispose();return}this._activeCodeActions.value=c,this.showCodeActionList(c,this.toCoords(e.position),{includeDisabledActions:d,fromLightbulb:!1})}else this._actionWidgetService.isVisible?c.dispose():this._activeCodeActions.value=c})}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:r})=>r.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]}showCodeActionList(e,t,r){return Ox(this,void 0,void 0,function*(){let n=this._editor.getDomNode();if(!n)return;let o=r.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!o.length)return;let s=Ie.isIPosition(t)?this.toCoords(t):t,a={onSelect:(l,c)=>Ox(this,void 0,void 0,function*(){this._applyCodeAction(l,!0,!!c),this._actionWidgetService.hide()}),onHide:()=>{var l;(l=this._editor)===null||l===void 0||l.focus()}};this._actionWidgetService.show("codeActionWidget",!0,Dq(o,this._shouldShowHeaders(),this._resolver.getResolver()),a,s,n,this._getActionBarActions(e,t,r))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();let t=this._editor.getScrolledVisiblePosition(e),r=Zi(this._editor.getDomNode()),n=r.left+t.left,o=r.top+t.top+t.height;return{x:n,y:o}}_shouldShowHeaders(){var e;let 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,r){if(r.fromLightbulb)return[];let n=e.documentation.map(o=>{var s;return{id:o.id,label:o.title,tooltip:(s=o.tooltip)!==null&&s!==void 0?s:"",class:void 0,enabled:!0,run:()=>{var a;return this._commandService.executeCommand(o.id,...(a=o.arguments)!==null&&a!==void 0?a:[])}}});return r.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:b("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,r))}:{id:"showMoreActions",label:b("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,r))}),n}};Ha.ID="editor.contrib.codeActionController";Ha=GT=uge([ec(1,og),ec(2,it),ec(3,Ke),ec(4,Se),ec(5,vl),ec(6,_i),ec(7,Mt),ec(8,Ed),ec(9,Ke)],Ha)});function R0(i){return fe.regex(KT.keys()[0],new RegExp("(\\s|^)"+cl(i.value)+"\\b"))}function Xu(i,e,t,r,n=Vr.Default){if(i.hasModel()){let o=Ha.get(i);o==null||o.manualTriggerAtCurrentPosition(e,n,t,r)}}var YT,zx,Bx,Hx,Ux,jx,Wx,Vx,$q=M(()=>{Ni();lt();ti();Ku();He();wt();Sd();Fx();$T();YT={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:b("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:b("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[b("args.schema.apply.first","Always apply the first returned code action."),b("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),b("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:b("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};zx=class extends de{constructor(){super({id:tp,label:b("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:fe.and(O.writable,O.hasCodeActionsProvider),kbOpts:{kbExpr:O.textInputFocus,primary:2137,weight:100}})}run(e,t){return Xu(t,b("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,Vr.QuickFix)}},Bx=class extends Fi{constructor(){super({id:Ex,precondition:fe.and(O.writable,O.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:YT}]}})}runEditorCommand(e,t,r){let n=Cd.fromUser(r,{kind:nt.Empty,apply:"ifSingle"});return Xu(t,typeof(r==null?void 0:r.kind)=="string"?n.preferred?b("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",r.kind):b("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",r.kind):n.preferred?b("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):b("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}},Hx=class extends de{constructor(){super({id:Ix,label:b("refactor.label","Refactor..."),alias:"Refactor...",precondition:fe.and(O.writable,O.hasCodeActionsProvider),kbOpts:{kbExpr:O.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:fe.and(O.writable,R0(nt.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:YT}]}})}run(e,t,r){let n=Cd.fromUser(r,{kind:nt.Refactor,apply:"never"});return Xu(t,typeof(r==null?void 0:r.kind)=="string"?n.preferred?b("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",r.kind):b("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",r.kind):n.preferred?b("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):b("editor.action.refactor.noneMessage","No refactorings available"),{include:nt.Refactor.contains(n.kind)?n.kind:nt.None,onlyIncludePreferredActions:n.preferred},n.apply,Vr.Refactor)}},Ux=class extends de{constructor(){super({id:Ax,label:b("source.label","Source Action..."),alias:"Source Action...",precondition:fe.and(O.writable,O.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:fe.and(O.writable,R0(nt.Source))},description:{description:"Source Action...",args:[{name:"args",schema:YT}]}})}run(e,t,r){let n=Cd.fromUser(r,{kind:nt.Source,apply:"never"});return Xu(t,typeof(r==null?void 0:r.kind)=="string"?n.preferred?b("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",r.kind):b("editor.action.source.noneMessage.kind","No source actions for '{0}' available",r.kind):n.preferred?b("editor.action.source.noneMessage.preferred","No preferred source actions available"):b("editor.action.source.noneMessage","No source actions available"),{include:nt.Source.contains(n.kind)?n.kind:nt.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,Vr.SourceAction)}},jx=class extends de{constructor(){super({id:T0,label:b("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:fe.and(O.writable,R0(nt.SourceOrganizeImports)),kbOpts:{kbExpr:O.textInputFocus,primary:1581,weight:100}})}run(e,t){return Xu(t,b("editor.action.organize.noneMessage","No organize imports action available"),{include:nt.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",Vr.OrganizeImports)}},Wx=class extends de{constructor(){super({id:I0,label:b("fixAll.label","Fix All"),alias:"Fix All",precondition:fe.and(O.writable,R0(nt.SourceFixAll))})}run(e,t){return Xu(t,b("fixAll.noneMessage","No fix all action available"),{include:nt.SourceFixAll,includeSourceActions:!0},"ifSingle",Vr.FixAll)}},Vx=class extends de{constructor(){super({id:Tx,label:b("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:fe.and(O.writable,R0(nt.QuickFix)),kbOpts:{kbExpr:O.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return Xu(t,b("editor.action.autoFix.noneMessage","No auto fixes available"),{include:nt.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",Vr.AutoFix)}}});var XT=M(()=>{lt();tF();$q();Fx();RT();He();X3();dl();Ue(Ha.ID,Ha,3);Ue(Jl.ID,Jl,4);ee(zx);ee(Hx);ee(Ux);ee(jx);ee(Vx);ee(Wx);We(new Bx);Jr.as(af.Configuration).registerConfiguration(Object.assign(Object.assign({},k_),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:b("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}))});function QT(i,e,t){return Gq(this,void 0,void 0,function*(){let r=i.ordered(e),n=new Map,o=new rp,s=r.map((a,l)=>Gq(this,void 0,void 0,function*(){n.set(a,l);try{let c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&o.add(c,a)}catch(c){Xt(c)}}));return yield Promise.all(s),o.lenses=o.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),o})}var Gq,rp,ZT=M(()=>{ki();qt();ke();zr();Ir();Xo();Vi();Pt();Gq=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},rp=class{constructor(){this.lenses=[],this._disposables=new ae}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(let r of e.lenses)this.lenses.push({symbol:r,provider:t})}};Dt.registerCommand("_executeCodeLensProvider",function(i,...e){let[t,r]=e;Bt(yt.isUri(t)),Bt(typeof r=="number"||!r);let{codeLensProvider:n}=i.get(Se),o=i.get(Di).getModel(t);if(!o)throw ko();let s=[],a=new ae;return QT(n,o,st.None).then(l=>{a.add(l);let c=[];for(let d of l.lenses)r==null||d.symbol.command?s.push(d.symbol):r-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(o,d.symbol,st.None)).then(u=>s.push(u||d.symbol)));return Promise.all(c)}).then(()=>s).finally(()=>{setTimeout(()=>a.dispose(),100)})})});var hge,fge,eI,qx,JT,Yq=M(()=>{jt();H9();df();et();ZT();hl();Ut();wu();hge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},fge=function(i,e){return function(t,r){e(t,r,i)}},eI=Qr("ICodeLensCache"),qx=class{constructor(e,t){this.lineCount=e,this.data=t}},JT=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new sa(20,.75);let t="codelens/cache";tO(()=>e.remove(t,1));let r="codelens/cache2",n=e.get(r,1,"{}");this._deserialize(n),Ov(e.onWillSaveState)(o=>{o.reason===B_.SHUTDOWN&&e.store(r,this._serialize(),1,1)})}put(e,t){let r=t.lenses.map(s=>{var a;return{range:s.symbol.range,command:s.symbol.command&&{id:"",title:(a=s.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new rp;n.add({lenses:r,dispose:()=>{}},this._fakeProvider);let o=new qx(e.getLineCount(),n);this._cache.set(e.uri.toString(),o)}get(e){let 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(){let e=Object.create(null);for(let[t,r]of this._cache){let n=new Set;for(let o of r.data.lenses)n.add(o.symbol.range.startLineNumber);e[t]={lineCount:r.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{let t=JSON.parse(e);for(let r in t){let n=t[r],o=[];for(let a of n.lines)o.push({range:new B(a,1,a,11)});let s=new rp;s.add({lenses:o,dispose(){}},this._fakeProvider),this._cache.set(r,new qx(n.lineCount,s))}}catch(t){}}};JT=hge([fge(0,Yn)],JT);en(eI,JT,1)});var Xq=M(()=>{});var Qq=M(()=>{Xq()});var tI,Kx,np,Zq,P0,Jq=M(()=>{Ht();Rre();Qq();et();Ur();tI=class{constructor(e,t,r){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=r,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")}},Kx=class i{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${i._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();let r=[],n=!1;for(let o=0;o{c.symbol.command&&l.push(c.symbol),r.addDecoration({range:c.symbol.range,options:Zq},u=>this._decorationIds[d]=u),a?a=B.plusRange(a,c.symbol.range):a=B.lift(c.symbol.range)}),this._viewZone=new tI(a.startLineNumber-1,o,s),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 Kx(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)=>{let r=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(r&&B.isEmpty(n.range)===r.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((r,n)=>{t.addDecoration({range:r.symbol.range,options:Zq},o=>this._decorationIds[n]=o)})}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{jt();qt();ke();z_();lt();eg();ti();ZT();Yq();Jq();He();Vi();Mo();wl();Ds();Pt();pge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},O0=function(i,e){return function(t,r){e(t,r,i)}},mge=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},op=class{constructor(e,t,r,n,o,s){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=o,this._codeLensCache=s,this._disposables=new ae,this._localToDispose=new ae,this._lenses=[],this._oldCodeLensModels=new ae,this._provideCodeLensDebounce=r.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=r.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new ui(()=>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(49)||a.hasChanged(18)||a.hasChanged(17))&&this._updateLensStyle(),a.hasChanged(16)&&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(){let e=Math.max(1.3,this._editor.getOption(65)/this._editor.getOption(51)),t=this._editor.getOption(18);return(!t||t<5)&&(t=this._editor.getOption(51)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){let{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),r=this._editor.getOption(17),n=this._editor.getOption(49),{style:o}=this._editor.getContainerDomNode();o.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),o.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),o.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),r&&(o.setProperty("--vscode-editorCodeLens-fontFamily",r),o.setProperty("--vscode-editorCodeLens-fontFamilyDefault",S_.fontFamily)),this._editor.changeViewZones(s=>{for(let a of this._lenses)a.updateHeight(e,s)})}_localDispose(){var e,t,r;(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(),(r=this._currentCodeLensModel)===null||r===void 0||r.dispose()}_onModelChange(){this._localDispose();let e=this._editor.getModel();if(!e||!this._editor.getOption(16))return;let t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(ml(()=>{let n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(let n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){let o=n.onDidChange(()=>r.schedule());this._localToDispose.add(o)}let r=new ui(()=>{var n;let o=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=Jt(s=>QT(this._languageFeaturesService.codeLensProvider,e,s)),this._getCodeLensModelPromise.then(s=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=s,this._codeLensCache.put(e,s);let a=this._provideCodeLensDebounce.update(e,Date.now()-o);r.delay=a,this._renderCodeLensSymbols(s),this._resolveCodeLensesInViewportSoon()},ft)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(r),this._localToDispose.add(ri(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{var n;this._editor.changeDecorations(o=>{this._editor.changeViewZones(s=>{let a=[],l=-1;this._lenses.forEach(d=>{!d.isValid()||l===d.getLineNumber()?a.push(d):(d.update(s),l=d.getLineNumber())});let c=new np;a.forEach(d=>{d.dispose(c,s),this._lenses.splice(this._lenses.indexOf(d),1)}),c.commit(o)})}),r.schedule(),this._resolveCodeLensesScheduler.cancel(),(n=this._resolveCodeLensesPromise)===null||n===void 0||n.cancel(),this._resolveCodeLensesPromise=void 0})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{r.schedule()})),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(ri(()=>{if(this._editor.getModel()){let n=va.capture(this._editor);this._editor.changeDecorations(o=>{this._editor.changeViewZones(s=>{this._disposeAllLenses(o,s)})}),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 o=n.target.element;if((o==null?void 0:o.tagName)==="SPAN"&&(o=o.parentElement),(o==null?void 0:o.tagName)==="A")for(let s of this._lenses){let a=s.getCommand(o);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),r.schedule()}_disposeAllLenses(e,t){let r=new np;for(let n of this._lenses)n.dispose(r,t);e&&r.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;let t=this._editor.getModel().getLineCount(),r=[],n;for(let a of e.lenses){let l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],r.push(n)))}if(!r.length&&!this._lenses.length)return;let o=va.capture(this._editor),s=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{let c=new np,d=0,u=0;for(;uthis._resolveCodeLensesInViewportSoon())),d++,u++)}for(;dthis._resolveCodeLensesInViewportSoon())),u++;c.commit(a)})}),o.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;let t=this._editor.getModel();if(!t)return;let r=[],n=[];if(this._lenses.forEach(a=>{let l=a.computeIfNecessary(t);l&&(r.push(l),n.push(a))}),r.length===0)return;let o=Date.now(),s=Jt(a=>{let l=r.map((c,d)=>{let u=new Array(c.length),h=c.map((f,m)=>!f.symbol.command&&typeof f.provider.resolveCodeLens=="function"?Promise.resolve(f.provider.resolveCodeLens(t,f.symbol,a)).then(g=>{u[m]=g},Xt):(u[m]=f.symbol,Promise.resolve(void 0)));return Promise.all(h).then(()=>{!a.isCancellationRequested&&!n[d].isDisposed()&&n[d].updateCommands(u)})});return Promise.all(l)});this._resolveCodeLensesPromise=s,this._resolveCodeLensesPromise.then(()=>{let a=this._resolveCodeLensesDebounce.update(t,Date.now()-o);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{ft(a),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};op.ID="css.editor.codeLens";op=pge([O0(1,Se),O0(2,lr),O0(3,_i),O0(4,Ri),O0(5,eI)],op);Ue(op.ID,op,1);ee(class extends de{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:O.hasCodeLensProvider,label:b("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return mge(this,void 0,void 0,function*(){if(!t.hasModel())return;let r=e.get(nn),n=e.get(_i),o=e.get(Ri),s=t.getSelection().positionLineNumber,a=t.getContribution(op.ID);if(!a)return;let l=a.getModel();if(!l)return;let c=[];for(let u of l.lenses)u.symbol.command&&u.symbol.range.startLineNumber===s&&c.push({label:u.symbol.command.title,command:u.symbol.command});if(c.length===0)return;let d=yield r.pick(c,{canPickMany:!1});if(d){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(d.command.id,...d.command.arguments||[])}catch(u){o.error(u)}}})}})});var tc,rI=M(()=>{_a();di();et();Ar();tc=class i{constructor(e,t,r){this.languageConfigurationService=r,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,r){if(r<0)return!1;let n=t.length,o=e.length;if(r+n>o)return!1;for(let s=0;s=65&&a<=90&&a+32===l)&&!(l>=65&&l<=90&&l+32===a))return!1}return!0}_createOperationsForBlockComment(e,t,r,n,o,s){let a=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,d=e.endColumn,u=o.getLineContent(a),h=o.getLineContent(c),f=u.lastIndexOf(t,l-1+t.length),m=h.indexOf(r,d-1-r.length);if(f!==-1&&m!==-1)if(a===c)u.substring(f+t.length,m).indexOf(r)>=0&&(f=-1,m=-1);else{let w=u.substring(f+t.length),_=h.substring(0,m);(w.indexOf(r)>=0||_.indexOf(r)>=0)&&(f=-1,m=-1)}let g;f!==-1&&m!==-1?(n&&f+t.length0&&h.charCodeAt(m-1)===32&&(r=" "+r,m-=1),g=i._createRemoveBlockCommentOperations(new B(a,f+t.length+1,c,m+1),t,r)):(g=i._createAddBlockCommentOperations(e,t,r,this._insertSpace),this._usedEndToken=g.length===1?r:null);for(let w of g)s.addTrackedEditOperation(w.range,w.text)}static _createRemoveBlockCommentOperations(e,t,r){let n=[];return B.isEmpty(e)?n.push(ii.delete(new B(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+r.length))):(n.push(ii.delete(new B(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(ii.delete(new B(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+r.length)))),n}static _createAddBlockCommentOperations(e,t,r,n){let o=[];return B.isEmpty(e)?o.push(ii.replace(new B(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+r)):(o.push(ii.insert(new Ie(e.startLineNumber,e.startColumn),t+(n?" ":""))),o.push(ii.insert(new Ie(e.endLineNumber,e.endColumn),(n?" ":"")+r))),o}getEditOperations(e,t){let r=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(r);let o=e.getLanguageIdAtPosition(r,n),s=this.languageConfigurationService.getLanguageConfiguration(o).comments;!s||!s.blockCommentStartToken||!s.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,s.blockCommentStartToken,s.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){let r=t.getInverseEditOperations();if(r.length===2){let n=r[0],o=r[1];return new Qe(n.range.endLineNumber,n.range.endColumn,o.range.startLineNumber,o.range.startColumn)}else{let n=r[0].range,o=this._usedEndToken?-this._usedEndToken.length-1:0;return new Qe(n.endLineNumber,n.endColumn+o,n.endLineNumber,n.endColumn+o)}}}});var $x,eK=M(()=>{Ni();_a();di();et();Ar();rI();$x=class i{constructor(e,t,r,n,o,s,a){this.languageConfigurationService=e,this._selection=t,this._tabSize=r,this._type=n,this._insertSpace=o,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=s,this._ignoreFirstLine=a||!1}static _gatherPreflightCommentStrings(e,t,r,n){e.tokenization.tokenizeIfCheap(t);let o=e.getLanguageIdAtPosition(t,1),s=n.getLanguageConfiguration(o).comments,a=s?s.lineCommentToken:null;if(!a)return null;let l=[];for(let c=0,d=r-t+1;co?t[l].commentStrOffset=s-1:t[l].commentStrOffset=s}}}});var F0,nI,oI,sI,aI,lI=M(()=>{ll();lt();et();ti();Hr();rI();eK();He();Ji();F0=class extends de{constructor(e,t){super(t),this._type=e}run(e,t){let r=e.get(Ot);if(!t.hasModel())return;let n=t.getModel(),o=[],s=n.getOptions(),a=t.getOption(22),l=t.getSelections().map((d,u)=>({selection:d,index:u,ignoreFirstLine:!1}));l.sort((d,u)=>B.compareRangesUsingStarts(d.selection,u.selection));let c=l[0];for(let d=1;d{Ht();gF();Fc();ke();Tn();lt();ti();He();Ji();wt();yl();jr();Sr();U_();gge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Qu=function(i,e){return function(t,r){e(t,r,i)}},sp=cI=class{static get(e){return e.getContribution(cI.ID)}constructor(e,t,r,n,o,s,a,l){this._contextMenuService=t,this._contextViewService=r,this._contextKeyService=n,this._keybindingService=o,this._menuService=s,this._configurationService=a,this._workspaceContextService=l,this._toDispose=new ae,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(c=>this._onContextMenu(c))),this._toDispose.add(this._editor.onMouseWheel(c=>{if(this._contextMenuIsBeingShownCount>0){let d=this._contextViewService.getContextViewElement(),u=c.srcElement;u.shadowRoot&&lP(d)===u.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(c=>{this._editor.getOption(23)&&c.keyCode===58&&(c.preventDefault(),c.stopPropagation(),this.showContextMenu())}))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(23)){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 r=!1;for(let n of this._editor.getSelections())if(n.containsPosition(e.target.position)){r=!0;break}r||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(23)||!this._editor.hasModel())return;let t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?Me.SimpleEditorContext:Me.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){let r=[],n=this._menuService.createMenu(t,this._contextKeyService),o=n.getActions({arg:e.uri});n.dispose();for(let s of o){let[,a]=s,l=0;for(let c of a)if(c instanceof Pm){let d=this._getMenuActions(e,c.item.submenu);d.length>0&&(r.push(new Nm(c.id,c.label,d)),l++)}else r.push(c),l++;l&&r.push(new Cs)}return r.length&&r.pop(),r}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;let r=this._editor.getOption(59);this._editor.updateOptions({hover:{enabled:!1}});let n=t;if(!n){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();let s=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),a=Zi(this._editor.getDomNode()),l=a.left+s.left,c=a.top+s.top+s.height;n={x:l,y:c}}let o=this._editor.getOption(125)&&!Lm;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:o?this._editor.getDomNode():void 0,getAnchor:()=>n,getActions:()=>e,getActionViewItem:s=>{let a=this._keybindingFor(s);if(a)return new rg(s,s,{label:!0,keybinding:a.getLabel(),isMenu:!0});let l=s;return typeof l.getActionViewItem=="function"?l.getActionViewItem():new rg(s,s,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:s=>this._keybindingFor(s),onHide:s=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:r})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel()||IF(this._workspaceContextService.getWorkspace()))return;let t=this._editor.getOption(71),r=0,n=c=>({id:`menu-action-${++r}`,label:c.label,tooltip:"",class:void 0,enabled:typeof c.enabled=="undefined"?!0:c.enabled,checked:c.checked,run:c.run}),o=(c,d)=>new Nm(`menu-action-${++r}`,c,d,void 0),s=(c,d,u,h,f)=>{if(!d)return n({label:c,enabled:d,run:()=>{}});let m=w=>()=>{this._configurationService.updateValue(u,w)},g=[];for(let w of f)g.push(n({label:w.label,checked:h===w.value,run:m(w.value)}));return o(c,g)},a=[];a.push(n({label:b("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new Cs),a.push(n({label:b("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(s(b("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:b("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:b("context.minimap.size.fill","Fill"),value:"fill"},{label:b("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(s(b("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:b("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:b("context.minimap.slider.always","Always"),value:"always"}]));let l=this._editor.getOption(125)&&!Lm;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:c=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};sp.ID="editor.contrib.contextmenu";sp=cI=gge([Qu(1,rs),Qu(2,Gc),Qu(3,it),Qu(4,Kt),Qu(5,Ss),Qu(6,Mt),Qu(7,xl)],sp);dI=class extends de{constructor(){super({id:"editor.action.showContextMenu",label:b("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:1092,weight:100}})}run(e,t){var r;(r=sp.get(t))===null||r===void 0||r.showContextMenu()}};Ue(sp.ID,sp,2);ee(dI)});var z0,B0,Zu,hI,fI,pI=M(()=>{ke();lt();ti();He();z0=class{constructor(e){this.selections=e}equals(e){let t=this.selections.length,r=e.selections.length;if(t!==r)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;let r=new z0(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(r)||(this._undoStack.push(new B0(r,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 B0(new z0(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 B0(new z0(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}};Zu.ID="editor.contrib.cursorUndoRedoController";hI=class extends de{constructor(){super({id:"cursorUndo",label:b("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:2099,weight:100}})}run(e,t,r){var n;(n=Zu.get(t))===null||n===void 0||n.cursorUndo()}},fI=class extends de{constructor(){super({id:"cursorRedo",label:b("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,r){var n;(n=Zu.get(t))===null||n===void 0||n.cursorRedo()}};Ue(Zu.ID,Zu,0);ee(hI);ee(fI)});var tK=M(()=>{});var iK=M(()=>{tK()});var Gx,rK=M(()=>{et();Ar();Gx=class{constructor(e,t,r){this.selection=e,this.targetPosition=t,this.copy=r,this.targetSelection=null}getEditOperations(e,t){let r=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new B(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),r),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 Qe(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 Qe(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.lineNumber{ke();Tn();iK();lt();di();et();Ar();Ur();rK();Ju=class i extends ce{constructor(e){super(),this._editor=e,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown(t=>this._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(34)||this._editor.getOption(21)||(ap(e)&&(this._modifierPressed=!0),this._mouseDown&&ap(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(34)||this._editor.getOption(21)||(ap(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===i.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){let t=e.target;if(this._dragSelection===null){let n=(this._editor.getSelections()||[]).filter(o=>t.position&&o.containsPosition(t.position));if(n.length===1)this._dragSelection=n[0];else return}ap(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){let t=new Ie(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let r=null;if(e.event.shiftKey){let n=this._editor.getSelection();if(n){let{selectionStartLineNumber:o,selectionStartColumn:s}=n;r=[new Qe(o,s,t.lineNumber,t.column)]}}else r=(this._editor.getSelections()||[]).map(n=>n.containsPosition(t)?new Qe(t.lineNumber,t.column,t.lineNumber,t.column):n);this._editor.setSelections(r||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(ap(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(i.ID,new Gx(this._dragSelection,t,ap(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 B(e.lineNumber,e.column,e.lineNumber,e.column),options:i._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()}};Ju.ID="editor.contrib.dragAndDrop";Ju.TRIGGER_KEY_VALUE=En?6:5;Ju._DECORATION_OPTIONS=mt.register({description:"dnd-target",className:"dnd-target"});Ue(Ju.ID,Ju,2)});var Td,H0=M(()=>{Td=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let i;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?i=crypto.getRandomValues.bind(crypto):i=function(r){for(let n=0;nnK(this,void 0,void 0,function*(){return i}),asFile:()=>{},value:typeof i=="string"?i:void 0}}function oK(i,e,t){let r={id:Td(),name:i,uri:e,data:t};return{asString:()=>nK(this,void 0,void 0,function*(){return""}),asFile:()=>r,value:void 0}}function Yx(i){return i.toLowerCase()}function Xx(i,e){return sK(Yx(i),e.map(Yx))}function sK(i,e){if(i==="*/*")return e.length>0;if(e.includes(i))return!0;let t=i.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;let[r,n,o]=t;return o==="*"?e.some(s=>s.startsWith(n+"/")):!1}var nK,lp,eh,j0=M(()=>{mi();Jh();H0();nK=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};lp=class{constructor(){this._entries=new Map}get size(){let e=0;for(let t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){let t=[...this._entries.keys()];return kn.some(this,([r,n])=>n.asFile())&&t.push("files"),sK(Yx(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){let r=this._entries.get(e);r?r.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(let[e,t]of this._entries)for(let r of t)yield[e,r]}toKey(e){return Yx(e)}};eh=Object.freeze({create:i=>DP(i.map(e=>e.toString())).join(`\r +import{b as kne}from"./chunk-JY7ZYBHV.js";import{a as Zh}from"./chunk-BZUL2CAN.js";import{$ as gi,$a as Ie,$b as Me,$c as AP,$d as KP,$e as nO,$f as DO,$g as Dre,$h as uF,$i as kF,$j as WF,$k as ry,$l as Ms,A as ci,Aa as Zi,Ab as qi,Ac as Ar,Ad as X3,Ae as zi,Af as pO,Ag as zO,Ah as ga,Ai as yl,Aj as Pi,Ak as ZF,Al as _z,B as Je,Ba as Kn,Bb as of,Bc as SP,Bd as lf,Be as ki,Bf as g_,Bg as Ym,Bh as iF,Bi as uk,Bj as V_,Bk as Zre,Bl as xu,C as M3,Ca as Mm,Cb as z3,Cc as lre,Cd as Q3,Ce as Jt,Cf as gl,Cg as BO,Ch as yu,Ci as hk,Cj as Sl,Ck as Sk,Cl as xa,D as W9,Da as aP,Db as mP,Dc as q3,Dd as Ot,De as Vc,Df as b_,Dg as HO,Dh as ig,Di as _F,Dj as Sf,Dk as Jre,Dl as ug,E as ei,Ea as lP,Eb as B3,Ec as cre,Ed as Hr,Ee as Do,Ef as mO,Eg as Tre,Eh as Nre,Ei as yF,Ej as Kre,Ek as ty,El as cne,F as V9,Fa as cP,Fb as H3,Fc as kP,Fd as r_,Fe as hf,Ff as gO,Fg as w_,Fh as wf,Fi as wF,Fj as kl,Fk as JF,Fl as yz,G as q9,Ga as O3,Gb as zc,Gc as dre,Gd as mre,Ge as ml,Gf as bO,Gg as Ire,Gh as Ri,Gi as O_,Gj as q_,Gk as ez,Gl as dne,H as K9,Ha as bi,Hb as gP,Hc as ul,Hd as jc,He as u_,Hf as vO,Hg as Xm,Hh as Mo,Hi as Lr,Hj as vk,Hk as ene,Hl as une,I as Bv,Ia as cu,Ib as bP,Ic as EP,Id as gre,Ie as aa,If as jm,Ig as pa,Ih as rF,Ii as fk,Ij as OF,Ik as kk,Il as wz,J as Hv,Ja as xs,Jb as vP,Jc as Qv,Jd as Z3,Je as ui,Jf as _O,Jg as UO,Jh as ba,Ji as og,Jj as K_,Jk as Ek,Jl as xz,K as N3,Ka as Te,Kb as _P,Kc as Zv,Kd as mu,Ke as tO,Kf as Wm,Kg as Is,Kh as vl,Ki as F_,Kj as _k,Kk as Tk,Kl as Cz,L as Am,La as du,Lb as $v,Lc as Jv,Ld as n_,Le as h_,Lf as ha,Lg as Qm,Lh as $c,Li as va,Lj as FF,Lk as tne,Ll as Sz,M as $9,Ma as Ae,Mb as yP,Mc as ure,Md as BP,Me as f_,Mf as bl,Mg as jO,Mh as Kt,Mi as z_,Mj as $re,Mk as tz,Ml as hne,N as Bt,Na as dP,Nb as Gv,Nc as fu,Nd as o_,Ne as Mn,Nf as yO,Ng as WO,Nh as jr,Ni as Yn,Nj as zF,Nk as iz,Nl as fne,O as Nc,Oa as un,Ob as U3,Oc as K3,Od as bre,Oe as iO,Of as vu,Og as VO,Oh as nF,Oi as B_,Oj as yk,Ok as rz,Ol as pne,P as G9,Pa as Br,Pb as Ni,Pc as Uc,Pd as F,Pe as jt,Pf as wO,Pg as vf,Ph as I_,Pi as wu,Pj as BF,Pk as ine,Pl as mne,Q as zr,Qa as uP,Qb as fe,Qc as hre,Qd as ti,Qe as rO,Qf as tk,Qg as qO,Qh as oF,Qi as xF,Qj as HF,Qk as iy,Ql as gne,R as Rc,Ra as Kv,Rb as ht,Rc as sf,Rd as cf,Re as ff,Rf as xO,Rg as sk,Rh as sF,Ri as nn,Rj as Gre,Rk as nz,Rl as bne,S as En,Sa as Ht,Sb as it,Sc as Om,Sd as s_,Se as ek,Sf as CO,Sg as _f,Sh as Rre,Si as wl,Sj as on,Sk as oz,Sl as vne,T as Y9,Ta as ar,Tb as wt,Tc as TP,Td as HP,Te as Gn,Tf as SO,Tg as fn,Th as aF,Ti as H_,Tj as wk,Tk as sz,Tl as _ne,U as Pc,Ua as uu,Ub as wP,Uc as Fm,Ud as sa,Ue as la,Uf as kO,Ug as KO,Uh as lF,Ui as CF,Uj as ya,Uk as rne,Ul as yne,V as Uv,Va as Io,Vb as are,Vc as IP,Vd as df,Ve as bu,Vf as EO,Vg as $O,Vh as cF,Vi as SF,Vj as sg,Vk as Ik,Vl as wne,W as Lm,Wa as Ke,Wb as Jr,Wc as zm,Wd as UP,We as qc,Wf as TO,Wg as GO,Wh as A_,Wi as Bre,Wj as No,Wk as az,Wl as xne,X as X9,Xa as Qr,Xb as dl,Xc as fre,Xd as jP,Xe as Ts,Xf as IO,Xg as Are,Xh as dF,Xi as lr,Xj as xk,Xk as nne,Xl as Cne,Y as jv,Ya as Ut,Yb as Ao,Yc as ks,Yd as WP,Ye as Hm,Yf as ik,Yg as YO,Yh as xf,Yi as Ds,Yj as UF,Yk as cg,Yl as Sne,Z as Q9,Za as ai,Zb as j3,Zc as pu,Zd as VP,Ze as vt,Zf as AO,Zg as Lre,Zh as ck,Zi as ii,Zj as jF,Zk as Ak,Zl as Cu,_ as Tn,_a as In,_b as xP,_c as e_,_d as qP,_e as ca,_f as LO,_g as XO,_h as L_,_i as _a,_j as pn,_k as lz,_l as Ca,a as b,aa as ll,ab as di,ac as Ss,ad as $3,ae as gu,af as yre,ag as MO,ah as ak,ai as hF,aj as Hre,ak as $_,al as Lk,am as Ns,b as He,ba as R3,bb as Di,bc as Zo,bd as hn,be as fl,bf as oO,bg as NO,bh as yf,bi as Pre,bj as xl,bk as El,bl as Dk,c as ft,ca as sre,cb as Xo,cc as Pm,cd as G3,ce as a_,cf as pf,cg as RO,ch as mt,ci as tr,cj as pk,ck as VF,cl as Mk,d as Xt,da as Wv,db as Cr,dc as na,dd as LP,de as l_,df as wre,dg as PO,dh as Ur,di as is,dj as EF,dk as qF,dl as cz,e as Yo,ea as Z9,eb as ra,ec as Jo,ed as Ki,ee as $P,ef as sO,eg as OO,eh as x_,ei as D_,ej as TF,ek as KF,el as dz,f as Pv,fa as Vv,fb as Qo,fc as Si,fd as DP,fe as pl,ff as xre,fg as fa,fh as Mre,fi as Ore,fj as mk,fk as wa,fl as uz,g as ko,ga as J9,gb as Cs,gc as Ji,gd as MP,ge as GP,gf as mf,gg as Vm,gh as lk,gi as fF,gj as IF,gk as ag,gl as one,h as Im,ha as eP,hb as Nm,hc as Ln,hd as t_,he as vre,hf as Cre,hg as qm,hh as QO,hi as Fre,hj as U_,hk as $F,hl as hz,i as qt,ia as ef,ib as tf,ic as Bc,id as NP,ie as YP,if as aO,ig as Km,ih as ZO,ii as dk,ij as Yc,ik as G_,il as sne,j as Ov,ja as qv,jb as Fc,jc as Hc,jd as RP,je as _re,jf as Sre,jg as $m,jh as JO,ji as zre,jj as j_,jk as Y_,jl as ny,k as H9,ka as tP,kb as pt,kc as Yv,kd as PP,ke as XP,kf as lO,kg as FO,kh as As,ki as _l,kj as AF,kk as GF,kl as fz,l as kn,la as yt,lb as Zr,lc as Xv,ld as OP,le as J3,lf as kre,lg as v_,lh as Zm,li as M_,lj as Ure,lk as Ck,ll as dg,m as Jh,ma as Ir,mb as _t,mc as Fi,md as mi,me as c_,mf as cO,mg as gf,mh as eF,mi as pF,mj as W_,mk as Yre,ml as pz,n as Fv,na as Eo,nb as An,nc as de,nd as FP,ne as QP,nf as Ere,ng as rk,nh as C_,ni as Cf,nj as LF,nk as kf,nl as Nk,o as ji,oa as Dm,ob as _i,oc as W3,od as pre,oe as Dn,of as da,og as Gm,oh as ma,oi as N_,oj as DF,ok as lg,ol as ane,p as D3,pa as qn,pb as Dt,pc as oa,pd as i_,pe as ZP,pf as je,pg as Nn,ph as S_,pi as R_,pj as MF,pk as X_,pl as mz,q as ri,qa as iP,qb as Vi,qc as $n,qd as zP,qe as uf,qf as ze,qg as __,qh as Jm,qi as mF,qj as NF,qk as Q_,ql as lne,r as le,ra as Lt,rb as rf,rc as We,rd as Mt,re as JP,rf as dO,rg as tn,rh as eg,ri as rg,rj as jre,rk as Z_,rl as Ef,s as ce,sa as To,sb as F3,sc as ee,sd as Sr,se as eO,sf as Um,sg as _u,sh as k_,si as gF,sj as gk,sk as YF,sl as Rk,t as Wi,ta as rP,tb as hP,tc as V3,td as er,te as Bm,tf as uO,tg as nk,th as tF,ti as Ls,tj as Cl,tk as J_,tl as oy,u as U9,ua as P3,ub as nf,uc as CP,ud as es,ue as Lo,uf as ts,ug as ok,uh as Kc,ui as ng,uj as bk,uk as XF,ul as gz,v as ke,va as nP,vb as cl,vc as Ue,vd as en,ve as $i,vf as ua,vg as br,vh as E_,vi as bF,vj as RF,vk as Xre,vl as bz,w as zv,wa as Oc,wb as fP,wc as lt,wd as hl,we as Wc,wf as p_,wg as Ei,wh as tg,wi as P_,wj as Wre,wk as QF,wl as Pk,x as j9,xa as Qt,xb as pP,xc as B,xd as gr,xe as d_,xf as m_,xg as bf,xh as Se,xi as vF,xj as Vre,xk as Qre,xl as vz,y as mr,ya as oP,yb as hu,yc as et,yd as Y3,ye as Es,yf as hO,yg as rn,yh as Pt,yi as Gc,yj as PF,yk as Tl,yl as Ok,z as al,za as sP,zb as Rm,zc as Qe,zd as af,ze as st,zf as fO,zg as y_,zh as T_,zi as rs,zj as qre,zk as ey,zl as sy}from"./chunk-23JDWT7I.js";import{a as ue,b as xt,c as lu,d as ao,e as N,f as Qi,g as Xh,h as Vn,i as Qh,j as xr,k as B9}from"./chunk-EP6THQJ3.js";var DB=Qi((qSe,LB)=>{"use strict";var Ly=Object.prototype.hasOwnProperty,AB=Object.prototype.toString,CB=Object.defineProperty,SB=Object.getOwnPropertyDescriptor,kB=function(e){return typeof Array.isArray=="function"?Array.isArray(e):AB.call(e)==="[object Array]"},EB=function(e){if(!e||AB.call(e)!=="[object Object]")return!1;var t=Ly.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ly.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;var n;for(n in e);return typeof n=="undefined"||Ly.call(e,n)},TB=function(e,t){CB&&t.name==="__proto__"?CB(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},IB=function(e,t){if(t==="__proto__")if(Ly.call(e,t)){if(SB)return SB(e,t).value}else return;return e[t]};LB.exports=function i(){var e,t,r,n,o,s,a=arguments[0],l=1,c=arguments.length,d=!1;for(typeof a=="boolean"&&(d=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l{});var hq=N(()=>{uq()});var Hme,Ume,yx,uT,wx,Zl,hT,fT,pT,mT,gT=N(()=>{Io();Es();ll();hq();lt();Ar();ti();He();wt();Hme=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ume=function(i,e){return function(t,r){e(t,r,i)}},yx=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},wx=new ht("selectionAnchorSet",!1),Zl=uT=class{static get(e){return e.getContribution(uT.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=wx.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){let e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(Qe.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new $i().appendText(b("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),ar(b("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){let t=this.editor.getPosition();this.editor.setSelection(Qe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){let e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};Zl.ID="editor.contrib.selectionAnchorController";Zl=uT=Hme([Ume(1,it)],Zl);hT=class extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:b("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2080),weight:100}})}run(e,t){var r;return yx(this,void 0,void 0,function*(){(r=Zl.get(t))===null||r===void 0||r.setSelectionAnchor()})}},fT=class extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:b("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:wx})}run(e,t){var r;return yx(this,void 0,void 0,function*(){(r=Zl.get(t))===null||r===void 0||r.goToSelectionAnchor()})}},pT=class extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:b("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:wx,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2089),weight:100}})}run(e,t){var r;return yx(this,void 0,void 0,function*(){(r=Zl.get(t))===null||r===void 0||r.selectFromAnchorToCursor()})}},mT=class extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:b("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:wx,kbOpts:{kbExpr:F.editorTextFocus,primary:9,weight:100}})}run(e,t){var r;return yx(this,void 0,void 0,function*(){(r=Zl.get(t))===null||r===void 0||r.cancelSelectionAnchor()})}};Ue(Zl.ID,Zl,4);ee(hT);ee(fT);ee(pT);ee(mT)});var fq=N(()=>{});var pq=N(()=>{fq()});var jme,bT,vT,_T,yT,Ba,wT=N(()=>{jt();ke();pq();lt();di();et();Ar();ti();qc();Ur();He();Ji();tn();rn();jme=je("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},b("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),bT=class extends de{constructor(){super({id:"editor.action.jumpToBracket",label:b("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:3165,weight:100}})}run(e,t){var r;(r=Ba.get(t))===null||r===void 0||r.jumpToBracket()}},vT=class extends de{constructor(){super({id:"editor.action.selectToBracket",label:b("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,r){var n;let o=!0;r&&r.selectBrackets===!1&&(o=!1),(n=Ba.get(t))===null||n===void 0||n.selectToBracket(o)}},_T=class extends de{constructor(){super({id:"editor.action.removeBrackets",label:b("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:2561,weight:100}})}run(e,t){var r;(r=Ba.get(t))===null||r===void 0||r.removeBrackets(this.id)}},yT=class{constructor(e,t,r){this.position=e,this.brackets=t,this.options=r}},Ba=class i extends ce{static get(e){return e.getContribution(i.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new ui(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(70),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(70)&&(this._matchBrackets=this._editor.getOption(70),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;let e=this._editor.getModel(),t=this._editor.getSelections().map(r=>{let n=r.getStartPosition(),o=e.bracketPairs.matchBracket(n),s=null;if(o)o[0].containsPosition(n)&&!o[1].containsPosition(n)?s=o[1].getStartPosition():o[1].containsPosition(n)&&(s=o[0].getStartPosition());else{let a=e.bracketPairs.findEnclosingBrackets(n);if(a)s=a[1].getStartPosition();else{let l=e.bracketPairs.findNextBracket(n);l&&l.range&&(s=l.range.getStartPosition())}}return s?new Qe(s.lineNumber,s.column,s.lineNumber,s.column):new Qe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),r=[];this._editor.getSelections().forEach(n=>{let o=n.getStartPosition(),s=t.bracketPairs.matchBracket(o);if(!s&&(s=t.bracketPairs.findEnclosingBrackets(o),!s)){let c=t.bracketPairs.findNextBracket(o);c&&c.range&&(s=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(s){s.sort(B.compareRangesUsingStarts);let[c,d]=s;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(o)){let u=a;a=l,l=u}}a&&l&&r.push(new Qe(a.lineNumber,a.column,l.lineNumber,l.column))}),r.length>0&&(this._editor.setSelections(r),this._editor.revealRange(r[0]))}removeBrackets(e){if(!this._editor.hasModel())return;let t=this._editor.getModel();this._editor.getSelections().forEach(r=>{let n=r.getPosition(),o=t.bracketPairs.matchBracket(n);o||(o=t.bracketPairs.findEnclosingBrackets(n)),o&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:o[0],text:""},{range:o[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();let e=[],t=0;for(let r of this._lastBracketsData){let n=r.brackets;n&&(e[t++]={range:n[0],options:r.options},e[t++]={range:n[1],options:r.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}let e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}let t=this._editor.getModel(),r=t.getVersionId(),n=[];this._lastVersionId===r&&(n=this._lastBracketsData);let o=[],s=0;for(let u=0,h=e.length;u1&&o.sort(Ie.compare);let a=[],l=0,c=0,d=n.length;for(let u=0,h=o.length;u{et();Ar();xx=class{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;let r=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(r)))if(this._isMovingLeft){let s=new B(r,n-1,r,n),a=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new B(r,o,r,o),a)}else{let s=new B(r,o,r,o+1),a=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new B(r,n,r,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new Qe(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new Qe(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}});var Cx,xT,CT,ST=N(()=>{lt();ti();mq();He();Cx=class extends de{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let r=[],n=t.getSelections();for(let o of n)r.push(new xx(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}},xT=class extends Cx{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:b("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:F.writable})}},CT=class extends Cx{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:b("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:F.writable})}};ee(xT);ee(CT)});var kT,ET=N(()=>{lt();Zv();ure();et();ti();He();kT=class extends de{constructor(){super({id:"editor.action.transposeLetters",label:b("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let r=t.getModel(),n=[],o=t.getSelections();for(let s of o){if(!s.isEmpty())continue;let a=s.startLineNumber,l=s.startColumn,c=r.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;let d=l===c?s.getPosition():Jv.rightPosition(r,s.getPosition().lineNumber,s.getPosition().column),u=Jv.leftPosition(r,d),h=Jv.leftPosition(r,u),f=r.getValueInRange(B.fromPositions(h,u)),m=r.getValueInRange(B.fromPositions(u,d)),g=B.fromPositions(h,d);n.push(new ul(g,m+f))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}};ee(kT)});function AT(i){return i.register(),i}function bq(i,e){i&&(i.addImplementation(1e4,"code-editor",(t,r)=>{let n=t.get(ai).getFocusedCodeEditor();if(n&&n.hasTextFocus()){let o=n.getOption(36),s=n.getSelection();return s&&s.isEmpty()&&!o||document.execCommand(e),!0}return!1}),i.addImplementation(0,"generic-dom",(t,r)=>(document.execCommand(e),!0)))}var Wme,qu,Vme,gq,qme,Kme,$me,TT,IT,LT=N(()=>{K9();Tn();JO();lt();In();ti();He();Ji();Zm();wt();Wme=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},qu="9_cutcopypaste",Vme=Pc||document.queryCommandSupported("cut"),gq=Pc||document.queryCommandSupported("copy"),qme=typeof navigator.clipboard=="undefined"||q9?document.queryCommandSupported("paste"):!0;Kme=Vme?AT(new Xv({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:Pc?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:Me.MenubarEditMenu,group:"2_ccp",title:b({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:Me.EditorContext,group:qu,title:b("actions.clipboard.cutLabel","Cut"),when:F.writable,order:1},{menuId:Me.CommandPalette,group:"",title:b("actions.clipboard.cutLabel","Cut"),order:1},{menuId:Me.SimpleEditorContext,group:qu,title:b("actions.clipboard.cutLabel","Cut"),when:F.writable,order:1}]})):void 0,$me=gq?AT(new Xv({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:Pc?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:Me.MenubarEditMenu,group:"2_ccp",title:b({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:Me.EditorContext,group:qu,title:b("actions.clipboard.copyLabel","Copy"),order:2},{menuId:Me.CommandPalette,group:"",title:b("actions.clipboard.copyLabel","Copy"),order:1},{menuId:Me.SimpleEditorContext,group:qu,title:b("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Zo.appendMenuItem(Me.MenubarEditMenu,{submenu:Me.MenubarCopy,title:{value:b("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Zo.appendMenuItem(Me.EditorContext,{submenu:Me.EditorContextCopy,title:{value:b("copy as","Copy As"),original:"Copy As"},group:qu,order:3});Zo.appendMenuItem(Me.EditorContext,{submenu:Me.EditorContextShare,title:{value:b("share","Share"),original:"Share"},group:"11_share",order:-1,when:fe.and(fe.notEquals("resourceScheme","output"),F.editorTextFocus)});Zo.appendMenuItem(Me.EditorTitleContext,{submenu:Me.EditorTitleContextShare,title:{value:b("share","Share"),original:"Share"},group:"11_share",order:-1});Zo.appendMenuItem(Me.ExplorerContext,{submenu:Me.ExplorerContextShare,title:{value:b("share","Share"),original:"Share"},group:"11_share",order:-1});TT=qme?AT(new Xv({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:Pc?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:Me.MenubarEditMenu,group:"2_ccp",title:b({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:Me.EditorContext,group:qu,title:b("actions.clipboard.pasteLabel","Paste"),when:F.writable,order:4},{menuId:Me.CommandPalette,group:"",title:b("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:Me.SimpleEditorContext,group:qu,title:b("actions.clipboard.pasteLabel","Paste"),when:F.writable,order:4}]})):void 0,IT=class extends de{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:b("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:F.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(36)&&t.getSelection().isEmpty()||(lk.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),lk.forceCopyWithSyntaxHighlighting=!1)}};bq(Kme,"cut");bq($me,"copy");TT&&(TT.addImplementation(1e4,"code-editor",(i,e)=>{let t=i.get(ai),r=i.get(As),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Uv?(()=>Wme(void 0,void 0,void 0,function*(){let s=yield r.readText();if(s!==""){let a=QO.INSTANCE.get(s),l=!1,c=null,d=null;a&&(l=n.getOption(36)&&!!a.isFromEmptySelection,c=typeof a.multicursorText!="undefined"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:s,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),TT.addImplementation(0,"generic-dom",(i,e)=>(document.execCommand("paste"),!0)));gq&&ee(IT)});function vq(i,e){return!(i.include&&!i.include.intersects(e)||i.excludes&&i.excludes.some(t=>yq(e,t,i.include))||!i.includeSourceActions&&nt.Source.contains(e))}function _q(i,e){let t=e.kind?new nt(e.kind):void 0;return!(i.include&&(!t||!i.include.contains(t))||i.excludes&&t&&i.excludes.some(r=>yq(t,r,i.include))||!i.includeSourceActions&&t&&nt.Source.contains(t)||i.onlyIncludePreferredActions&&!e.isPreferred)}function yq(i,e,t){return!(!e.contains(i)||t&&e.contains(t))}var Gme,nt,Vr,Cd,Sx,Sd=N(()=>{qt();Gme=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},nt=class i{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+i.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new i(this.value+i.sep+e)}};nt.sep=".";nt.None=new nt("@@none@@");nt.Empty=new nt("");nt.QuickFix=new nt("quickfix");nt.Refactor=new nt("refactor");nt.RefactorExtract=nt.Refactor.append("extract");nt.RefactorInline=nt.Refactor.append("inline");nt.RefactorMove=nt.Refactor.append("move");nt.RefactorRewrite=nt.Refactor.append("rewrite");nt.Source=new nt("source");nt.SourceOrganizeImports=nt.Source.append("organizeImports");nt.SourceFixAll=nt.Source.append("fixAll");nt.SurroundWith=nt.Refactor.append("surround");(function(i){i.Refactor="refactor",i.RefactorPreview="refactor preview",i.Lightbulb="lightbulb",i.Default="other (default)",i.SourceAction="source action",i.QuickFix="quick fix action",i.FixAll="fix all",i.OrganizeImports="organize imports",i.AutoFix="auto fix",i.QuickFixHover="quick fix hover window",i.OnSave="save participants",i.ProblemsView="problems view"})(Vr||(Vr={}));Cd=class i{static fromUser(e,t){return!e||typeof e!="object"?new i(t.kind,t.apply,!1):new i(i.getKindFromUser(e,t.kind),i.getApplyFromUser(e,t.apply),i.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 nt(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,r){this.kind=e,this.apply=t,this.preferred=r}},Sx=class{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return Gme(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let r;try{r=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Xt(n)}r&&(this.action.edit=r.edit)}return this})}}});function A0(i,e,t,r,n,o){var s;return kx(this,void 0,void 0,function*(){let a=r.filter||{},l={only:(s=a.include)===null||s===void 0?void 0:s.value,trigger:r.type},c=new iF(e,o),d=Yme(i,e,a),u=new le,h=d.map(m=>kx(this,void 0,void 0,function*(){try{n.report(m);let g=yield m.provideCodeActions(e,t,l,c.token);if(g&&u.add(g),c.token.isCancellationRequested)return wq;let w=((g==null?void 0:g.actions)||[]).filter(E=>E&&_q(a,E)),_=Qme(m,w,a.include);return{actions:w.map(E=>new Sx(E,m)),documentation:_}}catch(g){if(Yo(g))throw g;return Xt(g),wq}})),f=i.onDidChange(()=>{let m=i.all(e);ks(m,d)||c.cancel()});try{let m=yield Promise.all(h),g=m.map(_=>_.actions).flat(),w=[...hn(m.map(_=>_.documentation)),...Xme(i,e,r,g)];return new DT(g,w,u)}finally{f.dispose(),c.dispose()}})}function Yme(i,e,t){return i.all(e).filter(r=>r.providedCodeActionKinds?r.providedCodeActionKinds.some(n=>vq(t,new nt(n))):!0)}function*Xme(i,e,t,r){var n,o,s;if(e&&r.length)for(let a of i.all(e))a._getAdditionalMenuItems&&(yield*B9((n=a._getAdditionalMenuItems)===null||n===void 0?void 0:n.call(a,{trigger:t.type,only:(s=(o=t.filter)===null||o===void 0?void 0:o.include)===null||s===void 0?void 0:s.value},r.map(l=>l.action))))}function Qme(i,e,t){if(!i.documentation)return;let r=i.documentation.map(n=>({kind:new nt(n.kind),command:n.command}));if(t){let n;for(let o of r)o.kind.contains(t)&&(n?n.kind.contains(o.kind)&&(n=o):n=o);if(n)return n==null?void 0:n.command}for(let n of e)if(n.kind){for(let o of r)if(o.kind.contains(new nt(n.kind)))return o.command}}function xq(i,e,t,r,n=st.None){var o;return kx(this,void 0,void 0,function*(){let s=i.get(Kc),a=i.get(_i),l=i.get(Ln),c=i.get(Ri);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(n),!n.isCancellationRequested&&!(!((o=e.action.edit)===null||o===void 0)&&o.edits.length&&!(yield s.apply(e.action.edit,{editor:r==null?void 0:r.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==E0.OnSave,showPreview:r==null?void 0:r.preview})).isApplied)&&e.action.command)try{yield a.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(d){let u=Zme(d);c.error(typeof u=="string"?u:b("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function Zme(i){return typeof i=="string"?i:i instanceof Error&&typeof i.message=="string"?i.message:void 0}var kx,Ex,tp,Tx,Ix,Ax,T0,I0,DT,wq,E0,Ku=N(()=>{mi();ki();qt();ke();Ir();tg();et();Ar();Pt();Xo();yu();He();Vi();Mo();$c();Bc();Sd();kx=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Ex="editor.action.codeAction",tp="editor.action.quickFix",Tx="editor.action.autoFix",Ix="editor.action.refactor",Ax="editor.action.sourceAction",T0="editor.action.organizeImports",I0="editor.action.fixAll",DT=class i extends ce{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return Ki(e.diagnostics)?Ki(t.diagnostics)?i.codeActionsPreferredComparator(e,t):-1:Ki(t.diagnostics)?1:i.codeActionsPreferredComparator(e,t)}constructor(e,t,r){super(),this.documentation=t,this._register(r),this.allActions=[...e].sort(i.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&nt.QuickFix.contains(new nt(e.kind))&&!!e.isPreferred)}},wq={actions:[],documentation:void 0};(function(i){i.OnSave="onSave",i.FromProblemsView="fromProblemsView",i.FromCodeActions="fromCodeActions"})(E0||(E0={}));Dt.registerCommand("_executeCodeActionProvider",function(i,e,t,r,n){return kx(this,void 0,void 0,function*(){if(!(e instanceof yt))throw ko();let{codeActionProvider:o}=i.get(Se),s=i.get(Di).getModel(e);if(!s)throw ko();let a=Qe.isISelection(t)?Qe.liftSelection(t):B.isIRange(t)?s.validateRange(t):void 0;if(!a)throw ko();let l=typeof r=="string"?new nt(r):void 0,c=yield A0(o,s,a,{type:1,triggerAction:Vr.Default,filter:{includeSourceActions:!0,include:l}},ba.None,st.None),d=[],u=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let h=0;hh.action)}finally{setTimeout(()=>c.dispose(),100)}})})});var Jme,ege,MT,L0,Cq=N(()=>{F3();Ku();Sd();jr();Jme=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ege=function(i,e){return function(t,r){e(t,r,i)}},L0=MT=class{constructor(e){this.keybindingService=e}getResolver(){let e=new rf(()=>this.keybindingService.getKeybindings().filter(t=>MT.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let r=t.commandArgs;return t.command===T0?r={kind:nt.SourceOrganizeImports.value}:t.command===I0&&(r={kind:nt.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Cd.fromUser(r,{kind:nt.None,apply:"never"}))}));return t=>{if(t.kind){let r=this.bestKeybindingForCodeAction(t,e.value);return r==null?void 0:r.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;let r=new nt(e.kind);return t.filter(n=>n.kind.contains(r)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,o)=>n?n.kind.contains(o.kind)?o:n:o,void 0)}};L0.codeActionCommands=[Ix,Ex,Ax,T0,I0];L0=MT=Jme([ege(0,Kt)],L0)});var Sq=N(()=>{});var kq=N(()=>{Sq()});var Eq=N(()=>{});var Tq=N(()=>{Eq()});var D0=N(()=>{kq();Tq()});var Iq=N(()=>{});var Aq=N(()=>{Iq()});var iOe,rOe,nOe,oOe,sOe,aOe,lOe,cOe,dOe,uOe,hOe,fOe,pOe,mOe,gOe,bOe,vOe,_Oe,yOe,wOe,xOe,COe,SOe,kOe,EOe,TOe,IOe,AOe,LOe,DOe,MOe,NOe,ROe,Lx=N(()=>{Aq();He();tn();iOe=je("symbolIcon.arrayForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),rOe=je("symbolIcon.booleanForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),nOe=je("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},b("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),oOe=je("symbolIcon.colorForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),sOe=je("symbolIcon.constantForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),aOe=je("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},b("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),lOe=je("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},b("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),cOe=je("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},b("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),dOe=je("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},b("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),uOe=je("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},b("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),hOe=je("symbolIcon.fileForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),fOe=je("symbolIcon.folderForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),pOe=je("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},b("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),mOe=je("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},b("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),gOe=je("symbolIcon.keyForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),bOe=je("symbolIcon.keywordForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),vOe=je("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},b("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_Oe=je("symbolIcon.moduleForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yOe=je("symbolIcon.namespaceForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),wOe=je("symbolIcon.nullForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),xOe=je("symbolIcon.numberForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),COe=je("symbolIcon.objectForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),SOe=je("symbolIcon.operatorForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),kOe=je("symbolIcon.packageForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),EOe=je("symbolIcon.propertyForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),TOe=je("symbolIcon.referenceForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),IOe=je("symbolIcon.snippetForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),AOe=je("symbolIcon.stringForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),LOe=je("symbolIcon.structForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),DOe=je("symbolIcon.textForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),MOe=je("symbolIcon.typeParameterForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),NOe=je("symbolIcon.unitForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ROe=je("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},b("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))});function Dq(i,e,t){if(!e)return i.map(o=>({kind:"action",item:o,group:Lq,disabled:!!o.action.disabled,label:o.action.disabled||o.action.title}));let r=tge.map(o=>({group:o,actions:[]}));for(let o of i){let s=o.action.kind?new nt(o.action.kind):nt.None;for(let a of r)if(a.group.kind.contains(s)){a.actions.push(o);break}}let n=[];for(let o of r)if(o.actions.length){n.push({kind:"header",group:o.group});for(let s of o.actions)n.push({kind:"action",item:s,group:o.group,label:s.action.title,disabled:!!s.action.disabled,keybinding:t(s.action)})}return n}var Lq,tge,Mq=N(()=>{D0();Zr();Sd();Lx();He();Lq=Object.freeze({kind:nt.Empty,title:b("codeAction.widget.id.more","More Actions...")}),tge=Object.freeze([{kind:nt.QuickFix,title:b("codeAction.widget.id.quickfix","Quick Fix")},{kind:nt.RefactorExtract,title:b("codeAction.widget.id.extract","Extract"),icon:pt.wrench},{kind:nt.RefactorInline,title:b("codeAction.widget.id.inline","Inline"),icon:pt.wrench},{kind:nt.RefactorRewrite,title:b("codeAction.widget.id.convert","Rewrite"),icon:pt.wrench},{kind:nt.RefactorMove,title:b("codeAction.widget.id.move","Move"),icon:pt.wrench},{kind:nt.SurroundWith,title:b("codeAction.widget.id.surround","Surround With"),icon:pt.symbolSnippet},{kind:nt.Source,title:b("codeAction.widget.id.source","Source Action"),icon:pt.symbolFile},Lq])});var Nq=N(()=>{});var Rq=N(()=>{Nq()});var ige,rge,NT,ip,Jl,RT=N(()=>{Ht();oF();Zr();ei();ke();An();Rq();BO();Ku();He();jr();ige=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},rge=function(i,e){return function(t,r){e(t,r,i)}};(function(i){i.Hidden={type:0};class e{constructor(r,n,o,s){this.actions=r,this.trigger=n,this.editorPosition=o,this.widgetPosition=s,this.type=1}}i.Showing=e})(ip||(ip={}));Jl=NT=class extends ce{constructor(e,t){super(),this._editor=e,this._onClick=this._register(new Je),this.onClick=this._onClick.event,this._state=ip.Hidden,this._domNode=Ae("div.lightBulbWidget"),this._register(I_.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(r=>{let n=this._editor.getModel();(this.state.type!==1||!n||this.state.editorPosition.lineNumber>=n.getLineCount())&&this.hide()})),this._register(rP(this._domNode,r=>{if(this.state.type!==1)return;this._editor.focus(),r.preventDefault();let{top:n,height:o}=Zi(this._domNode),s=this._editor.getOption(65),a=Math.floor(s/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(r.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(63)&&!this._editor.getOption(63).enabled&&this.hide()})),this._register(ci.runAndSubscribe(t.onDidUpdateKeybindings,()=>{var r,n,o,s;this._preferredKbLabel=(n=(r=t.lookupKeybinding(Tx))===null||r===void 0?void 0:r.getLabel())!==null&&n!==void 0?n:void 0,this._quickFixKbLabel=(s=(o=t.lookupKeybinding(tp))===null||o===void 0?void 0:o.getLabel())!==null&&s!==void 0?s: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,r){if(e.validActions.length<=0)return this.hide();let n=this._editor.getOptions();if(!n.get(63).enabled)return this.hide();let o=this._editor.getModel();if(!o)return this.hide();let{lineNumber:s,column:a}=o.validatePosition(r),l=o.getOptions().tabSize,c=n.get(49),d=o.getLineContent(s),u=Ym(d,l),h=c.spaceWidth*u>22,f=g=>g>2&&this._editor.getTopForLineNumber(g)===this._editor.getTopForLineNumber(g-1),m=s;if(!h){if(s>1&&!f(s-1))m-=1;else if(!f(s+1))m+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new ip.Showing(e,t,r,{position:{lineNumber:m,column:1},preference:NT._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==ip.Hidden&&(this.state=ip.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(..._t.asClassNameArray(pt.lightBulb)),this._domNode.classList.add(..._t.asClassNameArray(pt.lightbulbAutofix)),this._preferredKbLabel)){this.title=b("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel);return}this._domNode.classList.remove(..._t.asClassNameArray(pt.lightbulbAutofix)),this._domNode.classList.add(..._t.asClassNameArray(pt.lightBulb)),this._quickFixKbLabel?this.title=b("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=b("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};Jl.ID="editor.contrib.lightbulbWidget";Jl._posPref=[0];Jl=NT=ige([rge(1,Kt)],Jl)});var Pq=N(()=>{});var Oq=N(()=>{Pq()});var Fq=N(()=>{});var zq=N(()=>{Fq()});function OT(i,e,t){return Hq(this,void 0,void 0,function*(){try{return yield i.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:oge(t)})}catch(r){return ft(r),!1}})}function oge(i){return i===!0?!0:i&&Array.isArray(i.enabledCommands)?i.enabledCommands:!1}var nge,Bq,Hq,PT,to,kd=N(()=>{dF();ck();qt();ei();ke();zq();uF();es();Q3();Pre();is();nge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Bq=function(i,e){return function(t,r){e(t,r,i)}},Hq=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},to=PT=class{constructor(e,t,r){this._options=e,this._languageService=t,this._openerService=r,this._onDidRenderAsync=new Je,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,r){if(!e)return{element:document.createElement("span"),dispose:()=>{}};let n=new le,o=n.add(A_(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),r));return o.element.classList.add("rendered-markdown"),{element:o.element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(r,n)=>Hq(this,void 0,void 0,function*(){var o,s,a;let l;r?l=this._languageService.getLanguageIdByLanguageName(r):this._options.editor&&(l=(o=this._options.editor.getModel())===null||o===void 0?void 0:o.getLanguageId()),l||(l=lf);let c=yield hF(this._languageService,n,l),d=document.createElement("span");if(d.innerHTML=(a=(s=PT._ttpTokenizer)===null||s===void 0?void 0:s.createHTML(c))!==null&&a!==void 0?a:c,this._options.editor){let u=this._options.editor.getOption(49);L_(d,u)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(d.style.fontSize=this._options.codeBlockFontSize),d}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:r=>OT(this._openerService,r,e.isTrusted),disposables:t}}}};to._ttpTokenizer=xf("tokenizeToString",{createHTML(i){return i}});to=PT=nge([Bq(1,er),Bq(2,tr)],to)});var sge,Uq,Dx,qr,age,Mx,M0=N(()=>{dF();Io();ei();Es();ke();Oq();lt();et();kd();He();wt();is();Ht();sge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Uq=function(i,e){return function(t,r){e(t,r,i)}},qr=Dx=class{static get(e){return e.getContribution(Dx.ID)}constructor(e,t,r){this._openerService=r,this._messageWidget=new Wi,this._messageListeners=new le,this._mouseOverMessage=!1,this._editor=e,this._visible=Dx.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){ar(d_(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=d_(e)?A_(e,{actionHandler:{callback:n=>OT(this._openerService,n,d_(e)?e.isTrusted:void 0),disposables:this._messageListeners}}):void 0,this._messageWidget.value=new Mx(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(ci.debounce(this._editor.onDidBlurEditorText,(n,o)=>o,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&aP(document.activeElement,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(Lt(this._messageWidget.value.getDomNode(),bi.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(Lt(this._messageWidget.value.getDomNode(),bi.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let r;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(r?r.containsPosition(n.target.position)||this.closeMessage():r=new B(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(Mx.fadeOut(this._messageWidget.value))}};qr.ID="editor.contrib.messageController";qr.MESSAGE_VISIBLE=new ht("messageVisible",!1,b("messageVisible","Whether the editor is currently showing an inline message"));qr=Dx=sge([Uq(1,it),Uq(2,tr)],qr);age=Fi.bindToContribution(qr.get);We(new age({id:"leaveEditorMessage",precondition:qr.MESSAGE_VISIBLE,handler:i=>i.closeMessage(),kbOpts:{weight:100+30,primary:9}}));Mx=class{static fadeOut(e){let t=()=>{e.dispose(),clearTimeout(r),e.getDomNode().removeEventListener("animationend",t)},r=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:r},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:r},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";let o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);let s=document.createElement("div");typeof n=="string"?(s.classList.add("message"),s.textContent=n):(n.classList.add("message"),s.appendChild(n)),this._domNode.appendChild(s);let 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)}};Ue(qr.ID,qr,4)});var jq=N(()=>{});var FT=N(()=>{jq()});function lge(i){if(i.kind==="action")return i.label}function Vq(i){return i.replace(/\r\n|\r|\n/g," ")}var Wq,zT,jT,WT,BT,HT,UT,Nx,Rx,qq=N(()=>{Ht();vF();mF();Zr();ke();Tn();An();FT();He();yl();jr();O_();tn();Wq=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},zT=function(i,e){return function(t,r){e(t,r,i)}},jT="acceptSelectedCodeAction",WT="previewSelectedCodeAction",BT=class{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");let t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,r){var n,o;r.text.textContent=(o=(n=e.group)===null||n===void 0?void 0:n.title)!==null&&o!==void 0?o:""}disposeTemplate(e){}},HT=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);let t=document.createElement("div");t.className="icon",e.append(t);let r=document.createElement("span");r.className="title",e.append(r);let n=new P_(e,jv);return{container:e,icon:t,text:r,keybinding:n}}renderElement(e,t,r){var n,o,s;if(!((n=e.group)===null||n===void 0)&&n.icon?(r.icon.className=_t.asClassName(e.group.icon),e.group.icon.color&&(r.icon.style.color=da(e.group.icon.color.id))):(r.icon.className=_t.asClassName(pt.lightBulb),r.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;r.text.textContent=Vq(e.label),r.keybinding.set(e.keybinding),dP(!!e.keybinding,r.keybinding.element);let a=(o=this._keybindingService.lookupKeybinding(jT))===null||o===void 0?void 0:o.getLabel(),l=(s=this._keybindingService.lookupKeybinding(WT))===null||s===void 0?void 0:s.getLabel();r.container.classList.toggle("option-disabled",e.disabled),e.disabled?r.container.title=e.label:a&&l?this._supportsPreview?r.container.title=b({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",a,l):r.container.title=b({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",a):r.container.title=""}disposeTemplate(e){}};HT=Wq([zT(1,Kt)],HT);UT=class extends UIEvent{constructor(){super("acceptSelectedAction")}},Nx=class extends UIEvent{constructor(){super("previewSelectedAction")}};Rx=class extends ce{constructor(e,t,r,n,o,s){super(),this._delegate=n,this._contextViewService=o,this._keybindingService=s,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");let a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new R_(e,this.domNode,a,[new HT(t,this._keybindingService),new BT],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:lge},accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let c=l.label?Vq(l==null?void 0:l.label):"";return l.disabled&&(c=b({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",c,l.disabled)),c}return null},getWidgetAriaLabel:()=>b({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(yF),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this._list.domFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=r,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._contextViewService.hideContextView()}layout(e){let t=this._allMenuItems.filter(c=>c.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);let o=this._allMenuItems.map((c,d)=>{let u=document.getElementById(this._list.getElementID(d));if(u){u.style.width="auto";let h=u.getBoundingClientRect().width;return u.style.width="",h}return 0}),s=Math.max(...o,e),a=.7,l=Math.min(n,document.body.clientHeight*a);return this._list.layout(l,s),this.domNode.style.height=`${l}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){let t=this._list.getFocus();if(t.length===0)return;let r=t[0],n=this._list.element(r);if(!this.focusCondition(n))return;let o=e?new Nx:new UT;this._list.setSelection([r],o)}onListSelection(e){if(!e.elements.length)return;let t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof Nx):this._list.setSelection([])}onListHover(e){this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};Rx=Wq([zT(4,Gc),zT(5,Kt)],Rx)});var cge,VT,$u,Ed,Gu,N0,Kq=N(()=>{Ht();ng();ke();FT();He();qq();Ji();wt();yl();hl();Ut();tn();cge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},VT=function(i,e){return function(t,r){e(t,r,i)}};je("actionBar.toggledBackground",{dark:gl,light:gl,hcDark:gl,hcLight:gl},b("actionBar.toggledBackground","Background color for toggled action items in action bar."));$u={Visible:new ht("codeActionMenuVisible",!1,b("codeActionMenuVisible","Whether the action widget list is visible"))},Ed=Qr("actionWidgetService"),Gu=class extends ce{get isVisible(){return $u.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,r){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=r,this._list=this._register(new Wi)}show(e,t,r,n,o,s,a){let l=$u.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(Rx,e,t,r,n);this._contextViewService.showContextView({getAnchor:()=>o,render:d=>(l.set(!0),this._renderWidget(d,c,a!=null?a:[])),onHide:d=>{l.reset(),this._onWidgetClosed(d)}},s,!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(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,r){var n;let o=document.createElement("div");if(o.classList.add("action-widget"),e.appendChild(o),this._list.value=t,this._list.value)o.appendChild(this._list.value.domNode);else throw new Error("List has no value");let s=new le,a=document.createElement("div"),l=e.appendChild(a);l.classList.add("context-view-block"),s.add(Lt(l,bi.MOUSE_DOWN,m=>m.stopPropagation()));let c=document.createElement("div"),d=e.appendChild(c);d.classList.add("context-view-pointerBlock"),s.add(Lt(d,bi.POINTER_MOVE,()=>d.remove())),s.add(Lt(d,bi.MOUSE_DOWN,()=>d.remove()));let u=0;if(r.length){let m=this._createActionBar(".action-widget-action-bar",r);m&&(o.appendChild(m.getContainer().parentElement),s.add(m),u=m.getContainer().offsetWidth)}let h=(n=this._list.value)===null||n===void 0?void 0:n.layout(u);o.style.width=`${h}px`;let f=s.add(xs(e));return s.add(f.onDidBlur(()=>this.hide())),s}_createActionBar(e,t){if(!t.length)return;let r=Ae(e),n=new Ls(r);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};Gu=cge([VT(0,Gc),VT(1,it),VT(2,Ke)],Gu);en(Ed,Gu,1);N0=100+1e3;Si(class extends Jo{constructor(){super({id:"hideCodeActionWidget",title:{value:b("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:$u.Visible,keybinding:{weight:N0,primary:9,secondary:[1033]}})}run(i){i.get(Ed).hide()}});Si(class extends Jo{constructor(){super({id:"selectPrevCodeAction",title:{value:b("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:$u.Visible,keybinding:{weight:N0,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(i){let e=i.get(Ed);e instanceof Gu&&e.focusPrevious()}});Si(class extends Jo{constructor(){super({id:"selectNextCodeAction",title:{value:b("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:$u.Visible,keybinding:{weight:N0,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(i){let e=i.get(Ed);e instanceof Gu&&e.focusNext()}});Si(class extends Jo{constructor(){super({id:jT,title:{value:b("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:$u.Visible,keybinding:{weight:N0,primary:3,secondary:[2137]}})}run(i){let e=i.get(Ed);e instanceof Gu&&e.acceptSelected()}});Si(class extends Jo{constructor(){super({id:WT,title:{value:b("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:$u.Visible,keybinding:{weight:N0,primary:2051}})}run(i){let e=i.get(Ed);e instanceof Gu&&e.acceptSelected(!0)}})});var KT,qT,Yu,dge,Px,$T=N(()=>{jt();qt();ei();ke();Lo();wt();$c();Sd();Ku();KT=new ht("supportedCodeAction",""),qT=class extends ce{constructor(e,t,r,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=r,this._delay=n,this._autoTriggerTimer=this._register(new aa),this._register(this._markerService.onMarkerChanged(o=>this._onMarkerChanges(o))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(e){let t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){let t=this._editor.getModel();t&&e.some(r=>c_(r,t.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:Vr.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),r=this._editor.getSelection();if(r.isEmpty()&&e.type===2){let{lineNumber:n,column:o}=r.getPosition(),s=t.getLineContent(n);if(s.length===0)return;if(o===1){if(/\s/.test(s[0]))return}else if(o===t.getLineMaxColumn(n)){if(/\s/.test(s[s.length-1]))return}else if(/\s/.test(s[o-2])&&/\s/.test(s[o-1]))return}return r}};(function(i){i.Empty={type:0};class e{constructor(r,n,o){this.trigger=r,this.position=n,this._cancellablePromise=o,this.type=1,this.actions=o.catch(s=>{if(Yo(s))return dge;throw s})}cancel(){this._cancellablePromise.cancel()}}i.Triggered=e})(Yu||(Yu={}));dge=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1}),Px=class extends ce{constructor(e,t,r,n,o){super(),this._editor=e,this._registry=t,this._markerService=r,this._progressService=o,this._codeActionOracle=this._register(new Wi),this._state=Yu.Empty,this._onDidChangeState=this._register(new Je),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=KT.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(Yu.Empty,!0))}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(Yu.Empty);let e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(89)){let t=this._registry.all(e).flatMap(r=>{var n;return(n=r.providedCodeActionKinds)!==null&&n!==void 0?n:[]});this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new qT(this._editor,this._markerService,r=>{var n;if(!r){this.setState(Yu.Empty);return}let o=Jt(s=>A0(this._registry,e,r.selection,r.trigger,ba.None,s));r.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(o,250)),this.setState(new Yu.Triggered(r.trigger,r.selection.getStartPosition(),o))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:Vr.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 uge,ec,Ox,GT,Ha,Fx=N(()=>{Ht();qt();F3();ke();di();Pt();Ku();Cq();Mq();RT();M0();He();Kq();Vi();Sr();wt();Ut();F_();$c();Sd();$T();uge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ec=function(i,e){return function(t,r){e(t,r,i)}},Ox=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Ha=GT=class extends ce{static get(e){return e.getContribution(GT.ID)}constructor(e,t,r,n,o,s,a,l,c,d){super(),this._commandService=a,this._configurationService=l,this._actionWidgetService=c,this._instantiationService=d,this._activeCodeActions=this._register(new Wi),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new Px(this._editor,o.codeActionProvider,t,r,s)),this._register(this._model.onDidChangeState(u=>this.update(u))),this._lightBulbWidget=new rf(()=>{let u=this._editor.getContribution(Jl.ID);return u&&this._register(u.onClick(h=>this.showCodeActionList(h.actions,h,{includeDisabledActions:!1,fromLightbulb:!0}))),u}),this._resolver=n.createInstance(L0),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){this._disposed=!0,super.dispose()}showCodeActions(e,t,r){return this.showCodeActionList(t,r,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,r,n){var o;if(!this._editor.hasModel())return;(o=qr.get(this._editor))===null||o===void 0||o.closeMessage();let s=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:r,autoApply:n,context:{notAvailableMessage:e,position:s}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t,r){return Ox(this,void 0,void 0,function*(){try{yield this._instantiationService.invokeFunction(xq,e,E0.FromCodeActions,{preview:r,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:Vr.QuickFix,filter:{}})}})}update(e){var t,r,n,o,s,a,l;return Ox(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let c;try{c=yield e.actions}catch(d){ft(d);return}if(!this._disposed)if((r=this._lightBulbWidget.value)===null||r===void 0||r.update(c,e.trigger,e.position),e.trigger.type===1){if(!((n=e.trigger.filter)===null||n===void 0)&&n.include){let u=this.tryGetValidActionToApply(e.trigger,c);if(u){try{(o=this._lightBulbWidget.value)===null||o===void 0||o.hide(),yield this._applyCodeAction(u,!1,!1)}finally{c.dispose()}return}if(e.trigger.context){let h=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,c);if(h&&h.action.disabled){(s=qr.get(this._editor))===null||s===void 0||s.showMessage(h.action.disabled,e.trigger.context.position),c.dispose();return}}}let d=!!(!((a=e.trigger.filter)===null||a===void 0)&&a.include);if(e.trigger.context&&(!c.allActions.length||!d&&!c.validActions.length)){(l=qr.get(this._editor))===null||l===void 0||l.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=c,c.dispose();return}this._activeCodeActions.value=c,this.showCodeActionList(c,this.toCoords(e.position),{includeDisabledActions:d,fromLightbulb:!1})}else this._actionWidgetService.isVisible?c.dispose():this._activeCodeActions.value=c})}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:r})=>r.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]}showCodeActionList(e,t,r){return Ox(this,void 0,void 0,function*(){let n=this._editor.getDomNode();if(!n)return;let o=r.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!o.length)return;let s=Ie.isIPosition(t)?this.toCoords(t):t,a={onSelect:(l,c)=>Ox(this,void 0,void 0,function*(){this._applyCodeAction(l,!0,!!c),this._actionWidgetService.hide()}),onHide:()=>{var l;(l=this._editor)===null||l===void 0||l.focus()}};this._actionWidgetService.show("codeActionWidget",!0,Dq(o,this._shouldShowHeaders(),this._resolver.getResolver()),a,s,n,this._getActionBarActions(e,t,r))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();let t=this._editor.getScrolledVisiblePosition(e),r=Zi(this._editor.getDomNode()),n=r.left+t.left,o=r.top+t.top+t.height;return{x:n,y:o}}_shouldShowHeaders(){var e;let 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,r){if(r.fromLightbulb)return[];let n=e.documentation.map(o=>{var s;return{id:o.id,label:o.title,tooltip:(s=o.tooltip)!==null&&s!==void 0?s:"",class:void 0,enabled:!0,run:()=>{var a;return this._commandService.executeCommand(o.id,...(a=o.arguments)!==null&&a!==void 0?a:[])}}});return r.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:b("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,r))}:{id:"showMoreActions",label:b("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,r))}),n}};Ha.ID="editor.contrib.codeActionController";Ha=GT=uge([ec(1,og),ec(2,it),ec(3,Ke),ec(4,Se),ec(5,vl),ec(6,_i),ec(7,Mt),ec(8,Ed),ec(9,Ke)],Ha)});function R0(i){return fe.regex(KT.keys()[0],new RegExp("(\\s|^)"+cl(i.value)+"\\b"))}function Xu(i,e,t,r,n=Vr.Default){if(i.hasModel()){let o=Ha.get(i);o==null||o.manualTriggerAtCurrentPosition(e,n,t,r)}}var YT,zx,Bx,Hx,Ux,jx,Wx,Vx,$q=N(()=>{Ni();lt();ti();Ku();He();wt();Sd();Fx();$T();YT={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:b("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:b("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[b("args.schema.apply.first","Always apply the first returned code action."),b("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),b("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:b("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};zx=class extends de{constructor(){super({id:tp,label:b("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:fe.and(F.writable,F.hasCodeActionsProvider),kbOpts:{kbExpr:F.textInputFocus,primary:2137,weight:100}})}run(e,t){return Xu(t,b("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,Vr.QuickFix)}},Bx=class extends Fi{constructor(){super({id:Ex,precondition:fe.and(F.writable,F.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:YT}]}})}runEditorCommand(e,t,r){let n=Cd.fromUser(r,{kind:nt.Empty,apply:"ifSingle"});return Xu(t,typeof(r==null?void 0:r.kind)=="string"?n.preferred?b("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",r.kind):b("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",r.kind):n.preferred?b("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):b("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}},Hx=class extends de{constructor(){super({id:Ix,label:b("refactor.label","Refactor..."),alias:"Refactor...",precondition:fe.and(F.writable,F.hasCodeActionsProvider),kbOpts:{kbExpr:F.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:fe.and(F.writable,R0(nt.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:YT}]}})}run(e,t,r){let n=Cd.fromUser(r,{kind:nt.Refactor,apply:"never"});return Xu(t,typeof(r==null?void 0:r.kind)=="string"?n.preferred?b("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",r.kind):b("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",r.kind):n.preferred?b("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):b("editor.action.refactor.noneMessage","No refactorings available"),{include:nt.Refactor.contains(n.kind)?n.kind:nt.None,onlyIncludePreferredActions:n.preferred},n.apply,Vr.Refactor)}},Ux=class extends de{constructor(){super({id:Ax,label:b("source.label","Source Action..."),alias:"Source Action...",precondition:fe.and(F.writable,F.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:fe.and(F.writable,R0(nt.Source))},description:{description:"Source Action...",args:[{name:"args",schema:YT}]}})}run(e,t,r){let n=Cd.fromUser(r,{kind:nt.Source,apply:"never"});return Xu(t,typeof(r==null?void 0:r.kind)=="string"?n.preferred?b("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",r.kind):b("editor.action.source.noneMessage.kind","No source actions for '{0}' available",r.kind):n.preferred?b("editor.action.source.noneMessage.preferred","No preferred source actions available"):b("editor.action.source.noneMessage","No source actions available"),{include:nt.Source.contains(n.kind)?n.kind:nt.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,Vr.SourceAction)}},jx=class extends de{constructor(){super({id:T0,label:b("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:fe.and(F.writable,R0(nt.SourceOrganizeImports)),kbOpts:{kbExpr:F.textInputFocus,primary:1581,weight:100}})}run(e,t){return Xu(t,b("editor.action.organize.noneMessage","No organize imports action available"),{include:nt.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",Vr.OrganizeImports)}},Wx=class extends de{constructor(){super({id:I0,label:b("fixAll.label","Fix All"),alias:"Fix All",precondition:fe.and(F.writable,R0(nt.SourceFixAll))})}run(e,t){return Xu(t,b("fixAll.noneMessage","No fix all action available"),{include:nt.SourceFixAll,includeSourceActions:!0},"ifSingle",Vr.FixAll)}},Vx=class extends de{constructor(){super({id:Tx,label:b("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:fe.and(F.writable,R0(nt.QuickFix)),kbOpts:{kbExpr:F.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return Xu(t,b("editor.action.autoFix.noneMessage","No auto fixes available"),{include:nt.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",Vr.AutoFix)}}});var XT=N(()=>{lt();tF();$q();Fx();RT();He();X3();dl();Ue(Ha.ID,Ha,3);Ue(Jl.ID,Jl,4);ee(zx);ee(Hx);ee(Ux);ee(jx);ee(Vx);ee(Wx);We(new Bx);Jr.as(af.Configuration).registerConfiguration(Object.assign(Object.assign({},k_),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:b("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}))});function QT(i,e,t){return Gq(this,void 0,void 0,function*(){let r=i.ordered(e),n=new Map,o=new rp,s=r.map((a,l)=>Gq(this,void 0,void 0,function*(){n.set(a,l);try{let c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&o.add(c,a)}catch(c){Xt(c)}}));return yield Promise.all(s),o.lenses=o.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),o})}var Gq,rp,ZT=N(()=>{ki();qt();ke();zr();Ir();Xo();Vi();Pt();Gq=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},rp=class{constructor(){this.lenses=[],this._disposables=new le}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(let r of e.lenses)this.lenses.push({symbol:r,provider:t})}};Dt.registerCommand("_executeCodeLensProvider",function(i,...e){let[t,r]=e;Bt(yt.isUri(t)),Bt(typeof r=="number"||!r);let{codeLensProvider:n}=i.get(Se),o=i.get(Di).getModel(t);if(!o)throw ko();let s=[],a=new le;return QT(n,o,st.None).then(l=>{a.add(l);let c=[];for(let d of l.lenses)r==null||d.symbol.command?s.push(d.symbol):r-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(o,d.symbol,st.None)).then(u=>s.push(u||d.symbol)));return Promise.all(c)}).then(()=>s).finally(()=>{setTimeout(()=>a.dispose(),100)})})});var hge,fge,eI,qx,JT,Yq=N(()=>{jt();H9();df();et();ZT();hl();Ut();wu();hge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},fge=function(i,e){return function(t,r){e(t,r,i)}},eI=Qr("ICodeLensCache"),qx=class{constructor(e,t){this.lineCount=e,this.data=t}},JT=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new sa(20,.75);let t="codelens/cache";tO(()=>e.remove(t,1));let r="codelens/cache2",n=e.get(r,1,"{}");this._deserialize(n),Ov(e.onWillSaveState)(o=>{o.reason===B_.SHUTDOWN&&e.store(r,this._serialize(),1,1)})}put(e,t){let r=t.lenses.map(s=>{var a;return{range:s.symbol.range,command:s.symbol.command&&{id:"",title:(a=s.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new rp;n.add({lenses:r,dispose:()=>{}},this._fakeProvider);let o=new qx(e.getLineCount(),n);this._cache.set(e.uri.toString(),o)}get(e){let 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(){let e=Object.create(null);for(let[t,r]of this._cache){let n=new Set;for(let o of r.data.lenses)n.add(o.symbol.range.startLineNumber);e[t]={lineCount:r.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{let t=JSON.parse(e);for(let r in t){let n=t[r],o=[];for(let a of n.lines)o.push({range:new B(a,1,a,11)});let s=new rp;s.add({lenses:o,dispose(){}},this._fakeProvider),this._cache.set(r,new qx(n.lineCount,s))}}catch(t){}}};JT=hge([fge(0,Yn)],JT);en(eI,JT,1)});var Xq=N(()=>{});var Qq=N(()=>{Xq()});var tI,Kx,np,Zq,P0,Jq=N(()=>{Ht();Rre();Qq();et();Ur();tI=class{constructor(e,t,r){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=r,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")}},Kx=class i{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${i._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();let r=[],n=!1;for(let o=0;o{c.symbol.command&&l.push(c.symbol),r.addDecoration({range:c.symbol.range,options:Zq},u=>this._decorationIds[d]=u),a?a=B.plusRange(a,c.symbol.range):a=B.lift(c.symbol.range)}),this._viewZone=new tI(a.startLineNumber-1,o,s),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 Kx(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)=>{let r=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(r&&B.isEmpty(n.range)===r.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((r,n)=>{t.addDecoration({range:r.symbol.range,options:Zq},o=>this._decorationIds[n]=o)})}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{jt();qt();ke();z_();lt();eg();ti();ZT();Yq();Jq();He();Vi();Mo();wl();Ds();Pt();pge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},O0=function(i,e){return function(t,r){e(t,r,i)}},mge=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},op=class{constructor(e,t,r,n,o,s){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=o,this._codeLensCache=s,this._disposables=new le,this._localToDispose=new le,this._lenses=[],this._oldCodeLensModels=new le,this._provideCodeLensDebounce=r.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=r.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new ui(()=>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(49)||a.hasChanged(18)||a.hasChanged(17))&&this._updateLensStyle(),a.hasChanged(16)&&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(){let e=Math.max(1.3,this._editor.getOption(65)/this._editor.getOption(51)),t=this._editor.getOption(18);return(!t||t<5)&&(t=this._editor.getOption(51)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){let{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),r=this._editor.getOption(17),n=this._editor.getOption(49),{style:o}=this._editor.getContainerDomNode();o.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),o.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),o.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),r&&(o.setProperty("--vscode-editorCodeLens-fontFamily",r),o.setProperty("--vscode-editorCodeLens-fontFamilyDefault",S_.fontFamily)),this._editor.changeViewZones(s=>{for(let a of this._lenses)a.updateHeight(e,s)})}_localDispose(){var e,t,r;(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(),(r=this._currentCodeLensModel)===null||r===void 0||r.dispose()}_onModelChange(){this._localDispose();let e=this._editor.getModel();if(!e||!this._editor.getOption(16))return;let t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(ml(()=>{let n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(let n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){let o=n.onDidChange(()=>r.schedule());this._localToDispose.add(o)}let r=new ui(()=>{var n;let o=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=Jt(s=>QT(this._languageFeaturesService.codeLensProvider,e,s)),this._getCodeLensModelPromise.then(s=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=s,this._codeLensCache.put(e,s);let a=this._provideCodeLensDebounce.update(e,Date.now()-o);r.delay=a,this._renderCodeLensSymbols(s),this._resolveCodeLensesInViewportSoon()},ft)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(r),this._localToDispose.add(ri(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{var n;this._editor.changeDecorations(o=>{this._editor.changeViewZones(s=>{let a=[],l=-1;this._lenses.forEach(d=>{!d.isValid()||l===d.getLineNumber()?a.push(d):(d.update(s),l=d.getLineNumber())});let c=new np;a.forEach(d=>{d.dispose(c,s),this._lenses.splice(this._lenses.indexOf(d),1)}),c.commit(o)})}),r.schedule(),this._resolveCodeLensesScheduler.cancel(),(n=this._resolveCodeLensesPromise)===null||n===void 0||n.cancel(),this._resolveCodeLensesPromise=void 0})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{r.schedule()})),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(ri(()=>{if(this._editor.getModel()){let n=va.capture(this._editor);this._editor.changeDecorations(o=>{this._editor.changeViewZones(s=>{this._disposeAllLenses(o,s)})}),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 o=n.target.element;if((o==null?void 0:o.tagName)==="SPAN"&&(o=o.parentElement),(o==null?void 0:o.tagName)==="A")for(let s of this._lenses){let a=s.getCommand(o);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),r.schedule()}_disposeAllLenses(e,t){let r=new np;for(let n of this._lenses)n.dispose(r,t);e&&r.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;let t=this._editor.getModel().getLineCount(),r=[],n;for(let a of e.lenses){let l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],r.push(n)))}if(!r.length&&!this._lenses.length)return;let o=va.capture(this._editor),s=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{let c=new np,d=0,u=0;for(;uthis._resolveCodeLensesInViewportSoon())),d++,u++)}for(;dthis._resolveCodeLensesInViewportSoon())),u++;c.commit(a)})}),o.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;let t=this._editor.getModel();if(!t)return;let r=[],n=[];if(this._lenses.forEach(a=>{let l=a.computeIfNecessary(t);l&&(r.push(l),n.push(a))}),r.length===0)return;let o=Date.now(),s=Jt(a=>{let l=r.map((c,d)=>{let u=new Array(c.length),h=c.map((f,m)=>!f.symbol.command&&typeof f.provider.resolveCodeLens=="function"?Promise.resolve(f.provider.resolveCodeLens(t,f.symbol,a)).then(g=>{u[m]=g},Xt):(u[m]=f.symbol,Promise.resolve(void 0)));return Promise.all(h).then(()=>{!a.isCancellationRequested&&!n[d].isDisposed()&&n[d].updateCommands(u)})});return Promise.all(l)});this._resolveCodeLensesPromise=s,this._resolveCodeLensesPromise.then(()=>{let a=this._resolveCodeLensesDebounce.update(t,Date.now()-o);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{ft(a),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};op.ID="css.editor.codeLens";op=pge([O0(1,Se),O0(2,lr),O0(3,_i),O0(4,Ri),O0(5,eI)],op);Ue(op.ID,op,1);ee(class extends de{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:F.hasCodeLensProvider,label:b("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return mge(this,void 0,void 0,function*(){if(!t.hasModel())return;let r=e.get(nn),n=e.get(_i),o=e.get(Ri),s=t.getSelection().positionLineNumber,a=t.getContribution(op.ID);if(!a)return;let l=a.getModel();if(!l)return;let c=[];for(let u of l.lenses)u.symbol.command&&u.symbol.range.startLineNumber===s&&c.push({label:u.symbol.command.title,command:u.symbol.command});if(c.length===0)return;let d=yield r.pick(c,{canPickMany:!1});if(d){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(d.command.id,...d.command.arguments||[])}catch(u){o.error(u)}}})}})});var tc,rI=N(()=>{_a();di();et();Ar();tc=class i{constructor(e,t,r){this.languageConfigurationService=r,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,r){if(r<0)return!1;let n=t.length,o=e.length;if(r+n>o)return!1;for(let s=0;s=65&&a<=90&&a+32===l)&&!(l>=65&&l<=90&&l+32===a))return!1}return!0}_createOperationsForBlockComment(e,t,r,n,o,s){let a=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,d=e.endColumn,u=o.getLineContent(a),h=o.getLineContent(c),f=u.lastIndexOf(t,l-1+t.length),m=h.indexOf(r,d-1-r.length);if(f!==-1&&m!==-1)if(a===c)u.substring(f+t.length,m).indexOf(r)>=0&&(f=-1,m=-1);else{let w=u.substring(f+t.length),_=h.substring(0,m);(w.indexOf(r)>=0||_.indexOf(r)>=0)&&(f=-1,m=-1)}let g;f!==-1&&m!==-1?(n&&f+t.length0&&h.charCodeAt(m-1)===32&&(r=" "+r,m-=1),g=i._createRemoveBlockCommentOperations(new B(a,f+t.length+1,c,m+1),t,r)):(g=i._createAddBlockCommentOperations(e,t,r,this._insertSpace),this._usedEndToken=g.length===1?r:null);for(let w of g)s.addTrackedEditOperation(w.range,w.text)}static _createRemoveBlockCommentOperations(e,t,r){let n=[];return B.isEmpty(e)?n.push(ii.delete(new B(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+r.length))):(n.push(ii.delete(new B(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(ii.delete(new B(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+r.length)))),n}static _createAddBlockCommentOperations(e,t,r,n){let o=[];return B.isEmpty(e)?o.push(ii.replace(new B(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+r)):(o.push(ii.insert(new Ie(e.startLineNumber,e.startColumn),t+(n?" ":""))),o.push(ii.insert(new Ie(e.endLineNumber,e.endColumn),(n?" ":"")+r))),o}getEditOperations(e,t){let r=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(r);let o=e.getLanguageIdAtPosition(r,n),s=this.languageConfigurationService.getLanguageConfiguration(o).comments;!s||!s.blockCommentStartToken||!s.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,s.blockCommentStartToken,s.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){let r=t.getInverseEditOperations();if(r.length===2){let n=r[0],o=r[1];return new Qe(n.range.endLineNumber,n.range.endColumn,o.range.startLineNumber,o.range.startColumn)}else{let n=r[0].range,o=this._usedEndToken?-this._usedEndToken.length-1:0;return new Qe(n.endLineNumber,n.endColumn+o,n.endLineNumber,n.endColumn+o)}}}});var $x,eK=N(()=>{Ni();_a();di();et();Ar();rI();$x=class i{constructor(e,t,r,n,o,s,a){this.languageConfigurationService=e,this._selection=t,this._tabSize=r,this._type=n,this._insertSpace=o,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=s,this._ignoreFirstLine=a||!1}static _gatherPreflightCommentStrings(e,t,r,n){e.tokenization.tokenizeIfCheap(t);let o=e.getLanguageIdAtPosition(t,1),s=n.getLanguageConfiguration(o).comments,a=s?s.lineCommentToken:null;if(!a)return null;let l=[];for(let c=0,d=r-t+1;co?t[l].commentStrOffset=s-1:t[l].commentStrOffset=s}}}});var F0,nI,oI,sI,aI,lI=N(()=>{ll();lt();et();ti();Hr();rI();eK();He();Ji();F0=class extends de{constructor(e,t){super(t),this._type=e}run(e,t){let r=e.get(Ot);if(!t.hasModel())return;let n=t.getModel(),o=[],s=n.getOptions(),a=t.getOption(22),l=t.getSelections().map((d,u)=>({selection:d,index:u,ignoreFirstLine:!1}));l.sort((d,u)=>B.compareRangesUsingStarts(d.selection,u.selection));let c=l[0];for(let d=1;d{Ht();gF();Fc();ke();Tn();lt();ti();He();Ji();wt();yl();jr();Sr();U_();gge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Qu=function(i,e){return function(t,r){e(t,r,i)}},sp=cI=class{static get(e){return e.getContribution(cI.ID)}constructor(e,t,r,n,o,s,a,l){this._contextMenuService=t,this._contextViewService=r,this._contextKeyService=n,this._keybindingService=o,this._menuService=s,this._configurationService=a,this._workspaceContextService=l,this._toDispose=new le,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(c=>this._onContextMenu(c))),this._toDispose.add(this._editor.onMouseWheel(c=>{if(this._contextMenuIsBeingShownCount>0){let d=this._contextViewService.getContextViewElement(),u=c.srcElement;u.shadowRoot&&lP(d)===u.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(c=>{this._editor.getOption(23)&&c.keyCode===58&&(c.preventDefault(),c.stopPropagation(),this.showContextMenu())}))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(23)){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 r=!1;for(let n of this._editor.getSelections())if(n.containsPosition(e.target.position)){r=!0;break}r||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(23)||!this._editor.hasModel())return;let t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?Me.SimpleEditorContext:Me.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){let r=[],n=this._menuService.createMenu(t,this._contextKeyService),o=n.getActions({arg:e.uri});n.dispose();for(let s of o){let[,a]=s,l=0;for(let c of a)if(c instanceof Pm){let d=this._getMenuActions(e,c.item.submenu);d.length>0&&(r.push(new Nm(c.id,c.label,d)),l++)}else r.push(c),l++;l&&r.push(new Cs)}return r.length&&r.pop(),r}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;let r=this._editor.getOption(59);this._editor.updateOptions({hover:{enabled:!1}});let n=t;if(!n){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();let s=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),a=Zi(this._editor.getDomNode()),l=a.left+s.left,c=a.top+s.top+s.height;n={x:l,y:c}}let o=this._editor.getOption(125)&&!Lm;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:o?this._editor.getDomNode():void 0,getAnchor:()=>n,getActions:()=>e,getActionViewItem:s=>{let a=this._keybindingFor(s);if(a)return new rg(s,s,{label:!0,keybinding:a.getLabel(),isMenu:!0});let l=s;return typeof l.getActionViewItem=="function"?l.getActionViewItem():new rg(s,s,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:s=>this._keybindingFor(s),onHide:s=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:r})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel()||IF(this._workspaceContextService.getWorkspace()))return;let t=this._editor.getOption(71),r=0,n=c=>({id:`menu-action-${++r}`,label:c.label,tooltip:"",class:void 0,enabled:typeof c.enabled=="undefined"?!0:c.enabled,checked:c.checked,run:c.run}),o=(c,d)=>new Nm(`menu-action-${++r}`,c,d,void 0),s=(c,d,u,h,f)=>{if(!d)return n({label:c,enabled:d,run:()=>{}});let m=w=>()=>{this._configurationService.updateValue(u,w)},g=[];for(let w of f)g.push(n({label:w.label,checked:h===w.value,run:m(w.value)}));return o(c,g)},a=[];a.push(n({label:b("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new Cs),a.push(n({label:b("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(s(b("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:b("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:b("context.minimap.size.fill","Fill"),value:"fill"},{label:b("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(s(b("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:b("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:b("context.minimap.slider.always","Always"),value:"always"}]));let l=this._editor.getOption(125)&&!Lm;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:c=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};sp.ID="editor.contrib.contextmenu";sp=cI=gge([Qu(1,rs),Qu(2,Gc),Qu(3,it),Qu(4,Kt),Qu(5,Ss),Qu(6,Mt),Qu(7,xl)],sp);dI=class extends de{constructor(){super({id:"editor.action.showContextMenu",label:b("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:F.textInputFocus,primary:1092,weight:100}})}run(e,t){var r;(r=sp.get(t))===null||r===void 0||r.showContextMenu()}};Ue(sp.ID,sp,2);ee(dI)});var z0,B0,Zu,hI,fI,pI=N(()=>{ke();lt();ti();He();z0=class{constructor(e){this.selections=e}equals(e){let t=this.selections.length,r=e.selections.length;if(t!==r)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;let r=new z0(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(r)||(this._undoStack.push(new B0(r,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 B0(new z0(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 B0(new z0(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}};Zu.ID="editor.contrib.cursorUndoRedoController";hI=class extends de{constructor(){super({id:"cursorUndo",label:b("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:F.textInputFocus,primary:2099,weight:100}})}run(e,t,r){var n;(n=Zu.get(t))===null||n===void 0||n.cursorUndo()}},fI=class extends de{constructor(){super({id:"cursorRedo",label:b("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,r){var n;(n=Zu.get(t))===null||n===void 0||n.cursorRedo()}};Ue(Zu.ID,Zu,0);ee(hI);ee(fI)});var tK=N(()=>{});var iK=N(()=>{tK()});var Gx,rK=N(()=>{et();Ar();Gx=class{constructor(e,t,r){this.selection=e,this.targetPosition=t,this.copy=r,this.targetSelection=null}getEditOperations(e,t){let r=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new B(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),r),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 Qe(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 Qe(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.lineNumber{ke();Tn();iK();lt();di();et();Ar();Ur();rK();Ju=class i extends ce{constructor(e){super(),this._editor=e,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown(t=>this._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(34)||this._editor.getOption(21)||(ap(e)&&(this._modifierPressed=!0),this._mouseDown&&ap(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(34)||this._editor.getOption(21)||(ap(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===i.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){let t=e.target;if(this._dragSelection===null){let n=(this._editor.getSelections()||[]).filter(o=>t.position&&o.containsPosition(t.position));if(n.length===1)this._dragSelection=n[0];else return}ap(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){let t=new Ie(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let r=null;if(e.event.shiftKey){let n=this._editor.getSelection();if(n){let{selectionStartLineNumber:o,selectionStartColumn:s}=n;r=[new Qe(o,s,t.lineNumber,t.column)]}}else r=(this._editor.getSelections()||[]).map(n=>n.containsPosition(t)?new Qe(t.lineNumber,t.column,t.lineNumber,t.column):n);this._editor.setSelections(r||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(ap(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(i.ID,new Gx(this._dragSelection,t,ap(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 B(e.lineNumber,e.column,e.lineNumber,e.column),options:i._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()}};Ju.ID="editor.contrib.dragAndDrop";Ju.TRIGGER_KEY_VALUE=En?6:5;Ju._DECORATION_OPTIONS=mt.register({description:"dnd-target",className:"dnd-target"});Ue(Ju.ID,Ju,2)});var Td,H0=N(()=>{Td=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let i;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?i=crypto.getRandomValues.bind(crypto):i=function(r){for(let n=0;nnK(this,void 0,void 0,function*(){return i}),asFile:()=>{},value:typeof i=="string"?i:void 0}}function oK(i,e,t){let r={id:Td(),name:i,uri:e,data:t};return{asString:()=>nK(this,void 0,void 0,function*(){return""}),asFile:()=>r,value:void 0}}function Yx(i){return i.toLowerCase()}function Xx(i,e){return sK(Yx(i),e.map(Yx))}function sK(i,e){if(i==="*/*")return e.length>0;if(e.includes(i))return!0;let t=i.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;let[r,n,o]=t;return o==="*"?e.some(s=>s.startsWith(n+"/")):!1}var nK,lp,eh,j0=N(()=>{mi();Jh();H0();nK=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};lp=class{constructor(){this._entries=new Map}get size(){let e=0;for(let t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){let t=[...this._entries.keys()];return kn.some(this,([r,n])=>n.asFile())&&t.push("files"),sK(Yx(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){let r=this._entries.get(e);r?r.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(let[e,t]of this._entries)for(let r of t)yield[e,r]}toKey(e){return Yx(e)}};eh=Object.freeze({create:i=>DP(i.map(e=>e.toString())).join(`\r `),split:i=>i.split(`\r -`),parse:i=>eh.split(i).filter(e=>!e.startsWith("#"))})});function aK(i){return cp(this,void 0,void 0,function*(){let e=i.get(gr.uriList);if(!e)return[];let t=yield e.asString(),r=[];for(let n of eh.parse(t))try{r.push({uri:yt.parse(n),originalText:n})}catch(o){}return r})}var gI,W0,cp,bI,V0,Qx,Zx,Jx,e2,t2,vI=M(()=>{mi();j0();ke();Y3();Dm();Lo();Ir();Pt();He();U_();gI=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},W0=function(i,e){return function(t,r){e(t,r,i)}},cp=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},bI=b("builtIn","Built-in"),V0=class{provideDocumentPasteEdits(e,t,r,n){return cp(this,void 0,void 0,function*(){let o=yield this.getEdit(r,n);return o?{insertText:o.insertText,label:o.label,detail:o.detail,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}:void 0})}provideDocumentOnDropEdits(e,t,r,n){return cp(this,void 0,void 0,function*(){let o=yield this.getEdit(r,n);return o?{insertText:o.insertText,label:o.label,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}:void 0})}},Qx=class extends V0{constructor(){super(...arguments),this.id="text",this.dropMimeTypes=[gr.text],this.pasteMimeTypes=[gr.text]}getEdit(e,t){return cp(this,void 0,void 0,function*(){let r=e.get(gr.text);if(!r||e.has(gr.uriList))return;let n=yield r.asString();return{handledMimeType:gr.text,label:b("text.label","Insert Plain Text"),detail:bI,insertText:n}})}},Zx=class extends V0{constructor(){super(...arguments),this.id="uri",this.dropMimeTypes=[gr.uriList],this.pasteMimeTypes=[gr.uriList]}getEdit(e,t){return cp(this,void 0,void 0,function*(){let r=yield aK(e);if(!r.length||t.isCancellationRequested)return;let n=0,o=r.map(({uri:a,originalText:l})=>a.scheme===Eo.file?a.fsPath:(n++,l)).join(" "),s;return n>0?s=r.length>1?b("defaultDropProvider.uriList.uris","Insert Uris"):b("defaultDropProvider.uriList.uri","Insert Uri"):s=r.length>1?b("defaultDropProvider.uriList.paths","Insert Paths"):b("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:gr.uriList,insertText:o,label:s,detail:bI}})}},Jx=class extends V0{constructor(e){super(),this._workspaceContextService=e,this.id="relativePath",this.dropMimeTypes=[gr.uriList],this.pasteMimeTypes=[gr.uriList]}getEdit(e,t){return cp(this,void 0,void 0,function*(){let r=yield aK(e);if(!r.length||t.isCancellationRequested)return;let n=hn(r.map(({uri:o})=>{let s=this._workspaceContextService.getWorkspaceFolder(o);return s?eO(s.uri,o):void 0}));if(n.length)return{handledMimeType:gr.uriList,insertText:n.join(" "),label:r.length>1?b("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):b("defaultDropProvider.uriList.relativePath","Insert Relative Path"),detail:bI}})}};Jx=gI([W0(0,xl)],Jx);e2=class extends ce{constructor(e,t){super(),this._register(e.documentOnDropEditProvider.register("*",new Qx)),this._register(e.documentOnDropEditProvider.register("*",new Zx)),this._register(e.documentOnDropEditProvider.register("*",new Jx(t)))}};e2=gI([W0(0,Se),W0(1,xl)],e2);t2=class extends ce{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new Qx)),this._register(e.documentPasteEditProvider.register("*",new Zx)),this._register(e.documentPasteEditProvider.register("*",new Jx(t)))}};t2=gI([W0(0,Se),W0(1,xl)],t2)});var yI,_I,bge,dp,wI=M(()=>{dl();yI={EDITORS:"CodeEditors",FILES:"CodeFiles"},_I=class{},bge={DragAndDropContribution:"workbench.contributions.dragAndDrop"};Jr.add(bge.DragAndDropContribution,new _I);dp=class i{constructor(){}static getInstance(){return i.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}};dp.INSTANCE=new dp});function xI(i){let e=new lp;for(let t of i.items){let r=t.type;if(t.kind==="string"){let n=new Promise(o=>t.getAsString(o));e.append(r,U0(n))}else if(t.kind==="file"){let n=t.getAsFile();n&&e.append(r,_ge(n))}}return e}function _ge(i){let e=i.path?yt.parse(i.path):void 0;return oK(i.name,e,()=>vge(this,void 0,void 0,function*(){return new Uint8Array(yield i.arrayBuffer())}))}function i2(i,e=!1){let t=xI(i),r=t.get(D_.INTERNAL_URI_LIST);if(r)t.replace(gr.uriList,r);else if(e||!t.has(gr.uriList)){let n=[];for(let o of i.items){let s=o.getAsFile();if(s){let a=s.path;try{a?n.push(yt.file(a).toString()):n.push(yt.parse(s.name,!0).toString())}catch(l){}}}n.length&&t.replace(gr.uriList,U0(eh.create(n)))}for(let n of yge)t.delete(n);return t}var vge,yge,CI=M(()=>{Ore();j0();Y3();Ir();wI();vge=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};yge=Object.freeze([yI.EDITORS,yI.FILES,D_.RESOURCES,D_.INTERNAL_URI_LIST])});var r2,q0,SI=M(()=>{r2=class{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){let t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}},q0=class{constructor(e){this.identifier=e}}});var kI,lK=M(()=>{hl();Ut();SI();kI=Qr("treeViewsDndService");en(kI,r2,1)});var cK=M(()=>{});var dK=M(()=>{cK()});var wge,xge,Cge,Sge,n2,up,K0=M(()=>{Ht();jt();Zr();ke();Ni();An();dK();et();Ur();Ut();wge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},xge=function(i,e){return function(t,r){e(t,r,i)}},Cge=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Sge=mt.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:Gv,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}}),n2=class i extends ce{constructor(e,t,r,n,o){super(),this.typeId=e,this.editor=t,this.range=r,this.delegate=o,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=Ae(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;let t=Ae("span.icon");this.domNode.append(t),t.classList.add(..._t.asClassNameArray(pt.loading),"codicon-modifier-spin");let r=()=>{let n=this.editor.getOption(65);this.domNode.style.height=`${n}px`,this.domNode.style.width=`${Math.ceil(.8*n)}px`};r(),this._register(this.editor.onDidChangeConfiguration(n=>{(n.hasChanged(51)||n.hasChanged(65))&&r()})),this._register(Lt(this.domNode,bi.CLICK,n=>{this.delegate.cancel()}))}getId(){return i.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)}};n2.baseId="editor.widget.inlineProgressWidget";up=class extends ce{constructor(e,t,r){super(),this.id=e,this._editor=t,this._instantiationService=r,this._showDelay=500,this._showPromise=this._register(new Wi),this._currentWidget=new Wi,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}showWhile(e,t,r){return Cge(this,void 0,void 0,function*(){let n=this._operationIdPool++;this._currentOperation=n,this.clear(),this._showPromise.value=ml(()=>{let o=B.fromPositions(e);this._currentDecorations.set([{range:o,options:Sge}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(n2,this.id,this._editor,o,t,r))},this._showDelay);try{return yield r}finally{this._currentOperation===n&&(this.clear(),this._currentOperation=void 0)}})}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};up=wge([xge(2,Ke)],up)});function uK(i,e,t){var r,n;return{edits:[...e.map(o=>new E_(i,typeof t.insertText=="string"?{range:o,text:t.insertText,insertAsSnippet:!1}:{range:o,text:t.insertText.snippet,insertAsSnippet:!0})),...(n=(r=t.additionalEdit)===null||r===void 0?void 0:r.edits)!==null&&n!==void 0?n:[]]}}function o2(i){var e;function t(a,l){return"providerId"in a&&a.providerId===l.providerId||"mimeType"in a&&a.mimeType===l.handledMimeType}let r=new Map;for(let a of i)for(let l of(e=a.yieldTo)!==null&&e!==void 0?e:[])for(let c of i)if(c!==a&&t(l,c)){let d=r.get(a);d||(d=[],r.set(a,d)),d.push(c)}if(!r.size)return Array.from(i);let n=new Set,o=[];function s(a){if(!a.length)return[];let l=a[0];if(o.includes(l))return console.warn(`Yield to cycle detected for ${l.providerId}`),a;if(n.has(l))return s(a.slice(1));let c=[],d=r.get(l);return d&&(o.push(l),c=s(d),o.pop()),n.add(l),[...c,l,...s(a.slice(1))]}return s(Array.from(i))}var EI=M(()=>{tg()});var hK=M(()=>{});var fK=M(()=>{hK()});var mK,$0,pK,TI,s2,hp,II=M(()=>{Ht();Ure();Fc();ei();ke();fK();tg();wt();yl();Ut();jr();mK=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},$0=function(i,e){return function(t,r){e(t,r,i)}},pK=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},s2=TI=class extends ce{constructor(e,t,r,n,o,s,a,l,c,d){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=o,this.edits=s,this.onSelectNewEdit=a,this._contextMenuService=l,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=r.bindTo(c),this.visibleContext.set(!0),this._register(ri(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(ri(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(u=>{o.containsPosition(u.position)||this.dispose()})),this._register(ci.runAndSubscribe(d.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var e;let 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=Ae(".post-edit-widget"),this.button=this._register(new AF(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(Lt(this.domNode,bi.CLICK,()=>this.showSelector()))}getId(){return TI.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{let e=Zi(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>tf({id:"",label:e.label,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}};s2.baseId="editor.widget.postEditWidget";s2=TI=mK([$0(7,rs),$0(8,it),$0(9,Kt)],s2);hp=class extends ce{constructor(e,t,r,n,o,s){super(),this._id=e,this._editor=t,this._visibleContext=r,this._showCommand=n,this._instantiationService=o,this._bulkEditService=s,this._currentWidget=this._register(new Wi),this._register(ci.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}applyEditAndShowIfNeeded(e,t,r,n){var o,s;return pK(this,void 0,void 0,function*(){let a=this._editor.getModel();if(!a||!e.length)return;let l=t.allEdits[t.activeEditIndex];if(!l)return;let c=[];(typeof l.insertText=="string"?l.insertText==="":l.insertText.snippet==="")?c=[]:c=e.map(w=>new E_(a.uri,typeof l.insertText=="string"?{range:w,text:l.insertText,insertAsSnippet:!1}:{range:w,text:l.insertText.snippet,insertAsSnippet:!0}));let u={edits:[...c,...(s=(o=l.additionalEdit)===null||o===void 0?void 0:o.edits)!==null&&s!==void 0?s:[]]},h=e[0],f=a.deltaDecorations([],[{range:h,options:{description:"paste-line-suffix",stickiness:0}}]),m,g;try{m=yield this._bulkEditService.apply(u,{editor:this._editor,token:n}),g=a.getDecorationRange(f[0])}finally{a.deltaDecorations(f,[])}r&&m.isApplied&&t.allEdits.length>1&&this.show(g!=null?g:h,t,w=>pK(this,void 0,void 0,function*(){let _=this._editor.getModel();_&&(yield _.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:w,allEdits:t.allEdits},r,n))}))})}show(e,t,r){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(s2,this._id,this._editor,this._visibleContext,this._showCommand,e,t,r))}clear(){this._currentWidget.clear()}tryShowSelector(){var e;(e=this._currentWidget.value)===null||e===void 0||e.showSelector()}};hp=mK([$0(4,Ke),$0(5,Kc)],hp)});var kge,a2,G0,AI,LI,DI,MI,th,gK=M(()=>{mi();jt();j0();ke();CI();et();Pt();SI();lK();yu();K0();He();Sr();wt();wI();Ut();EI();II();kge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},a2=function(i,e){return function(t,r){e(t,r,i)}},G0=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},LI="editor.experimental.dropIntoEditor.defaultProvider",DI="editor.changeDropType",MI=new ht("dropWidgetVisible",!1,b("dropWidgetVisible","Whether the drop widget is showing")),th=AI=class extends ce{static get(e){return e.getContribution(AI.ID)}constructor(e,t,r,n,o){super(),this._configService=r,this._languageFeaturesService=n,this._treeViewsDragAndDropService=o,this.treeItemsTransfer=dp.getInstance(),this._dropProgressManager=this._register(t.createInstance(up,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(hp,"dropIntoEditor",e,MI,{id:DI,label:b("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor(s=>this.onDropIntoEditor(e,s.position,s.event)))}changeDropType(){this._postDropWidgetManager.tryShowSelector()}onDropIntoEditor(e,t,r){var n;return G0(this,void 0,void 0,function*(){if(!r.dataTransfer||!e.hasModel())return;(n=this._currentOperation)===null||n===void 0||n.cancel(),e.focus(),e.setPosition(t);let o=Jt(s=>G0(this,void 0,void 0,function*(){let a=new ga(e,1,void 0,s);try{let l=yield this.extractDataTransferData(r);if(l.size===0||a.token.isCancellationRequested)return;let c=e.getModel();if(!c)return;let d=this._languageFeaturesService.documentOnDropEditProvider.ordered(c).filter(h=>h.dropMimeTypes?h.dropMimeTypes.some(f=>l.matches(f)):!0),u=yield this.getDropEdits(d,c,t,l,a);if(a.token.isCancellationRequested)return;if(u.length){let h=this.getInitialActiveEditIndex(c,u),f=e.getOption(35).showDropSelector==="afterDrop";yield this._postDropWidgetManager.applyEditAndShowIfNeeded([B.fromPositions(t)],{activeEditIndex:h,allEdits:u},f,s)}}finally{a.dispose(),this._currentOperation===o&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,b("dropIntoEditorProgress","Running drop handlers. Click to cancel"),o),this._currentOperation=o})}getDropEdits(e,t,r,n,o){return G0(this,void 0,void 0,function*(){let s=yield Vc(Promise.all(e.map(l=>G0(this,void 0,void 0,function*(){try{let c=yield l.provideDocumentOnDropEdits(t,r,n,o.token);if(c)return Object.assign(Object.assign({},c),{providerId:l.id})}catch(c){console.error(c)}}))),o.token),a=hn(s!=null?s:[]);return o2(a)})}getInitialActiveEditIndex(e,t){let r=this._configService.getValue(LI,{resource:e.uri});for(let[n,o]of Object.entries(r)){let s=t.findIndex(a=>o===a.providerId&&a.handledMimeType&&Xx(n,[a.handledMimeType]));if(s>=0)return s}return 0}extractDataTransferData(e){return G0(this,void 0,void 0,function*(){if(!e.dataTransfer)return new lp;let t=i2(e.dataTransfer);if(this.treeItemsTransfer.hasData(q0.prototype)){let r=this.treeItemsTransfer.getData(q0.prototype);if(Array.isArray(r))for(let n of r){let o=yield this._treeViewsDragAndDropService.removeDragOperationTransfer(n.identifier);if(o)for(let[s,a]of o)t.replace(s,a)}}return t})}};th.ID="editor.contrib.dropIntoEditorController";th=AI=kge([a2(1,Ke),a2(2,Mt),a2(3,Se),a2(4,kI)],th)});var NI=M(()=>{lt();tF();j_();vI();He();X3();dl();gK();Ue(th.ID,th,2);We(new class extends Fi{constructor(){super({id:DI,precondition:MI,kbOpts:{weight:100,primary:2137}})}runEditorCommand(i,e,t){var r;(r=th.get(e))===null||r===void 0||r.changeDropType()}});Yc(e2);Jr.as(af.Configuration).registerConfiguration(Object.assign(Object.assign({},k_),{properties:{[LI]:{type:"object",scope:5,description:b("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}}))});var ja,bK=M(()=>{et();qc();Ur();tn();rn();ja=class i{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){let 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){let t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){let t=e{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,i._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,i._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let o=this._editor.getModel().getDecorationRange(t);if(o.startLineNumber!==o.endLineNumber&&o.endColumn===1){let s=o.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(s);o=new B(o.startLineNumber,o.startColumn,s,a)}this._rangeHighlightDecorationId=n.addDecoration(o,i._RANGE_HIGHLIGHT_DECORATION)}}),r}set(e,t){this._editor.changeDecorations(r=>{let n=i._FIND_MATCH_DECORATION,o=[];if(e.length>1e3){n=i._FIND_MATCH_NO_OVERVIEW_DECORATION;let a=this._editor.getModel().getLineCount(),c=this._editor.getLayoutInfo().height/a,d=Math.max(2,Math.ceil(3/c)),u=e[0].range.startLineNumber,h=e[0].range.endLineNumber;for(let f=1,m=e.length;f=g.startLineNumber?g.endLineNumber>h&&(h=g.endLineNumber):(o.push({range:new B(u,1,h,1),options:i._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),u=g.startLineNumber,h=g.endLineNumber)}o.push({range:new B(u,1,h,1),options:i._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}let s=new Array(e.length);for(let a=0,l=e.length;ar.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>r.addDecoration(a,i._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){let r=this._decorations[t],n=this._editor.getModel().getDecorationRange(r);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,r=this._decorations.length;te.lineNumber)return o;if(!(o.startColumn{et();l2=class{constructor(e,t,r){this._editorSelection=e,this._ranges=t,this._replaceStrings=r,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){let r=[];for(let s=0;sB.compareRangesUsingStarts(s.range,a.range));let n=[],o=r[0];for(let s=1;s0?e[0].toUpperCase()+e.substr(1):i[0][0].toUpperCase()!==i[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function _K(i,e,t){return i[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&i[0].split(t).length===e.split(t).length}function yK(i,e,t){let r=e.split(t),n=i[0].split(t),o="";return r.forEach((s,a)=>{o+=RI([n[a]],s)+t}),o.slice(0,-1)}var wK=M(()=>{Ni()});function xK(i){if(!i||i.length===0)return new pp(null);let e=[],t=new OI(i);for(let r=0,n=i.length;r=n)break;let s=i.charCodeAt(r);switch(s){case 92:t.emitUnchanged(r-1),t.emitStatic("\\",r+1);break;case 110:t.emitUnchanged(r-1),t.emitStatic(` -`,r+1);break;case 116:t.emitUnchanged(r-1),t.emitStatic(" ",r+1);break;case 117:case 85:case 108:case 76:t.emitUnchanged(r-1),t.emitStatic("",r+1),e.push(String.fromCharCode(s));break}continue}if(o===36){if(r++,r>=n)break;let s=i.charCodeAt(r);if(s===36){t.emitUnchanged(r-1),t.emitStatic("$",r+1);continue}if(s===48||s===38){t.emitUnchanged(r-1),t.emitMatchIndex(0,r+1,e),e.length=0;continue}if(49<=s&&s<=57){let a=s-48;if(r+1{wK();c2=class{constructor(e){this.staticValue=e,this.kind=0}},PI=class{constructor(e){this.pieces=e,this.kind=1}},pp=class i{static fromStaticValue(e){return new i([fp.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(e){!e||e.length===0?this._state=new c2(""):e.length===1&&e[0].staticValue!==null?this._state=new c2(e[0].staticValue):this._state=new PI(e)}buildReplaceString(e,t){if(this._state.kind===0)return t?RI(e,this._state.staticValue):this._state.staticValue;let r="";for(let n=0,o=this._state.pieces.length;n0){let l=[],c=s.caseOps.length,d=0;for(let u=0,h=a.length;u=c){l.push(a.slice(u));break}switch(s.caseOps[d]){case"U":l.push(a[u].toUpperCase());break;case"u":l.push(a[u].toUpperCase()),d++;break;case"L":l.push(a[u].toLowerCase());break;case"l":l.push(a[u].toLowerCase()),d++;break;default:l.push(a[u])}}a=l.join("")}r+=a}return r}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let r="";for(;e>0;){if(e{mi();jt();ke();Zv();di();et();Ar();Tre();bK();vK();CK();wt();Va=new ht("findWidgetVisible",!1),dWe=Va.toNegated(),mp=new ht("findInputFocussed",!1),Y0=new ht("replaceInputFocussed",!1),X0={primary:545,mac:{primary:2593}},Q0={primary:565,mac:{primary:2613}},Z0={primary:560,mac:{primary:2608}},J0={primary:554,mac:{primary:2602}},eb={primary:558,mac:{primary:2606}},ni={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",StartFindWithArgs:"editor.actions.findWithArgs",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",GoToMatchFindAction:"editor.action.goToMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},Wa=19999,Ege=240,d2=class i{constructor(e,t){this._toDispose=new ae,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new aa,this._decorations=new ja(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new ui(()=>this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(r=>{(r.reason===3||r.reason===5||r.reason===6)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(r=>{this._ignoreModelContentChanged||(r.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(r=>this._onStateChanged(r))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,ji(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)},Ege)):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 r=null;typeof t!="undefined"?t!==null&&(Array.isArray(t)?r=t:r=[t]):r=this._decorations.getFindScopes(),r!==null&&(r=r.map(a=>{if(a.startLineNumber!==a.endLineNumber){let l=a.endLineNumber;return a.endColumn===1&&(l=l-1),new B(a.startLineNumber,1,l,this._editor.getModel().getLineMaxColumn(l))}return a}));let n=this._findMatches(r,!1,Wa);this._decorations.set(n,r);let o=this._editor.getSelection(),s=this._decorations.getCurrentMatchesPosition(o);if(s===0&&n.length>0){let a=e_(n.map(l=>l.range),l=>B.compareRangesUsingStarts(l,o)>=0);s=a>0?a-1+1:s}this._state.changeMatchInfo(s,this._decorations.getCount(),void 0),e&&this._editor.getOption(40).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){let e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){let t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:r,column:n}=e,o=this._editor.getModel();return t||n===1?(r===1?r=o.getLineCount():r--,n=o.getLineMaxColumn(r)):n--,new Ie(r,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){let d=this._decorations.matchAfterPosition(e);d&&this._setCurrentFindMatch(d);return}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0),{lineNumber:r,column:n}=e,o=this._editor.getModel();return t||n===o.getLineMaxColumn(r)?(r===o.getLineCount()?r=1:r++,n=1):n++,new Ie(r,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){let r=this._decorations.matchBeforePosition(e);r&&this._setCurrentFindMatch(r);return}if(this._decorations.getCount()i._getSearchRange(this._editor.getModel(),o));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(128):null,t,r)}replaceAll(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes();e===null&&this._state.matchesCount>=Wa?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){let t=new HO(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(128):null).parseSearchRequest();if(!t)return;let r=t.regex;if(!r.multiline){let u="mu";r.ignoreCase&&(u+="i"),r.global&&(u+="g"),r=new RegExp(r.source,u)}let n=this._editor.getModel(),o=n.getValue(1),s=n.getFullModelRange(),a=this._getReplacePattern(),l,c=this._state.preserveCase;a.hasReplacementPatterns||c?l=o.replace(r,function(){return a.buildReplaceString(arguments,c)}):l=o.replace(r,a.buildReplaceString(null,c));let d=new Qv(s,l,this._editor.getSelection());this._executeEditorCommand("replaceAll",d)}_regularReplaceAll(e){let t=this._getReplacePattern(),r=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let s=0,a=r.length;ss.range),n);this._executeEditorCommand("replaceAll",o)}selectAllMatches(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes(),r=this._findMatches(e,!1,1073741824).map(o=>new Qe(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn)),n=this._editor.getSelection();for(let o=0,s=r.length;o{});var kK=M(()=>{SK()});var ib,EK=M(()=>{Ht();kK();jre();M_();jt();tb();tn();ib=class i extends _l{constructor(e,t,r){super(),this._hideSoon=this._register(new ui(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=r,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");let n={inputActiveOptionBorder:da(g_),inputActiveOptionForeground:da(b_),inputActiveOptionBackground:da(gl)};this.caseSensitive=this._register(new DF(Object.assign({appendTitle:this._keybindingLabelFor(ni.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase},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 MF(Object.assign({appendTitle:this._keybindingLabelFor(ni.ToggleWholeWordCommand),isChecked:this._state.wholeWord},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 NF(Object.assign({appendTitle:this._keybindingLabelFor(ni.ToggleRegexCommand),isChecked:this._state.isRegex},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(o=>{let s=!1;o.isRegex&&(this.regex.checked=this._state.isRegex,s=!0),o.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,s=!0),o.matchCase&&(this.caseSensitive.checked=this._state.matchCase,s=!0),!this._state.isRevealed&&s&&this._revealTemporarily()})),this._register(Lt(this._domNode,bi.MOUSE_LEAVE,o=>this._onMouseLeave())),this._register(Lt(this._domNode,"mouseover",o=>this._onMouseOver()))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return i.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")}};ib.ID="editor.contrib.findOptionsWidget"});function u2(i,e){return i===1?!0:i===2?!1:e}var h2,TK=M(()=>{ei();ke();et();tb();h2=class extends ce{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return u2(this._isRegexOverride,this._isRegex)}get wholeWord(){return u2(this._wholeWordOverride,this._wholeWord)}get matchCase(){return u2(this._matchCaseOverride,this._matchCase)}get preserveCase(){return u2(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 Je),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,r){let 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},o=!1;t===0&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,o=!0),typeof r!="undefined"&&(B.equalsRange(this._currentMatch,r)||(this._currentMatch=r,n.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(n)}change(e,t,r=!0){var n;let o={moveCursor:t,updateHistory:r,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},s=!1,a=this.isRegex,l=this.wholeWord,c=this.matchCase,d=this.preserveCase;typeof e.searchString!="undefined"&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o.searchString=!0,s=!0),typeof e.replaceString!="undefined"&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o.replaceString=!0,s=!0),typeof e.isRevealed!="undefined"&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o.isRevealed=!0,s=!0),typeof e.isReplaceRevealed!="undefined"&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o.isReplaceRevealed=!0,s=!0),typeof e.isRegex!="undefined"&&(this._isRegex=e.isRegex),typeof e.wholeWord!="undefined"&&(this._wholeWord=e.wholeWord),typeof e.matchCase!="undefined"&&(this._matchCase=e.matchCase),typeof e.preserveCase!="undefined"&&(this._preserveCase=e.preserveCase),typeof e.searchScope!="undefined"&&(!((n=e.searchScope)===null||n===void 0)&&n.every(u=>{var h;return(h=this._searchScope)===null||h===void 0?void 0:h.some(f=>!B.equalsRange(f,u))})||(this._searchScope=e.searchScope,o.searchScope=!0,s=!0)),typeof e.loop!="undefined"&&this._loop!==e.loop&&(this._loop=e.loop,o.loop=!0,s=!0),typeof e.isSearching!="undefined"&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,o.isSearching=!0,s=!0),typeof e.filters!="undefined"&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,o.filters=!0,s=!0),this._isRegexOverride=typeof e.isRegexOverride!="undefined"?e.isRegexOverride:0,this._wholeWordOverride=typeof e.wholeWordOverride!="undefined"?e.wholeWordOverride:0,this._matchCaseOverride=typeof e.matchCaseOverride!="undefined"?e.matchCaseOverride:0,this._preserveCaseOverride=typeof e.preserveCaseOverride!="undefined"?e.preserveCaseOverride:0,a!==this.isRegex&&(s=!0,o.isRegex=!0),l!==this.wholeWord&&(s=!0,o.wholeWord=!0),c!==this.matchCase&&(s=!0,o.matchCase=!0),d!==this.preserveCase&&(s=!0,o.preserveCase=!0),s&&this._onFindReplaceStateChange.fire(o)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=Wa}}});var IK=M(()=>{});var AK=M(()=>{IK()});var Tge,Ige,FI,f2,LK=M(()=>{Ht();LF();Wre();M_();Zr();ei();Vre();He();Tge=b("defaultLabel","input"),Ige=b("label.preserveCaseToggle","Preserve Case"),FI=class extends W_{constructor(e){super({icon:pt.preserveCase,title:Ige+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}},f2=class extends _l{constructor(e,t,r,n){super(),this._showOptionButtons=r,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new Je),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new Je),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new Je),this._onInput=this._register(new Je),this._onKeyUp=this._register(new Je),this._onPreserveCaseKeyDown=this._register(new Je),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||Tge;let o=n.appendPreserveCaseLabel||"",s=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new RF(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:s,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new FI(Object.assign({appendTitle:o,isChecked:!1},n.toggleStyles))),this._register(this.preserveCase.onChange(h=>{this._onDidOptionChange.fire(h),!h&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(h=>{this._onPreserveCaseKeyDown.fire(h)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;let d=[this.preserveCase.domNode];this.onkeydown(this.domNode,h=>{if(h.equals(15)||h.equals(17)||h.equals(9)){let f=d.indexOf(document.activeElement);if(f>=0){let m=-1;h.equals(17)?m=(f+1)%d.length:h.equals(15)&&(f===0?m=d.length-1:m=f-1),h.equals(9)?(d[f].blur(),this.inputBox.focus()):m>=0&&d[m].focus(),cu.stop(h,!0)}}});let u=document.createElement("div");u.className="controls",u.style.display=this._showOptionButtons?"block":"none",u.appendChild(this.preserveCase.domNode),this.domNode.appendChild(u),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,h=>this._onKeyDown.fire(h)),this.onkeyup(this.inputBox.inputElement,h=>this._onKeyUp.fire(h)),this.oninput(this.inputBox.inputElement,h=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,h=>this._onMouseDown.fire(h))}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()}}});function PK(i,e){if(p2.includes(e))throw new Error("Cannot register the same widget multiple times");p2.push(e);let t=new ae,r=new ht(zI,!1).bindTo(i),n=new ht(NK,!0).bindTo(i),o=new ht(RK,!0).bindTo(i),s=()=>{r.set(!0),ic=e},a=()=>{r.set(!1),ic===e&&(ic=void 0)};return e.element===document.activeElement&&s(),t.add(e.onDidFocus(()=>s())),t.add(e.onDidBlur(()=>a())),t.add(ri(()=>{p2.splice(p2.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:o,dispose(){t.dispose()}}}var DK,MK,b2,zI,NK,RK,ic,p2,m2,g2,BI=M(()=>{qre();LK();wt();j3();He();ke();DK=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},MK=function(i,e){return function(t,r){e(t,r,i)}},b2=new ht("suggestWidgetVisible",!1,b("suggestWidgetVisible","Whether suggestion are visible")),zI="historyNavigationWidgetFocus",NK="historyNavigationForwardsEnabled",RK="historyNavigationBackwardsEnabled",p2=[];m2=class extends PF{constructor(e,t,r,n){super(e,t,r);let o=this._register(n.createScoped(this.inputBox.element));this._register(PK(o,this.inputBox))}};m2=DK([MK(3,it)],m2);g2=class extends f2{constructor(e,t,r,n,o=!1){super(e,t,o,r);let s=this._register(n.createScoped(this.inputBox.element));this._register(PK(s,this.inputBox))}};g2=DK([MK(3,it)],g2);Ao.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:fe.and(fe.has(zI),fe.equals(RK,!0),fe.not("isComposing"),b2.isEqualTo(!1)),primary:16,secondary:[528],handler:i=>{ic==null||ic.showPreviousValue()}});Ao.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:fe.and(fe.has(zI),fe.equals(NK,!0),fe.not("isComposing"),b2.isEqualTo(!1)),primary:18,secondary:[530],handler:i=>{ic==null||ic.showNextValue()}})});function HI(i){var e,t;return((e=i.lookupKeybinding("history.showPrevious"))===null||e===void 0?void 0:e.getElectronAccelerator())==="Up"&&((t=i.lookupKeybinding("history.showNext"))===null||t===void 0?void 0:t.getElectronAccelerator())==="Down"}var OK=M(()=>{});function jK(i,e,t){let r=!!e.match(/\n/);if(t&&r&&t.selectionStart>0){i.stopPropagation();return}}function WK(i,e,t){let r=!!e.match(/\n/);if(t&&r&&t.selectionEnd{Ht();Io();LF();bk();M_();jt();Zr();qt();ke();Tn();Ni();AK();et();tb();He();BI();OK();tn();Sl();rn();An();ok();zr();O_();Age=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Lge=Pi("find-selection",pt.selection,b("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),FK=Pi("find-collapsed",pt.chevronRight,b("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),zK=Pi("find-expanded",pt.chevronDown,b("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Dge=Pi("find-replace",pt.replace,b("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Mge=Pi("find-replace-all",pt.replaceAll,b("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Nge=Pi("find-previous-match",pt.arrowUp,b("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Rge=Pi("find-next-match",pt.arrowDown,b("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Pge=b("label.findDialog","Find / Replace"),Oge=b("label.find","Find"),Fge=b("placeholder.find","Find"),zge=b("label.previousMatchButton","Previous Match"),Bge=b("label.nextMatchButton","Next Match"),Hge=b("label.toggleSelectionFind","Find in Selection"),Uge=b("label.closeButton","Close"),jge=b("label.replace","Replace"),Wge=b("placeholder.replace","Replace"),Vge=b("label.replaceButton","Replace"),qge=b("label.replaceAllButton","Replace All"),Kge=b("label.toggleReplaceButton","Toggle Replace"),$ge=b("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",Wa),Gge=b("label.matchesLocation","{0} of {1}"),BK=b("label.noResults","No results"),qa=419,Yge=275,Xge=Yge-54,rb=69,Qge=33,HK="ctrlEnterReplaceAll.windows.donotask",UK=En?256:2048,nb=class{constructor(e){this.afterLineNumber=e,this.heightInPx=Qge,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}};ob=class i extends _l{constructor(e,t,r,n,o,s,a,l,c){super(),this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=r,this._contextViewProvider=n,this._keybindingService=o,this._contextKeyService=s,this._storageService=l,this._notificationService=c,this._ctrlEnterReplaceAllWarningPrompted=!!l.getBoolean(HK,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new Do(500),this._register(ri(()=>this._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(d=>this._onStateChanged(d))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(d=>{if(d.hasChanged(89)&&(this._codeEditor.getOption(89)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),d.hasChanged(142)&&this._tryUpdateWidgetWidth(),d.hasChanged(2)&&this.updateAccessibilitySupport(),d.hasChanged(40)){let u=this._codeEditor.getOption(40).loop;this._state.change({loop:u},!1);let h=this._codeEditor.getOption(40).addExtraSpaceOnTop;h&&!this._viewZone&&(this._viewZone=new nb(0),this._showViewZone()),!h&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>Age(this,void 0,void 0,function*(){if(this._isVisible){let d=yield this._controller.getGlobalBufferTerm();d&&d!==this._state.searchString&&(this._state.change({searchString:d},!1),this._findInput.select())}}))),this._findInputFocused=mp.bindTo(s),this._findFocusTracker=this._register(xs(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=Y0.bindTo(s),this._replaceFocusTracker=this._register(xs(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(40).addExtraSpaceOnTop&&(this._viewZone=new nb(0)),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(d=>{if(d.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return i.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(89)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=Kn(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){let 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,ft)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){this._matchesCount.style.minWidth=rb+"px",this._state.matchesCount>=Wa?this._matchesCount.title=$ge: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>=Wa&&(t+="+");let r=String(this._state.matchesPosition);r==="0"&&(r="?"),e=nf(Gge,r,t)}else e=BK;this._matchesCount.appendChild(document.createTextNode(e)),ar(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),rb=Math.max(rb,this._matchesCount.clientWidth)}_getAriaLabel(e,t,r){if(e===BK)return r===""?b("ariaSearchNoResultEmpty","{0} found",e):b("ariaSearchNoResult","{0} found for '{1}'",e,r);if(t){let n=b("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,r,t.startLineNumber+":"+t.startColumn),o=this._codeEditor.getModel();return o&&t.startLineNumber<=o.getLineCount()&&t.startLineNumber>=1?`${o.getLineContent(t.startLineNumber)}, ${n}`:n}return b("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,r)}_updateToggleSelectionFindButton(){let e=this._codeEditor.getSelection(),t=e?e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn:!1,r=this._toggleSelectionFind.checked;this._isVisible&&(r||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);let 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);let r=!this._codeEditor.getOption(89);this._toggleReplaceBtn.setEnabled(this._isVisible&&r)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;let e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(40).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{let r=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=r;break}default: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(40).seedSearchStringFromSelection&&e){let r=this._codeEditor.getDomNode();if(r){let n=Zi(r),o=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),s=n.left+(o?o.left:0),a=o?o.top:0;if(this._viewZone&&ae.startLineNumber&&(t=!1);let l=oP(this._domNode).left;s>l&&(t=!1);let c=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(c?c.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(40).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;let r=this._viewZone;this._viewZoneId!==void 0||!r||this._codeEditor.changeViewZones(n=>{r.heightInPx=this._getHeight(),this._viewZoneId=n.addZone(r),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+r.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(40).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new nb(0));let r=this._viewZone;this._codeEditor.changeViewZones(n=>{if(this._viewZoneId!==void 0){let o=this._getHeight();if(o===r.heightInPx)return;let s=o-r.heightInPx;r.heightInPx=o,n.layoutZone(this._viewZoneId),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s);return}else{let o=this._getHeight();if(o-=this._codeEditor.getOption(82).top,o<=0)return;r.heightInPx=o,this._viewZoneId=n.addZone(r),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+o)}})}_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||!iP(this._domNode))return;let 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");let r=e.width,n=e.minimap.minimapWidth,o=!1,s=!1,a=!1;if(this._resized&&Kn(this._domNode)>qa){this._domNode.style.maxWidth=`${r-28-n-15}px`,this._replaceInput.width=Kn(this._findInput.domNode);return}if(qa+28+n>=r&&(s=!0),qa+28+n-rb>=r&&(a=!0),qa+28+n-rb>=r+50&&(o=!0),this._domNode.classList.toggle("collapsed-find-widget",o),this._domNode.classList.toggle("narrow-find-widget",a),this._domNode.classList.toggle("reduced-find-widget",s),!a&&!o&&(this._domNode.style.maxWidth=`${r-28-n-15}px`),this._findInput.layout({collapsedFindWidget:o,narrowFindWidget:a,reducedFindWidget:s}),this._resized){let l=this._findInput.inputBox.element.clientWidth;l>0&&(this._replaceInput.width=l)}else this._isReplaceVisible&&(this._replaceInput.width=Kn(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(){let 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){let 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)));let r=this._state.currentMatch;return t.startLineNumber!==t.endLineNumber&&!B.equalsRange(t,r)?t:null}).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){if(e.equals(UK|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{this._findInput.inputBox.insertAtCursor(` +`),parse:i=>eh.split(i).filter(e=>!e.startsWith("#"))})});function aK(i){return cp(this,void 0,void 0,function*(){let e=i.get(gr.uriList);if(!e)return[];let t=yield e.asString(),r=[];for(let n of eh.parse(t))try{r.push({uri:yt.parse(n),originalText:n})}catch(o){}return r})}var gI,W0,cp,bI,V0,Qx,Zx,Jx,e2,t2,vI=N(()=>{mi();j0();ke();Y3();Dm();Lo();Ir();Pt();He();U_();gI=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},W0=function(i,e){return function(t,r){e(t,r,i)}},cp=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},bI=b("builtIn","Built-in"),V0=class{provideDocumentPasteEdits(e,t,r,n){return cp(this,void 0,void 0,function*(){let o=yield this.getEdit(r,n);return o?{insertText:o.insertText,label:o.label,detail:o.detail,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}:void 0})}provideDocumentOnDropEdits(e,t,r,n){return cp(this,void 0,void 0,function*(){let o=yield this.getEdit(r,n);return o?{insertText:o.insertText,label:o.label,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}:void 0})}},Qx=class extends V0{constructor(){super(...arguments),this.id="text",this.dropMimeTypes=[gr.text],this.pasteMimeTypes=[gr.text]}getEdit(e,t){return cp(this,void 0,void 0,function*(){let r=e.get(gr.text);if(!r||e.has(gr.uriList))return;let n=yield r.asString();return{handledMimeType:gr.text,label:b("text.label","Insert Plain Text"),detail:bI,insertText:n}})}},Zx=class extends V0{constructor(){super(...arguments),this.id="uri",this.dropMimeTypes=[gr.uriList],this.pasteMimeTypes=[gr.uriList]}getEdit(e,t){return cp(this,void 0,void 0,function*(){let r=yield aK(e);if(!r.length||t.isCancellationRequested)return;let n=0,o=r.map(({uri:a,originalText:l})=>a.scheme===Eo.file?a.fsPath:(n++,l)).join(" "),s;return n>0?s=r.length>1?b("defaultDropProvider.uriList.uris","Insert Uris"):b("defaultDropProvider.uriList.uri","Insert Uri"):s=r.length>1?b("defaultDropProvider.uriList.paths","Insert Paths"):b("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:gr.uriList,insertText:o,label:s,detail:bI}})}},Jx=class extends V0{constructor(e){super(),this._workspaceContextService=e,this.id="relativePath",this.dropMimeTypes=[gr.uriList],this.pasteMimeTypes=[gr.uriList]}getEdit(e,t){return cp(this,void 0,void 0,function*(){let r=yield aK(e);if(!r.length||t.isCancellationRequested)return;let n=hn(r.map(({uri:o})=>{let s=this._workspaceContextService.getWorkspaceFolder(o);return s?eO(s.uri,o):void 0}));if(n.length)return{handledMimeType:gr.uriList,insertText:n.join(" "),label:r.length>1?b("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):b("defaultDropProvider.uriList.relativePath","Insert Relative Path"),detail:bI}})}};Jx=gI([W0(0,xl)],Jx);e2=class extends ce{constructor(e,t){super(),this._register(e.documentOnDropEditProvider.register("*",new Qx)),this._register(e.documentOnDropEditProvider.register("*",new Zx)),this._register(e.documentOnDropEditProvider.register("*",new Jx(t)))}};e2=gI([W0(0,Se),W0(1,xl)],e2);t2=class extends ce{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new Qx)),this._register(e.documentPasteEditProvider.register("*",new Zx)),this._register(e.documentPasteEditProvider.register("*",new Jx(t)))}};t2=gI([W0(0,Se),W0(1,xl)],t2)});var yI,_I,bge,dp,wI=N(()=>{dl();yI={EDITORS:"CodeEditors",FILES:"CodeFiles"},_I=class{},bge={DragAndDropContribution:"workbench.contributions.dragAndDrop"};Jr.add(bge.DragAndDropContribution,new _I);dp=class i{constructor(){}static getInstance(){return i.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}};dp.INSTANCE=new dp});function xI(i){let e=new lp;for(let t of i.items){let r=t.type;if(t.kind==="string"){let n=new Promise(o=>t.getAsString(o));e.append(r,U0(n))}else if(t.kind==="file"){let n=t.getAsFile();n&&e.append(r,_ge(n))}}return e}function _ge(i){let e=i.path?yt.parse(i.path):void 0;return oK(i.name,e,()=>vge(this,void 0,void 0,function*(){return new Uint8Array(yield i.arrayBuffer())}))}function i2(i,e=!1){let t=xI(i),r=t.get(D_.INTERNAL_URI_LIST);if(r)t.replace(gr.uriList,r);else if(e||!t.has(gr.uriList)){let n=[];for(let o of i.items){let s=o.getAsFile();if(s){let a=s.path;try{a?n.push(yt.file(a).toString()):n.push(yt.parse(s.name,!0).toString())}catch(l){}}}n.length&&t.replace(gr.uriList,U0(eh.create(n)))}for(let n of yge)t.delete(n);return t}var vge,yge,CI=N(()=>{Ore();j0();Y3();Ir();wI();vge=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};yge=Object.freeze([yI.EDITORS,yI.FILES,D_.RESOURCES,D_.INTERNAL_URI_LIST])});var r2,q0,SI=N(()=>{r2=class{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){let t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}},q0=class{constructor(e){this.identifier=e}}});var kI,lK=N(()=>{hl();Ut();SI();kI=Qr("treeViewsDndService");en(kI,r2,1)});var cK=N(()=>{});var dK=N(()=>{cK()});var wge,xge,Cge,Sge,n2,up,K0=N(()=>{Ht();jt();Zr();ke();Ni();An();dK();et();Ur();Ut();wge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},xge=function(i,e){return function(t,r){e(t,r,i)}},Cge=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Sge=mt.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:Gv,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}}),n2=class i extends ce{constructor(e,t,r,n,o){super(),this.typeId=e,this.editor=t,this.range=r,this.delegate=o,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=Ae(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;let t=Ae("span.icon");this.domNode.append(t),t.classList.add(..._t.asClassNameArray(pt.loading),"codicon-modifier-spin");let r=()=>{let n=this.editor.getOption(65);this.domNode.style.height=`${n}px`,this.domNode.style.width=`${Math.ceil(.8*n)}px`};r(),this._register(this.editor.onDidChangeConfiguration(n=>{(n.hasChanged(51)||n.hasChanged(65))&&r()})),this._register(Lt(this.domNode,bi.CLICK,n=>{this.delegate.cancel()}))}getId(){return i.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)}};n2.baseId="editor.widget.inlineProgressWidget";up=class extends ce{constructor(e,t,r){super(),this.id=e,this._editor=t,this._instantiationService=r,this._showDelay=500,this._showPromise=this._register(new Wi),this._currentWidget=new Wi,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}showWhile(e,t,r){return Cge(this,void 0,void 0,function*(){let n=this._operationIdPool++;this._currentOperation=n,this.clear(),this._showPromise.value=ml(()=>{let o=B.fromPositions(e);this._currentDecorations.set([{range:o,options:Sge}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(n2,this.id,this._editor,o,t,r))},this._showDelay);try{return yield r}finally{this._currentOperation===n&&(this.clear(),this._currentOperation=void 0)}})}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};up=wge([xge(2,Ke)],up)});function uK(i,e,t){var r,n;return{edits:[...e.map(o=>new E_(i,typeof t.insertText=="string"?{range:o,text:t.insertText,insertAsSnippet:!1}:{range:o,text:t.insertText.snippet,insertAsSnippet:!0})),...(n=(r=t.additionalEdit)===null||r===void 0?void 0:r.edits)!==null&&n!==void 0?n:[]]}}function o2(i){var e;function t(a,l){return"providerId"in a&&a.providerId===l.providerId||"mimeType"in a&&a.mimeType===l.handledMimeType}let r=new Map;for(let a of i)for(let l of(e=a.yieldTo)!==null&&e!==void 0?e:[])for(let c of i)if(c!==a&&t(l,c)){let d=r.get(a);d||(d=[],r.set(a,d)),d.push(c)}if(!r.size)return Array.from(i);let n=new Set,o=[];function s(a){if(!a.length)return[];let l=a[0];if(o.includes(l))return console.warn(`Yield to cycle detected for ${l.providerId}`),a;if(n.has(l))return s(a.slice(1));let c=[],d=r.get(l);return d&&(o.push(l),c=s(d),o.pop()),n.add(l),[...c,l,...s(a.slice(1))]}return s(Array.from(i))}var EI=N(()=>{tg()});var hK=N(()=>{});var fK=N(()=>{hK()});var mK,$0,pK,TI,s2,hp,II=N(()=>{Ht();Ure();Fc();ei();ke();fK();tg();wt();yl();Ut();jr();mK=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},$0=function(i,e){return function(t,r){e(t,r,i)}},pK=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},s2=TI=class extends ce{constructor(e,t,r,n,o,s,a,l,c,d){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=o,this.edits=s,this.onSelectNewEdit=a,this._contextMenuService=l,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=r.bindTo(c),this.visibleContext.set(!0),this._register(ri(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(ri(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(u=>{o.containsPosition(u.position)||this.dispose()})),this._register(ci.runAndSubscribe(d.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var e;let 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=Ae(".post-edit-widget"),this.button=this._register(new AF(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(Lt(this.domNode,bi.CLICK,()=>this.showSelector()))}getId(){return TI.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{let e=Zi(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>tf({id:"",label:e.label,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}};s2.baseId="editor.widget.postEditWidget";s2=TI=mK([$0(7,rs),$0(8,it),$0(9,Kt)],s2);hp=class extends ce{constructor(e,t,r,n,o,s){super(),this._id=e,this._editor=t,this._visibleContext=r,this._showCommand=n,this._instantiationService=o,this._bulkEditService=s,this._currentWidget=this._register(new Wi),this._register(ci.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}applyEditAndShowIfNeeded(e,t,r,n){var o,s;return pK(this,void 0,void 0,function*(){let a=this._editor.getModel();if(!a||!e.length)return;let l=t.allEdits[t.activeEditIndex];if(!l)return;let c=[];(typeof l.insertText=="string"?l.insertText==="":l.insertText.snippet==="")?c=[]:c=e.map(w=>new E_(a.uri,typeof l.insertText=="string"?{range:w,text:l.insertText,insertAsSnippet:!1}:{range:w,text:l.insertText.snippet,insertAsSnippet:!0}));let u={edits:[...c,...(s=(o=l.additionalEdit)===null||o===void 0?void 0:o.edits)!==null&&s!==void 0?s:[]]},h=e[0],f=a.deltaDecorations([],[{range:h,options:{description:"paste-line-suffix",stickiness:0}}]),m,g;try{m=yield this._bulkEditService.apply(u,{editor:this._editor,token:n}),g=a.getDecorationRange(f[0])}finally{a.deltaDecorations(f,[])}r&&m.isApplied&&t.allEdits.length>1&&this.show(g!=null?g:h,t,w=>pK(this,void 0,void 0,function*(){let _=this._editor.getModel();_&&(yield _.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:w,allEdits:t.allEdits},r,n))}))})}show(e,t,r){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(s2,this._id,this._editor,this._visibleContext,this._showCommand,e,t,r))}clear(){this._currentWidget.clear()}tryShowSelector(){var e;(e=this._currentWidget.value)===null||e===void 0||e.showSelector()}};hp=mK([$0(4,Ke),$0(5,Kc)],hp)});var kge,a2,G0,AI,LI,DI,MI,th,gK=N(()=>{mi();jt();j0();ke();CI();et();Pt();SI();lK();yu();K0();He();Sr();wt();wI();Ut();EI();II();kge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},a2=function(i,e){return function(t,r){e(t,r,i)}},G0=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},LI="editor.experimental.dropIntoEditor.defaultProvider",DI="editor.changeDropType",MI=new ht("dropWidgetVisible",!1,b("dropWidgetVisible","Whether the drop widget is showing")),th=AI=class extends ce{static get(e){return e.getContribution(AI.ID)}constructor(e,t,r,n,o){super(),this._configService=r,this._languageFeaturesService=n,this._treeViewsDragAndDropService=o,this.treeItemsTransfer=dp.getInstance(),this._dropProgressManager=this._register(t.createInstance(up,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(hp,"dropIntoEditor",e,MI,{id:DI,label:b("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor(s=>this.onDropIntoEditor(e,s.position,s.event)))}changeDropType(){this._postDropWidgetManager.tryShowSelector()}onDropIntoEditor(e,t,r){var n;return G0(this,void 0,void 0,function*(){if(!r.dataTransfer||!e.hasModel())return;(n=this._currentOperation)===null||n===void 0||n.cancel(),e.focus(),e.setPosition(t);let o=Jt(s=>G0(this,void 0,void 0,function*(){let a=new ga(e,1,void 0,s);try{let l=yield this.extractDataTransferData(r);if(l.size===0||a.token.isCancellationRequested)return;let c=e.getModel();if(!c)return;let d=this._languageFeaturesService.documentOnDropEditProvider.ordered(c).filter(h=>h.dropMimeTypes?h.dropMimeTypes.some(f=>l.matches(f)):!0),u=yield this.getDropEdits(d,c,t,l,a);if(a.token.isCancellationRequested)return;if(u.length){let h=this.getInitialActiveEditIndex(c,u),f=e.getOption(35).showDropSelector==="afterDrop";yield this._postDropWidgetManager.applyEditAndShowIfNeeded([B.fromPositions(t)],{activeEditIndex:h,allEdits:u},f,s)}}finally{a.dispose(),this._currentOperation===o&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,b("dropIntoEditorProgress","Running drop handlers. Click to cancel"),o),this._currentOperation=o})}getDropEdits(e,t,r,n,o){return G0(this,void 0,void 0,function*(){let s=yield Vc(Promise.all(e.map(l=>G0(this,void 0,void 0,function*(){try{let c=yield l.provideDocumentOnDropEdits(t,r,n,o.token);if(c)return Object.assign(Object.assign({},c),{providerId:l.id})}catch(c){console.error(c)}}))),o.token),a=hn(s!=null?s:[]);return o2(a)})}getInitialActiveEditIndex(e,t){let r=this._configService.getValue(LI,{resource:e.uri});for(let[n,o]of Object.entries(r)){let s=t.findIndex(a=>o===a.providerId&&a.handledMimeType&&Xx(n,[a.handledMimeType]));if(s>=0)return s}return 0}extractDataTransferData(e){return G0(this,void 0,void 0,function*(){if(!e.dataTransfer)return new lp;let t=i2(e.dataTransfer);if(this.treeItemsTransfer.hasData(q0.prototype)){let r=this.treeItemsTransfer.getData(q0.prototype);if(Array.isArray(r))for(let n of r){let o=yield this._treeViewsDragAndDropService.removeDragOperationTransfer(n.identifier);if(o)for(let[s,a]of o)t.replace(s,a)}}return t})}};th.ID="editor.contrib.dropIntoEditorController";th=AI=kge([a2(1,Ke),a2(2,Mt),a2(3,Se),a2(4,kI)],th)});var NI=N(()=>{lt();tF();j_();vI();He();X3();dl();gK();Ue(th.ID,th,2);We(new class extends Fi{constructor(){super({id:DI,precondition:MI,kbOpts:{weight:100,primary:2137}})}runEditorCommand(i,e,t){var r;(r=th.get(e))===null||r===void 0||r.changeDropType()}});Yc(e2);Jr.as(af.Configuration).registerConfiguration(Object.assign(Object.assign({},k_),{properties:{[LI]:{type:"object",scope:5,description:b("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}}))});var ja,bK=N(()=>{et();qc();Ur();tn();rn();ja=class i{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){let 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){let t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){let t=e{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,i._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,i._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let o=this._editor.getModel().getDecorationRange(t);if(o.startLineNumber!==o.endLineNumber&&o.endColumn===1){let s=o.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(s);o=new B(o.startLineNumber,o.startColumn,s,a)}this._rangeHighlightDecorationId=n.addDecoration(o,i._RANGE_HIGHLIGHT_DECORATION)}}),r}set(e,t){this._editor.changeDecorations(r=>{let n=i._FIND_MATCH_DECORATION,o=[];if(e.length>1e3){n=i._FIND_MATCH_NO_OVERVIEW_DECORATION;let a=this._editor.getModel().getLineCount(),c=this._editor.getLayoutInfo().height/a,d=Math.max(2,Math.ceil(3/c)),u=e[0].range.startLineNumber,h=e[0].range.endLineNumber;for(let f=1,m=e.length;f=g.startLineNumber?g.endLineNumber>h&&(h=g.endLineNumber):(o.push({range:new B(u,1,h,1),options:i._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),u=g.startLineNumber,h=g.endLineNumber)}o.push({range:new B(u,1,h,1),options:i._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}let s=new Array(e.length);for(let a=0,l=e.length;ar.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>r.addDecoration(a,i._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){let r=this._decorations[t],n=this._editor.getModel().getDecorationRange(r);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,r=this._decorations.length;te.lineNumber)return o;if(!(o.startColumn{et();l2=class{constructor(e,t,r){this._editorSelection=e,this._ranges=t,this._replaceStrings=r,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){let r=[];for(let s=0;sB.compareRangesUsingStarts(s.range,a.range));let n=[],o=r[0];for(let s=1;s0?e[0].toUpperCase()+e.substr(1):i[0][0].toUpperCase()!==i[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function _K(i,e,t){return i[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&i[0].split(t).length===e.split(t).length}function yK(i,e,t){let r=e.split(t),n=i[0].split(t),o="";return r.forEach((s,a)=>{o+=RI([n[a]],s)+t}),o.slice(0,-1)}var wK=N(()=>{Ni()});function xK(i){if(!i||i.length===0)return new pp(null);let e=[],t=new OI(i);for(let r=0,n=i.length;r=n)break;let s=i.charCodeAt(r);switch(s){case 92:t.emitUnchanged(r-1),t.emitStatic("\\",r+1);break;case 110:t.emitUnchanged(r-1),t.emitStatic(` +`,r+1);break;case 116:t.emitUnchanged(r-1),t.emitStatic(" ",r+1);break;case 117:case 85:case 108:case 76:t.emitUnchanged(r-1),t.emitStatic("",r+1),e.push(String.fromCharCode(s));break}continue}if(o===36){if(r++,r>=n)break;let s=i.charCodeAt(r);if(s===36){t.emitUnchanged(r-1),t.emitStatic("$",r+1);continue}if(s===48||s===38){t.emitUnchanged(r-1),t.emitMatchIndex(0,r+1,e),e.length=0;continue}if(49<=s&&s<=57){let a=s-48;if(r+1{wK();c2=class{constructor(e){this.staticValue=e,this.kind=0}},PI=class{constructor(e){this.pieces=e,this.kind=1}},pp=class i{static fromStaticValue(e){return new i([fp.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(e){!e||e.length===0?this._state=new c2(""):e.length===1&&e[0].staticValue!==null?this._state=new c2(e[0].staticValue):this._state=new PI(e)}buildReplaceString(e,t){if(this._state.kind===0)return t?RI(e,this._state.staticValue):this._state.staticValue;let r="";for(let n=0,o=this._state.pieces.length;n0){let l=[],c=s.caseOps.length,d=0;for(let u=0,h=a.length;u=c){l.push(a.slice(u));break}switch(s.caseOps[d]){case"U":l.push(a[u].toUpperCase());break;case"u":l.push(a[u].toUpperCase()),d++;break;case"L":l.push(a[u].toLowerCase());break;case"l":l.push(a[u].toLowerCase()),d++;break;default:l.push(a[u])}}a=l.join("")}r+=a}return r}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let r="";for(;e>0;){if(e{mi();jt();ke();Zv();di();et();Ar();Tre();bK();vK();CK();wt();Va=new ht("findWidgetVisible",!1),dWe=Va.toNegated(),mp=new ht("findInputFocussed",!1),Y0=new ht("replaceInputFocussed",!1),X0={primary:545,mac:{primary:2593}},Q0={primary:565,mac:{primary:2613}},Z0={primary:560,mac:{primary:2608}},J0={primary:554,mac:{primary:2602}},eb={primary:558,mac:{primary:2606}},ni={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",StartFindWithArgs:"editor.actions.findWithArgs",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",GoToMatchFindAction:"editor.action.goToMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},Wa=19999,Ege=240,d2=class i{constructor(e,t){this._toDispose=new le,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new aa,this._decorations=new ja(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new ui(()=>this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(r=>{(r.reason===3||r.reason===5||r.reason===6)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(r=>{this._ignoreModelContentChanged||(r.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(r=>this._onStateChanged(r))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,ji(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)},Ege)):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 r=null;typeof t!="undefined"?t!==null&&(Array.isArray(t)?r=t:r=[t]):r=this._decorations.getFindScopes(),r!==null&&(r=r.map(a=>{if(a.startLineNumber!==a.endLineNumber){let l=a.endLineNumber;return a.endColumn===1&&(l=l-1),new B(a.startLineNumber,1,l,this._editor.getModel().getLineMaxColumn(l))}return a}));let n=this._findMatches(r,!1,Wa);this._decorations.set(n,r);let o=this._editor.getSelection(),s=this._decorations.getCurrentMatchesPosition(o);if(s===0&&n.length>0){let a=e_(n.map(l=>l.range),l=>B.compareRangesUsingStarts(l,o)>=0);s=a>0?a-1+1:s}this._state.changeMatchInfo(s,this._decorations.getCount(),void 0),e&&this._editor.getOption(40).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){let e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){let t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:r,column:n}=e,o=this._editor.getModel();return t||n===1?(r===1?r=o.getLineCount():r--,n=o.getLineMaxColumn(r)):n--,new Ie(r,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){let d=this._decorations.matchAfterPosition(e);d&&this._setCurrentFindMatch(d);return}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0),{lineNumber:r,column:n}=e,o=this._editor.getModel();return t||n===o.getLineMaxColumn(r)?(r===o.getLineCount()?r=1:r++,n=1):n++,new Ie(r,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){let r=this._decorations.matchBeforePosition(e);r&&this._setCurrentFindMatch(r);return}if(this._decorations.getCount()i._getSearchRange(this._editor.getModel(),o));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(128):null,t,r)}replaceAll(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes();e===null&&this._state.matchesCount>=Wa?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){let t=new HO(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(128):null).parseSearchRequest();if(!t)return;let r=t.regex;if(!r.multiline){let u="mu";r.ignoreCase&&(u+="i"),r.global&&(u+="g"),r=new RegExp(r.source,u)}let n=this._editor.getModel(),o=n.getValue(1),s=n.getFullModelRange(),a=this._getReplacePattern(),l,c=this._state.preserveCase;a.hasReplacementPatterns||c?l=o.replace(r,function(){return a.buildReplaceString(arguments,c)}):l=o.replace(r,a.buildReplaceString(null,c));let d=new Qv(s,l,this._editor.getSelection());this._executeEditorCommand("replaceAll",d)}_regularReplaceAll(e){let t=this._getReplacePattern(),r=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let s=0,a=r.length;ss.range),n);this._executeEditorCommand("replaceAll",o)}selectAllMatches(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes(),r=this._findMatches(e,!1,1073741824).map(o=>new Qe(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn)),n=this._editor.getSelection();for(let o=0,s=r.length;o{});var kK=N(()=>{SK()});var ib,EK=N(()=>{Ht();kK();jre();M_();jt();tb();tn();ib=class i extends _l{constructor(e,t,r){super(),this._hideSoon=this._register(new ui(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=r,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");let n={inputActiveOptionBorder:da(g_),inputActiveOptionForeground:da(b_),inputActiveOptionBackground:da(gl)};this.caseSensitive=this._register(new DF(Object.assign({appendTitle:this._keybindingLabelFor(ni.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase},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 MF(Object.assign({appendTitle:this._keybindingLabelFor(ni.ToggleWholeWordCommand),isChecked:this._state.wholeWord},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 NF(Object.assign({appendTitle:this._keybindingLabelFor(ni.ToggleRegexCommand),isChecked:this._state.isRegex},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(o=>{let s=!1;o.isRegex&&(this.regex.checked=this._state.isRegex,s=!0),o.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,s=!0),o.matchCase&&(this.caseSensitive.checked=this._state.matchCase,s=!0),!this._state.isRevealed&&s&&this._revealTemporarily()})),this._register(Lt(this._domNode,bi.MOUSE_LEAVE,o=>this._onMouseLeave())),this._register(Lt(this._domNode,"mouseover",o=>this._onMouseOver()))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return i.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")}};ib.ID="editor.contrib.findOptionsWidget"});function u2(i,e){return i===1?!0:i===2?!1:e}var h2,TK=N(()=>{ei();ke();et();tb();h2=class extends ce{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return u2(this._isRegexOverride,this._isRegex)}get wholeWord(){return u2(this._wholeWordOverride,this._wholeWord)}get matchCase(){return u2(this._matchCaseOverride,this._matchCase)}get preserveCase(){return u2(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 Je),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,r){let 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},o=!1;t===0&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,o=!0),typeof r!="undefined"&&(B.equalsRange(this._currentMatch,r)||(this._currentMatch=r,n.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(n)}change(e,t,r=!0){var n;let o={moveCursor:t,updateHistory:r,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},s=!1,a=this.isRegex,l=this.wholeWord,c=this.matchCase,d=this.preserveCase;typeof e.searchString!="undefined"&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o.searchString=!0,s=!0),typeof e.replaceString!="undefined"&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o.replaceString=!0,s=!0),typeof e.isRevealed!="undefined"&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o.isRevealed=!0,s=!0),typeof e.isReplaceRevealed!="undefined"&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o.isReplaceRevealed=!0,s=!0),typeof e.isRegex!="undefined"&&(this._isRegex=e.isRegex),typeof e.wholeWord!="undefined"&&(this._wholeWord=e.wholeWord),typeof e.matchCase!="undefined"&&(this._matchCase=e.matchCase),typeof e.preserveCase!="undefined"&&(this._preserveCase=e.preserveCase),typeof e.searchScope!="undefined"&&(!((n=e.searchScope)===null||n===void 0)&&n.every(u=>{var h;return(h=this._searchScope)===null||h===void 0?void 0:h.some(f=>!B.equalsRange(f,u))})||(this._searchScope=e.searchScope,o.searchScope=!0,s=!0)),typeof e.loop!="undefined"&&this._loop!==e.loop&&(this._loop=e.loop,o.loop=!0,s=!0),typeof e.isSearching!="undefined"&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,o.isSearching=!0,s=!0),typeof e.filters!="undefined"&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,o.filters=!0,s=!0),this._isRegexOverride=typeof e.isRegexOverride!="undefined"?e.isRegexOverride:0,this._wholeWordOverride=typeof e.wholeWordOverride!="undefined"?e.wholeWordOverride:0,this._matchCaseOverride=typeof e.matchCaseOverride!="undefined"?e.matchCaseOverride:0,this._preserveCaseOverride=typeof e.preserveCaseOverride!="undefined"?e.preserveCaseOverride:0,a!==this.isRegex&&(s=!0,o.isRegex=!0),l!==this.wholeWord&&(s=!0,o.wholeWord=!0),c!==this.matchCase&&(s=!0,o.matchCase=!0),d!==this.preserveCase&&(s=!0,o.preserveCase=!0),s&&this._onFindReplaceStateChange.fire(o)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=Wa}}});var IK=N(()=>{});var AK=N(()=>{IK()});var Tge,Ige,FI,f2,LK=N(()=>{Ht();LF();Wre();M_();Zr();ei();Vre();He();Tge=b("defaultLabel","input"),Ige=b("label.preserveCaseToggle","Preserve Case"),FI=class extends W_{constructor(e){super({icon:pt.preserveCase,title:Ige+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}},f2=class extends _l{constructor(e,t,r,n){super(),this._showOptionButtons=r,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new Je),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new Je),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new Je),this._onInput=this._register(new Je),this._onKeyUp=this._register(new Je),this._onPreserveCaseKeyDown=this._register(new Je),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||Tge;let o=n.appendPreserveCaseLabel||"",s=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new RF(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:s,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new FI(Object.assign({appendTitle:o,isChecked:!1},n.toggleStyles))),this._register(this.preserveCase.onChange(h=>{this._onDidOptionChange.fire(h),!h&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(h=>{this._onPreserveCaseKeyDown.fire(h)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;let d=[this.preserveCase.domNode];this.onkeydown(this.domNode,h=>{if(h.equals(15)||h.equals(17)||h.equals(9)){let f=d.indexOf(document.activeElement);if(f>=0){let m=-1;h.equals(17)?m=(f+1)%d.length:h.equals(15)&&(f===0?m=d.length-1:m=f-1),h.equals(9)?(d[f].blur(),this.inputBox.focus()):m>=0&&d[m].focus(),cu.stop(h,!0)}}});let u=document.createElement("div");u.className="controls",u.style.display=this._showOptionButtons?"block":"none",u.appendChild(this.preserveCase.domNode),this.domNode.appendChild(u),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,h=>this._onKeyDown.fire(h)),this.onkeyup(this.inputBox.inputElement,h=>this._onKeyUp.fire(h)),this.oninput(this.inputBox.inputElement,h=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,h=>this._onMouseDown.fire(h))}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()}}});function PK(i,e){if(p2.includes(e))throw new Error("Cannot register the same widget multiple times");p2.push(e);let t=new le,r=new ht(zI,!1).bindTo(i),n=new ht(NK,!0).bindTo(i),o=new ht(RK,!0).bindTo(i),s=()=>{r.set(!0),ic=e},a=()=>{r.set(!1),ic===e&&(ic=void 0)};return e.element===document.activeElement&&s(),t.add(e.onDidFocus(()=>s())),t.add(e.onDidBlur(()=>a())),t.add(ri(()=>{p2.splice(p2.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:o,dispose(){t.dispose()}}}var DK,MK,b2,zI,NK,RK,ic,p2,m2,g2,BI=N(()=>{qre();LK();wt();j3();He();ke();DK=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},MK=function(i,e){return function(t,r){e(t,r,i)}},b2=new ht("suggestWidgetVisible",!1,b("suggestWidgetVisible","Whether suggestion are visible")),zI="historyNavigationWidgetFocus",NK="historyNavigationForwardsEnabled",RK="historyNavigationBackwardsEnabled",p2=[];m2=class extends PF{constructor(e,t,r,n){super(e,t,r);let o=this._register(n.createScoped(this.inputBox.element));this._register(PK(o,this.inputBox))}};m2=DK([MK(3,it)],m2);g2=class extends f2{constructor(e,t,r,n,o=!1){super(e,t,o,r);let s=this._register(n.createScoped(this.inputBox.element));this._register(PK(s,this.inputBox))}};g2=DK([MK(3,it)],g2);Ao.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:fe.and(fe.has(zI),fe.equals(RK,!0),fe.not("isComposing"),b2.isEqualTo(!1)),primary:16,secondary:[528],handler:i=>{ic==null||ic.showPreviousValue()}});Ao.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:fe.and(fe.has(zI),fe.equals(NK,!0),fe.not("isComposing"),b2.isEqualTo(!1)),primary:18,secondary:[530],handler:i=>{ic==null||ic.showNextValue()}})});function HI(i){var e,t;return((e=i.lookupKeybinding("history.showPrevious"))===null||e===void 0?void 0:e.getElectronAccelerator())==="Up"&&((t=i.lookupKeybinding("history.showNext"))===null||t===void 0?void 0:t.getElectronAccelerator())==="Down"}var OK=N(()=>{});function jK(i,e,t){let r=!!e.match(/\n/);if(t&&r&&t.selectionStart>0){i.stopPropagation();return}}function WK(i,e,t){let r=!!e.match(/\n/);if(t&&r&&t.selectionEnd{Ht();Io();LF();bk();M_();jt();Zr();qt();ke();Tn();Ni();AK();et();tb();He();BI();OK();tn();Sl();rn();An();ok();zr();O_();Age=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Lge=Pi("find-selection",pt.selection,b("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),FK=Pi("find-collapsed",pt.chevronRight,b("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),zK=Pi("find-expanded",pt.chevronDown,b("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Dge=Pi("find-replace",pt.replace,b("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Mge=Pi("find-replace-all",pt.replaceAll,b("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Nge=Pi("find-previous-match",pt.arrowUp,b("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Rge=Pi("find-next-match",pt.arrowDown,b("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Pge=b("label.findDialog","Find / Replace"),Oge=b("label.find","Find"),Fge=b("placeholder.find","Find"),zge=b("label.previousMatchButton","Previous Match"),Bge=b("label.nextMatchButton","Next Match"),Hge=b("label.toggleSelectionFind","Find in Selection"),Uge=b("label.closeButton","Close"),jge=b("label.replace","Replace"),Wge=b("placeholder.replace","Replace"),Vge=b("label.replaceButton","Replace"),qge=b("label.replaceAllButton","Replace All"),Kge=b("label.toggleReplaceButton","Toggle Replace"),$ge=b("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",Wa),Gge=b("label.matchesLocation","{0} of {1}"),BK=b("label.noResults","No results"),qa=419,Yge=275,Xge=Yge-54,rb=69,Qge=33,HK="ctrlEnterReplaceAll.windows.donotask",UK=En?256:2048,nb=class{constructor(e){this.afterLineNumber=e,this.heightInPx=Qge,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}};ob=class i extends _l{constructor(e,t,r,n,o,s,a,l,c){super(),this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=r,this._contextViewProvider=n,this._keybindingService=o,this._contextKeyService=s,this._storageService=l,this._notificationService=c,this._ctrlEnterReplaceAllWarningPrompted=!!l.getBoolean(HK,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new Do(500),this._register(ri(()=>this._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(d=>this._onStateChanged(d))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(d=>{if(d.hasChanged(89)&&(this._codeEditor.getOption(89)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),d.hasChanged(142)&&this._tryUpdateWidgetWidth(),d.hasChanged(2)&&this.updateAccessibilitySupport(),d.hasChanged(40)){let u=this._codeEditor.getOption(40).loop;this._state.change({loop:u},!1);let h=this._codeEditor.getOption(40).addExtraSpaceOnTop;h&&!this._viewZone&&(this._viewZone=new nb(0),this._showViewZone()),!h&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>Age(this,void 0,void 0,function*(){if(this._isVisible){let d=yield this._controller.getGlobalBufferTerm();d&&d!==this._state.searchString&&(this._state.change({searchString:d},!1),this._findInput.select())}}))),this._findInputFocused=mp.bindTo(s),this._findFocusTracker=this._register(xs(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=Y0.bindTo(s),this._replaceFocusTracker=this._register(xs(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(40).addExtraSpaceOnTop&&(this._viewZone=new nb(0)),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(d=>{if(d.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return i.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(89)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=Kn(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){let 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,ft)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){this._matchesCount.style.minWidth=rb+"px",this._state.matchesCount>=Wa?this._matchesCount.title=$ge: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>=Wa&&(t+="+");let r=String(this._state.matchesPosition);r==="0"&&(r="?"),e=nf(Gge,r,t)}else e=BK;this._matchesCount.appendChild(document.createTextNode(e)),ar(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),rb=Math.max(rb,this._matchesCount.clientWidth)}_getAriaLabel(e,t,r){if(e===BK)return r===""?b("ariaSearchNoResultEmpty","{0} found",e):b("ariaSearchNoResult","{0} found for '{1}'",e,r);if(t){let n=b("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,r,t.startLineNumber+":"+t.startColumn),o=this._codeEditor.getModel();return o&&t.startLineNumber<=o.getLineCount()&&t.startLineNumber>=1?`${o.getLineContent(t.startLineNumber)}, ${n}`:n}return b("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,r)}_updateToggleSelectionFindButton(){let e=this._codeEditor.getSelection(),t=e?e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn:!1,r=this._toggleSelectionFind.checked;this._isVisible&&(r||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);let 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);let r=!this._codeEditor.getOption(89);this._toggleReplaceBtn.setEnabled(this._isVisible&&r)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;let e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(40).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{let r=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=r;break}default: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(40).seedSearchStringFromSelection&&e){let r=this._codeEditor.getDomNode();if(r){let n=Zi(r),o=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),s=n.left+(o?o.left:0),a=o?o.top:0;if(this._viewZone&&ae.startLineNumber&&(t=!1);let l=oP(this._domNode).left;s>l&&(t=!1);let c=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(c?c.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(40).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;let r=this._viewZone;this._viewZoneId!==void 0||!r||this._codeEditor.changeViewZones(n=>{r.heightInPx=this._getHeight(),this._viewZoneId=n.addZone(r),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+r.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(40).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new nb(0));let r=this._viewZone;this._codeEditor.changeViewZones(n=>{if(this._viewZoneId!==void 0){let o=this._getHeight();if(o===r.heightInPx)return;let s=o-r.heightInPx;r.heightInPx=o,n.layoutZone(this._viewZoneId),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s);return}else{let o=this._getHeight();if(o-=this._codeEditor.getOption(82).top,o<=0)return;r.heightInPx=o,this._viewZoneId=n.addZone(r),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+o)}})}_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||!iP(this._domNode))return;let 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");let r=e.width,n=e.minimap.minimapWidth,o=!1,s=!1,a=!1;if(this._resized&&Kn(this._domNode)>qa){this._domNode.style.maxWidth=`${r-28-n-15}px`,this._replaceInput.width=Kn(this._findInput.domNode);return}if(qa+28+n>=r&&(s=!0),qa+28+n-rb>=r&&(a=!0),qa+28+n-rb>=r+50&&(o=!0),this._domNode.classList.toggle("collapsed-find-widget",o),this._domNode.classList.toggle("narrow-find-widget",a),this._domNode.classList.toggle("reduced-find-widget",s),!a&&!o&&(this._domNode.style.maxWidth=`${r-28-n-15}px`),this._findInput.layout({collapsedFindWidget:o,narrowFindWidget:a,reducedFindWidget:s}),this._resized){let l=this._findInput.inputBox.element.clientWidth;l>0&&(this._replaceInput.width=l)}else this._isReplaceVisible&&(this._replaceInput.width=Kn(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(){let 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){let 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)));let r=this._state.currentMatch;return t.startLineNumber!==t.endLineNumber&&!B.equalsRange(t,r)?t:null}).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){if(e.equals(UK|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 jK(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(e.equals(18))return WK(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))}_onReplaceInputKeyDown(e){if(e.equals(UK|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{Rc&&Pc&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(b("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(HK,!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 jK(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(e.equals(18))return WK(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new m2(null,this._contextViewProvider,{width:Xge,label:Oge,placeholder:Fge,appendCaseSensitiveLabel:this._keybindingLabelFor(ni.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(ni.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(ni.ToggleRegexCommand),validation:l=>{if(l.length===0||!this._findInput.getRegex())return null;try{return new RegExp(l,"gu"),null}catch(c){return{content:c.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>HI(this._keybindingService),inputBoxStyles:hk,toggleStyles:uk},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(l=>this._onFindInputKeyDown(l))),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(l=>{l.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),l.preventDefault())})),this._register(this._findInput.onRegexKeyDown(l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),l.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(l=>{this._tryUpdateHeight()&&this._showViewZone()})),Y9&&this._register(this._findInput.onMouseDown(l=>this._onFindInputMouseDown(l))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new Id({label:zge+this._keybindingLabelFor(ni.PreviousMatchFindAction),icon:Nge,onTrigger:()=>{Nc(this._codeEditor.getAction(ni.PreviousMatchFindAction)).run().then(void 0,ft)}})),this._nextBtn=this._register(new Id({label:Bge+this._keybindingLabelFor(ni.NextMatchFindAction),icon:Rge,onTrigger:()=>{Nc(this._codeEditor.getAction(ni.NextMatchFindAction)).run().then(void 0,ft)}}));let r=document.createElement("div");r.className="find-part",r.appendChild(this._findInput.domNode);let n=document.createElement("div");n.className="find-actions",r.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new W_({icon:Lge,title:Hge+this._keybindingLabelFor(ni.ToggleSearchScopeCommand),isChecked:!1,inputActiveOptionBackground:da(gl),inputActiveOptionBorder:da(g_),inputActiveOptionForeground:da(b_)})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let l=this._codeEditor.getSelections();l.map(c=>(c.endColumn===1&&c.endLineNumber>c.startLineNumber&&(c=c.setEndPosition(c.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(c.endLineNumber-1))),c.isEmpty()?null:c)).filter(c=>!!c),l.length&&this._state.change({searchScope:l},!0)}}else this._state.change({searchScope:null},!0)})),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new Id({label:Uge+this._keybindingLabelFor(ni.CloseFindWidgetCommand),icon:V_,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),l.preventDefault())}})),this._replaceInput=this._register(new g2(null,void 0,{label:jge,placeholder:Wge,appendPreserveCaseLabel:this._keybindingLabelFor(ni.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>HI(this._keybindingService),inputBoxStyles:hk,toggleStyles:uk},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(l=>this._onReplaceInputKeyDown(l))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(l=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(l=>{l.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(),l.preventDefault())})),this._replaceBtn=this._register(new Id({label:Vge+this._keybindingLabelFor(ni.ReplaceOneAction),icon:Dge,onTrigger:()=>{this._controller.replace()},onKeyDown:l=>{l.equals(1026)&&(this._closeBtn.focus(),l.preventDefault())}})),this._replaceAllBtn=this._register(new Id({label:qge+this._keybindingLabelFor(ni.ReplaceAllAction),icon:Mge,onTrigger:()=>{this._controller.replaceAll()}}));let o=document.createElement("div");o.className="replace-part",o.appendChild(this._replaceInput.domNode);let s=document.createElement("div");s.className="replace-actions",o.appendChild(s),s.appendChild(this._replaceBtn.domNode),s.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new Id({label:Kge,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=Kn(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),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=Pge,this._domNode.role="dialog",this._domNode.style.width=`${qa}px`,this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(r),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(o),this._resizeSash=new Cl(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let a=qa;this._register(this._resizeSash.onDidStart(()=>{a=Kn(this._domNode)})),this._register(this._resizeSash.onDidChange(l=>{this._resized=!0;let c=a+l.startX-l.currentX;if(cd||(this._domNode.style.width=`${c}px`,this._isReplaceVisible&&(this._replaceInput.width=Kn(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{let l=Kn(this._domNode);if(l{this._opts.onTrigger(),r.preventDefault()}),this.onkeydown(this._domNode,r=>{var n,o;if(r.equals(10)||r.equals(3)){this._opts.onTrigger(),r.preventDefault();return}(o=(n=this._opts).onKeyDown)===null||o===void 0||o.call(n,r)})}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(..._t.asClassNameArray(FK)),this._domNode.classList.add(..._t.asClassNameArray(zK))):(this._domNode.classList.remove(..._t.asClassNameArray(zK)),this._domNode.classList.add(..._t.asClassNameArray(FK)))}};bf((i,e)=>{let t=(g,w)=>{w&&e.addRule(`.monaco-editor ${g} { background-color: ${w}; }`)};t(".findMatch",i.getColor(SO)),t(".currentFindMatch",i.getColor(CO)),t(".findScope",i.getColor(kO));let r=i.getColor(bl);t(".find-widget",r);let n=i.getColor(p_);n&&e.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${n}; }`);let o=i.getColor(m_);o&&e.addRule(`.monaco-editor .find-widget { border-left: 1px solid ${o}; border-right: 1px solid ${o}; border-bottom: 1px solid ${o}; }`);let s=i.getColor(TO);s&&e.addRule(`.monaco-editor .findMatch { border: 1px ${_u(i.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`);let a=i.getColor(EO);a&&e.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${a}; padding: 1px; box-sizing: border-box; }`);let l=i.getColor(IO);l&&e.addRule(`.monaco-editor .findScope { border: 1px ${_u(i.type)?"dashed":"solid"} ${l}; }`);let c=i.getColor(ts);c&&e.addRule(`.monaco-editor .find-widget { border: 1px solid ${c}; }`);let d=i.getColor(yO);d&&e.addRule(`.monaco-editor .find-widget { color: ${d}; }`);let u=i.getColor(dO);u&&e.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${u}; }`);let h=i.getColor(wO);if(h)e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${h}; }`);else{let g=i.getColor(vu);g&&e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${g}; }`)}let f=i.getColor(FO);f&&e.addRule(` .monaco-editor .find-widget .button:not(.disabled):hover, .monaco-editor .find-widget .codicon-find-selection:hover { background-color: ${f} !important; } - `);let m=i.getColor(uO);m&&e.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${m}; }`)})});function jI(i,e="single",t=!1){if(!i.hasModel())return null;let r=i.getSelection();if(e==="single"&&r.startLineNumber===r.endLineNumber||e==="multiple"){if(r.isEmpty()){let n=i.getConfiguredWordAtPosition(r.getStartPosition());if(n&&t===!1)return n.word}else if(i.getModel().getValueLengthInRange(r){jt();ke();Ni();lt();zO();ti();qc();tb();EK();TK();VK();He();Ji();Zm();wt();yl();jr();Mo();wl();wu();rn();qK=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ka=function(i,e){return function(t,r){e(t,r,i)}},ih=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Zge=524288;ln=UI=class extends ce{get editor(){return this._editor}static get(e){return e.getContribution(UI.ID)}constructor(e,t,r,n){super(),this._editor=e,this._findWidgetVisible=Va.bindTo(t),this._contextKeyService=t,this._storageService=r,this._clipboardService=n,this._updateHistoryDelayer=new Do(500),this._state=this._register(new h2),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(o=>this._onStateChanged(o))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{let o=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),o&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(40).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!!mp.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.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=cl(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}_start(e,t){return ih(this,void 0,void 0,function*(){if(this.disposeModel(),!this._editor.hasModel())return;let r=Object.assign(Object.assign({},t),{isRevealed:!0});if(e.seedSearchStringFromSelection==="single"){let n=jI(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);n&&(this._state.isRegex?r.searchString=cl(n):r.searchString=n)}else if(e.seedSearchStringFromSelection==="multiple"&&!e.updateSearchScope){let n=jI(this._editor,e.seedSearchStringFromSelection);n&&(r.searchString=n)}if(!r.searchString&&e.seedSearchStringFromGlobalClipboard){let n=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;n&&(r.searchString=n)}if(e.forceRevealReplace||r.isReplaceRevealed?r.isReplaceRevealed=!0:this._findWidgetVisible.get()||(r.isReplaceRevealed=!1),e.updateSearchScope){let n=this._editor.getSelections();n.some(o=>!o.isEmpty())&&(r.searchScope=n)}r.loop=e.loop,this._state.change(r,!1),this._model||(this._model=new d2(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(){return this._model?(this._model.replaceAll(),!0):!1}selectAllMatches(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1}getGlobalBufferTerm(){return ih(this,void 0,void 0,function*(){return this._editor.getOption(40).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""})}setGlobalBufferTerm(e){this._editor.getOption(40).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};ln.ID="editor.contrib.findController";ln=UI=qK([Ka(1,it),Ka(2,Yn),Ka(3,As)],ln);WI=class extends ln{constructor(e,t,r,n,o,s,a,l){super(e,r,a,l),this._contextViewService=t,this._keybindingService=n,this._themeService=o,this._notificationService=s,this._widget=null,this._findOptionsWidget=null}_start(e,t){let r=Object.create(null,{_start:{get:()=>super._start}});return ih(this,void 0,void 0,function*(){this._widget||this._createFindWidget();let n=this._editor.getSelection(),o=!1;switch(this._editor.getOption(40).autoFindInSelection){case"always":o=!0;break;case"never":o=!1;break;case"multiline":{o=!!n&&n.startLineNumber!==n.endLineNumber;break}default:break}e.updateSearchScope=e.updateSearchScope||o,yield r._start.call(this,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 ob(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new ib(this._editor,this._state,this._keybindingService))}};WI=qK([Ka(1,Gc),Ka(2,it),Ka(3,Kt),Ka(4,br),Ka(5,Ri),Ka(6,Yn),Ka(7,As)],WI);Jge=V3(new W3({id:ni.StartFindAction,label:b("startFindAction","Find"),alias:"Find",precondition:fe.or(O.focus,fe.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:Me.MenubarEditMenu,group:"3_find",title:b({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}}));Jge.addImplementation(0,(i,e,t)=>{let r=ln.get(e);return r?r.start({forceRevealReplace:!1,seedSearchStringFromSelection:e.getOption(40).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:e.getOption(40).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:e.getOption(40).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(40).loop}):!1});e0e={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"},regex:{type:"boolean"},regexOverride:{type:"number",description:b("actions.find.isRegexOverride",`Overrides "Use Regular Expression" flag. + `);let m=i.getColor(uO);m&&e.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${m}; }`)})});function jI(i,e="single",t=!1){if(!i.hasModel())return null;let r=i.getSelection();if(e==="single"&&r.startLineNumber===r.endLineNumber||e==="multiple"){if(r.isEmpty()){let n=i.getConfiguredWordAtPosition(r.getStartPosition());if(n&&t===!1)return n.word}else if(i.getModel().getValueLengthInRange(r){jt();ke();Ni();lt();zO();ti();qc();tb();EK();TK();VK();He();Ji();Zm();wt();yl();jr();Mo();wl();wu();rn();qK=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ka=function(i,e){return function(t,r){e(t,r,i)}},ih=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Zge=524288;ln=UI=class extends ce{get editor(){return this._editor}static get(e){return e.getContribution(UI.ID)}constructor(e,t,r,n){super(),this._editor=e,this._findWidgetVisible=Va.bindTo(t),this._contextKeyService=t,this._storageService=r,this._clipboardService=n,this._updateHistoryDelayer=new Do(500),this._state=this._register(new h2),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(o=>this._onStateChanged(o))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{let o=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),o&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(40).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!!mp.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.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=cl(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}_start(e,t){return ih(this,void 0,void 0,function*(){if(this.disposeModel(),!this._editor.hasModel())return;let r=Object.assign(Object.assign({},t),{isRevealed:!0});if(e.seedSearchStringFromSelection==="single"){let n=jI(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);n&&(this._state.isRegex?r.searchString=cl(n):r.searchString=n)}else if(e.seedSearchStringFromSelection==="multiple"&&!e.updateSearchScope){let n=jI(this._editor,e.seedSearchStringFromSelection);n&&(r.searchString=n)}if(!r.searchString&&e.seedSearchStringFromGlobalClipboard){let n=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;n&&(r.searchString=n)}if(e.forceRevealReplace||r.isReplaceRevealed?r.isReplaceRevealed=!0:this._findWidgetVisible.get()||(r.isReplaceRevealed=!1),e.updateSearchScope){let n=this._editor.getSelections();n.some(o=>!o.isEmpty())&&(r.searchScope=n)}r.loop=e.loop,this._state.change(r,!1),this._model||(this._model=new d2(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(){return this._model?(this._model.replaceAll(),!0):!1}selectAllMatches(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1}getGlobalBufferTerm(){return ih(this,void 0,void 0,function*(){return this._editor.getOption(40).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""})}setGlobalBufferTerm(e){this._editor.getOption(40).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};ln.ID="editor.contrib.findController";ln=UI=qK([Ka(1,it),Ka(2,Yn),Ka(3,As)],ln);WI=class extends ln{constructor(e,t,r,n,o,s,a,l){super(e,r,a,l),this._contextViewService=t,this._keybindingService=n,this._themeService=o,this._notificationService=s,this._widget=null,this._findOptionsWidget=null}_start(e,t){let r=Object.create(null,{_start:{get:()=>super._start}});return ih(this,void 0,void 0,function*(){this._widget||this._createFindWidget();let n=this._editor.getSelection(),o=!1;switch(this._editor.getOption(40).autoFindInSelection){case"always":o=!0;break;case"never":o=!1;break;case"multiline":{o=!!n&&n.startLineNumber!==n.endLineNumber;break}default:break}e.updateSearchScope=e.updateSearchScope||o,yield r._start.call(this,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 ob(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new ib(this._editor,this._state,this._keybindingService))}};WI=qK([Ka(1,Gc),Ka(2,it),Ka(3,Kt),Ka(4,br),Ka(5,Ri),Ka(6,Yn),Ka(7,As)],WI);Jge=V3(new W3({id:ni.StartFindAction,label:b("startFindAction","Find"),alias:"Find",precondition:fe.or(F.focus,fe.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:Me.MenubarEditMenu,group:"3_find",title:b({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}}));Jge.addImplementation(0,(i,e,t)=>{let r=ln.get(e);return r?r.start({forceRevealReplace:!1,seedSearchStringFromSelection:e.getOption(40).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:e.getOption(40).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:e.getOption(40).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(40).loop}):!1});e0e={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"},regex:{type:"boolean"},regexOverride:{type:"number",description:b("actions.find.isRegexOverride",`Overrides "Use Regular Expression" flag. The flag will not be saved for the future. 0: Do Nothing 1: True @@ -25,71 +25,71 @@ The flag will not be saved for the future. The flag will not be saved for the future. 0: Do Nothing 1: True -2: False`)},findInSelection:{type:"boolean"}}}}]},VI=class extends de{constructor(){super({id:ni.StartFindWithArgs,label:b("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},description:e0e})}run(e,t,r){return ih(this,void 0,void 0,function*(){let n=ln.get(t);if(n){let o=r?{searchString:r.searchString,replaceString:r.replaceString,isReplaceRevealed:r.replaceString!==void 0,isRegex:r.isRegex,wholeWord:r.matchWholeWord,matchCase:r.isCaseSensitive,preserveCase:r.preserveCase}:{};yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:n.getState().searchString.length===0&&t.getOption(40).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:t.getOption(40).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(r==null?void 0:r.findInSelection)||!1,loop:t.getOption(40).loop},o),n.setGlobalBufferTerm(n.getState().searchString)}})}},qI=class extends de{constructor(){super({id:ni.StartFindWithSelection,label:b("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(e,t){return ih(this,void 0,void 0,function*(){let r=ln.get(t);r&&(yield r.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(40).loop}),r.setGlobalBufferTerm(r.getState().searchString))})}},v2=class extends de{run(e,t){return ih(this,void 0,void 0,function*(){let r=ln.get(t);r&&!this._run(r)&&(yield r.start({forceRevealReplace:!1,seedSearchStringFromSelection:r.getState().searchString.length===0&&t.getOption(40).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:t.getOption(40).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(40).loop}),this._run(r))})}},KI=class extends v2{constructor(){super({id:ni.NextMatchFindAction,label:b("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:O.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:fe.and(O.focus,mp),primary:3,weight:100}]})}_run(e){return e.moveToNextMatch()?(e.editor.pushUndoStop(),!0):!1}},$I=class extends v2{constructor(){super({id:ni.PreviousMatchFindAction,label:b("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:O.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:fe.and(O.focus,mp),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}},GI=class extends de{constructor(){super({id:ni.GoToMatchFindAction,label:b("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:Va}),this._highlightDecorations=[]}run(e,t,r){let n=ln.get(t);if(!n)return;let o=n.getState().matchesCount;if(o<1){e.get(Ri).notify({severity:wf.Warning,message:b("findMatchAction.noResults","No matches. Try searching for something else.")});return}let a=e.get(nn).createInputBox();a.placeholder=b("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",o);let l=d=>{let u=parseInt(d);if(isNaN(u))return;let h=n.getState().matchesCount;if(u>0&&u<=h)return u-1;if(u<0&&u>=-h)return h+u},c=d=>{let u=l(d);if(typeof u=="number"){a.validationMessage=void 0,n.goToMatch(u);let h=n.getState().currentMatch;h&&this.addDecorations(t,h)}else a.validationMessage=b("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount),this.clearDecorations(t)};a.onDidChangeValue(d=>{c(d)}),a.onDidAccept(()=>{let d=l(a.value);typeof d=="number"?(n.goToMatch(d),a.hide()):a.validationMessage=b("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(r=>{this._highlightDecorations=r.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:Ei(y_),position:Gn.Full}}}])})}},_2=class extends de{run(e,t){return ih(this,void 0,void 0,function*(){let r=ln.get(t);if(!r)return;let n=jI(t,"single",!1);n&&r.setSearchString(n),this._run(r)||(yield r.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(40).loop}),this._run(r))})}},YI=class extends _2{constructor(){super({id:ni.NextSelectionMatchFindAction,label:b("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}},XI=class extends _2{constructor(){super({id:ni.PreviousSelectionMatchFindAction,label:b("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}},t0e=V3(new W3({id:ni.StartFindReplaceAction,label:b("startReplace","Replace"),alias:"Replace",precondition:fe.or(O.focus,fe.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:Me.MenubarEditMenu,group:"3_find",title:b({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}}));t0e.addImplementation(0,(i,e,t)=>{if(!e.hasModel()||e.getOption(89))return!1;let r=ln.get(e);if(!r)return!1;let n=e.getSelection(),o=r.isFindInputFocused(),s=!n.isEmpty()&&n.startLineNumber===n.endLineNumber&&e.getOption(40).seedSearchStringFromSelection!=="never"&&!o,a=o||s?2:1;return r.start({forceRevealReplace:!0,seedSearchStringFromSelection:s?"single":"none",seedSearchStringFromNonEmptySelection:e.getOption(40).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:e.getOption(40).seedSearchStringFromSelection!=="never",shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(40).loop})});Ue(ln.ID,WI,0);ee(VI);ee(qI);ee(KI);ee($I);ee(GI);ee(YI);ee(XI);Ws=Fi.bindToContribution(ln.get);We(new Ws({id:ni.CloseFindWidgetCommand,precondition:Va,handler:i=>i.closeFindWidget(),kbOpts:{weight:100+5,kbExpr:fe.and(O.focus,fe.not("isComposing")),primary:9,secondary:[1033]}}));We(new Ws({id:ni.ToggleCaseSensitiveCommand,precondition:void 0,handler:i=>i.toggleCaseSensitive(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:X0.primary,mac:X0.mac,win:X0.win,linux:X0.linux}}));We(new Ws({id:ni.ToggleWholeWordCommand,precondition:void 0,handler:i=>i.toggleWholeWords(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:Q0.primary,mac:Q0.mac,win:Q0.win,linux:Q0.linux}}));We(new Ws({id:ni.ToggleRegexCommand,precondition:void 0,handler:i=>i.toggleRegex(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:Z0.primary,mac:Z0.mac,win:Z0.win,linux:Z0.linux}}));We(new Ws({id:ni.ToggleSearchScopeCommand,precondition:void 0,handler:i=>i.toggleSearchScope(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:J0.primary,mac:J0.mac,win:J0.win,linux:J0.linux}}));We(new Ws({id:ni.TogglePreserveCaseCommand,precondition:void 0,handler:i=>i.togglePreserveCase(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:eb.primary,mac:eb.mac,win:eb.win,linux:eb.linux}}));We(new Ws({id:ni.ReplaceOneAction,precondition:Va,handler:i=>i.replace(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:3094}}));We(new Ws({id:ni.ReplaceOneAction,precondition:Va,handler:i=>i.replace(),kbOpts:{weight:100+5,kbExpr:fe.and(O.focus,Y0),primary:3}}));We(new Ws({id:ni.ReplaceAllAction,precondition:Va,handler:i=>i.replaceAll(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:2563}}));We(new Ws({id:ni.ReplaceAllAction,precondition:Va,handler:i=>i.replaceAll(),kbOpts:{weight:100+5,kbExpr:fe.and(O.focus,Y0),primary:void 0,mac:{primary:2051}}}));We(new Ws({id:ni.SelectAllMatchesAction,precondition:Va,handler:i=>i.selectAllMatches(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:515}}))});var KK=M(()=>{});var $K=M(()=>{KK()});var i0e,GK,Ho,YK,sb,cn,QI,ab=M(()=>{i0e={0:" ",1:"u",2:"r"},GK=65535,Ho=16777215,YK=4278190080,sb=class{constructor(e){let t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){let t=e/32|0,r=e%32;return(this._states[t]&1<GK)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new sb(e.length),this._userDefinedStates=new sb(e.length),this._recoveredStates=new sb(e.length),this._types=r,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;let e=[],t=(r,n)=>{let o=e[e.length-1];return this.getStartLineNumber(o)<=r&&this.getEndLineNumber(o)>=n};for(let r=0,n=this._startIndexes.length;rHo||s>Ho)throw new Error("startLineNumber or endLineNumber must not exceed "+Ho);for(;e.length>0&&!t(o,s);)e.pop();let a=e.length>0?e[e.length-1]:-1;e.push(r),this._startIndexes[r]=o+((a&255)<<24),this._endIndexes[r]=s+((a&65280)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&Ho}getEndLineNumber(e){return this._endIndexes[e]&Ho}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 r=!1;if(this._types)for(let n=0;n>>24)+((this._endIndexes[e]&YK)>>>16);return t===GK?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,r=this._startIndexes.length;if(r===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(){let e=[];for(let t=0;tArray.isArray(g)?_=>__=d.startLineNumber))c&&c.startLineNumber===d.startLineNumber?(d.source===1?g=d:(g=c,g.isCollapsed=d.isCollapsed&&c.endLineNumber===d.endLineNumber,g.source=0),c=o(++a)):(g=d,d.isCollapsed&&d.source===0&&(g.source=2)),d=s(++l);else{let w=l,_=d;for(;;){if(!_||_.startLineNumber>c.endLineNumber){g=c;break}if(_.source===1&&_.endLineNumber>c.endLineNumber)break;_=s(++w)}c=o(++a)}if(g){for(;h&&h.endLineNumberg.startLineNumber&&g.startLineNumber>f&&g.endLineNumber<=r&&(!h||h.endLineNumber>=g.endLineNumber)&&(m.push(g),f=g.startLineNumber,h&&u.push(h),h=g)}}return m}},QI=class{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}}});function x2(i,e,t){let r=[];for(let n of t){let o=i.getRegionAtLine(n);if(o){let s=!o.isCollapsed;if(r.push(o),e>1){let a=i.getRegionsInside(o,(l,c)=>l.isCollapsed!==s&&c0)for(let o of r){let s=i.getRegionAtLine(o);if(s&&(s.isCollapsed!==e&&n.push(s),t>1)){let a=i.getRegionsInside(s,(l,c)=>l.isCollapsed!==e&&cs.isCollapsed!==e&&aa.isCollapsed!==e&&l<=t);n.push(...s)}i.toggleCollapseState(n)}function XK(i,e,t){let r=[];for(let n of t){let o=i.getAllRegionsAtLine(n,s=>s.isCollapsed!==e);o.length>0&&r.push(o[0])}i.toggleCollapseState(r)}function QK(i,e,t,r){let n=(s,a)=>a===e&&s.isCollapsed!==t&&!r.some(l=>s.containsLine(l)),o=i.getRegionsInside(null,n);i.toggleCollapseState(o)}function JI(i,e,t){let r=[];for(let s of t){let a=i.getAllRegionsAtLine(s,void 0);a.length>0&&r.push(a[0])}let n=s=>r.every(a=>!a.containedBy(s)&&!s.containedBy(a))&&s.isCollapsed!==e,o=i.getRegionsInside(null,n);i.toggleCollapseState(o)}function C2(i,e,t){let r=i.textModel,n=i.regions,o=[];for(let s=n.length-1;s>=0;s--)if(t!==n.isCollapsed(s)){let a=n.getStartLineNumber(s);e.test(r.getLineContent(a))&&o.push(n.toRegion(s))}i.toggleCollapseState(o)}function S2(i,e,t){let r=i.regions,n=[];for(let o=r.length-1;o>=0;o--)t!==r.isCollapsed(o)&&e===r.getType(o)&&n.push(r.toRegion(o));i.toggleCollapseState(n)}function ZK(i,e){let t=null,r=e.getRegionAtLine(i);if(r!==null&&(t=r.startLineNumber,i===t)){let n=r.parentIndex;n!==-1?t=e.regions.getStartLineNumber(n):t=null}return t}function JK(i,e){let t=e.getRegionAtLine(i);if(t!==null&&t.startLineNumber===i){if(i!==t.startLineNumber)return t.startLineNumber;{let r=t.parentIndex,n=0;for(r!==-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===r)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 e$(i,e){let t=e.getRegionAtLine(i);if(t!==null&&t.startLineNumber===i){let r=t.parentIndex,n=0;if(r!==-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===r)return t.startLineNumber}else return null}else if(e.regions.length>0)for(t=e.regions.toRegion(0);t!==null;){if(t.startLineNumber>i)return t.startLineNumber;t.regionIndex{ei();ab();CF();w2=class{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new Je,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new cn(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort((r,n)=>r.regionIndex-n.regionIndex);let t={};this._decorationProvider.changeDecorations(r=>{let n=0,o=-1,s=-1,a=l=>{for(;ns&&(s=c),n++}};for(let l of e){let c=l.regionIndex,d=this._editorDecorationIds[c];if(d&&!t[d]){t[d]=!0,a(c);let u=!this._regions.isCollapsed(c);this._regions.setCollapsed(c,u),o=Math.max(o,this._regions.getEndLineNumber(c))}}a(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){let t=new Array,r=n=>{for(let o of e)if(!(o.startLineNumber>n.endLineNumber||n.startLineNumber>o.endLineNumber))return!0;return!1};for(let n=0;nr&&(r=a)}this._decorationProvider.changeDecorations(n=>this._editorDecorationIds=n.deltaDecorations(this._editorDecorationIds,t)),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e=[]){let t=(n,o)=>{for(let s of e)if(n=s.endLineNumber||s.startLineNumber<1||s.endLineNumber>r)continue;let a=this._getLinesChecksum(s.startLineNumber+1,s.endLineNumber);t.push({startLineNumber:s.startLineNumber,endLineNumber:s.endLineNumber,isCollapsed:s.isCollapsed,source:s.source,checksum:a})}return t.length>0?t:void 0}applyMemento(e){var t,r;if(!Array.isArray(e))return;let n=[],o=this._textModel.getLineCount();for(let a of e){if(a.startLineNumber>=a.endLineNumber||a.startLineNumber<1||a.endLineNumber>o)continue;let 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:(r=a.source)!==null&&r!==void 0?r:0})}let s=cn.sanitizeAndMerge(this._regions,n,o);this.updatePost(cn.fromFoldRanges(s))}_getLinesChecksum(e,t){return H_(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){let r=[];if(this._regions){let n=this._regions.findRange(e),o=1;for(;n>=0;){let s=this._regions.toRegion(n);(!t||t(s,o))&&r.push(s),o++,n=s.parentIndex}}return r}getRegionAtLine(e){if(this._regions){let t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){let r=[],n=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&t.length===2){let s=[];for(let a=n,l=this._regions.length;a0&&!c.containedBy(s[s.length-1]);)s.pop();s.push(c),t(c,s.length)&&r.push(c)}else break}}else for(let s=n,a=this._regions.length;s=e.startLineNumber&&i<=e.endLineNumber}function t$(i,e){let t=e_(i,r=>e=0&&i[t].endLineNumber>=e?i[t]:null}var k2,i$=M(()=>{mi();ei();et();yre();k2=class{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new Je,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange(t=>this.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||nO(t.text)[0]!==0))}updateHiddenRanges(){let e=!1,t=[],r=0,n=0,o=Number.MAX_VALUE,s=-1,a=this._foldingModel.regions;for(;r0}isHidden(e){return t$(this._hiddenRanges,e)!==null}adjustSelections(e){let t=!1,r=this._foldingModel.textModel,n=null,o=s=>((!n||!r0e(s,n))&&(n=t$(this._hiddenRanges,s)),n?n.startLineNumber-1:null);for(let s=0,a=e.length;s0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}});function a0e(i,e,t,r=s0e){let n=i.getOptions().tabSize,o=new tA(r),s;t&&(s=new RegExp(`(${t.start.source})|(?:${t.end.source})`));let a=[],l=i.getLineCount()+1;a.push({indent:-1,endAbove:l,line:l});for(let c=i.getLineCount();c>0;c--){let d=i.getLineContent(c),u=Ym(d,n),h=a[a.length-1];if(u===-1){e&&(h.endAbove=c);continue}let f;if(s&&(f=d.match(s)))if(f[1]){let m=a.length-1;for(;m>0&&a[m].indent!==-2;)m--;if(m>0){a.length=m+1,h=a[m],o.insertFirst(c,h.line,u),h.line=c,h.indent=u,h.endAbove=c;continue}}else{a.push({indent:-2,endAbove:c,line:c});continue}if(h.indent>u){do a.pop(),h=a[a.length-1];while(h.indent>u);let m=h.endAbove-1;m-c>=1&&o.insertFirst(c,m,u)}h.indent===u?h.endAbove=c:a.push({indent:u,endAbove:c,line:c})}return o.toIndentRanges(i)}var n0e,o0e,nh,tA,s0e,iA=M(()=>{BO();ab();n0e=5e3,o0e="indent",nh=class{constructor(e,t,r){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=r,this.id=o0e}dispose(){}compute(e){let t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,r=t&&!!t.offSide,n=t&&t.markers;return Promise.resolve(a0e(this.editorModel,r,n,this.foldingRangesLimit))}},tA=class{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,r){if(e>Ho||t>Ho)return;let n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._length++,r<1e3&&(this._indentOccurrences[r]=(this._indentOccurrences[r]||0)+1)}toIndentRanges(e){let t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);let r=new Uint32Array(this._length),n=new Uint32Array(this._length);for(let o=this._length-1,s=0;o>=0;o--,s++)r[s]=this._startIndexes[o],n[s]=this._endIndexes[o];return new cn(r,n)}else{this._foldingRangesLimit.update(this._length,t);let r=0,n=this._indentOccurrences.length;for(let l=0;lt){n=l;break}r+=c}}let o=e.getOptions().tabSize,s=new Uint32Array(t),a=new Uint32Array(t);for(let l=this._length-1,c=0;l>=0;l--){let d=this._startIndexes[l],u=e.getLineContent(d),h=Ym(u,o);(h{}}});var l0e,lb,cb,r$,n$,rA,Bn,nA=M(()=>{Zr();qc();Ur();He();tn();Sl();rn();An();l0e=je("editor.foldBackground",{light:Nn(tk,.3),dark:Nn(tk,.3),hcDark:null,hcLight:null},b("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);je("editorGutter.foldingControlForeground",{dark:Um,light:Um,hcDark:Um,hcLight:Um},b("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));lb=Pi("folding-expanded",pt.chevronDown,b("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),cb=Pi("folding-collapsed",pt.chevronRight,b("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),r$=Pi("folding-manual-collapsed",cb,b("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),n$=Pi("folding-manual-expanded",lb,b("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),rA={color:Ei(l0e),position:la.Inline},Bn=class i{constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,r){return t?i.HIDDEN_RANGE_DECORATION:this.showFoldingControls==="never"?e?this.showFoldingHighlights?i.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:i.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:i.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?r?this.showFoldingHighlights?i.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:i.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?i.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:i.COLLAPSED_VISUAL_DECORATION:this.showFoldingControls==="mouseover"?r?i.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:r?i.MANUALLY_EXPANDED_VISUAL_DECORATION:i.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}};Bn.COLLAPSED_VISUAL_DECORATION=mt.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(cb)});Bn.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=mt.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:rA,isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(cb)});Bn.MANUALLY_COLLAPSED_VISUAL_DECORATION=mt.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(r$)});Bn.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=mt.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:rA,isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(r$)});Bn.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=mt.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0});Bn.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=mt.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:rA,isWholeLine:!0});Bn.EXPANDED_VISUAL_DECORATION=mt.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+_t.asClassName(lb)});Bn.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=mt.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(lb)});Bn.MANUALLY_EXPANDED_VISUAL_DECORATION=mt.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+_t.asClassName(n$)});Bn.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=mt.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(n$)});Bn.NO_CONTROLS_EXPANDED_RANGE_DECORATION=mt.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0});Bn.HIDDEN_RANGE_DECORATION=mt.register({description:"folding-hidden-range-decoration",stickiness:1})});function u0e(i,e,t){let r=null,n=i.map((o,s)=>Promise.resolve(o.provideFoldingRanges(e,c0e,t)).then(a=>{if(!t.isCancellationRequested&&Array.isArray(a)){Array.isArray(r)||(r=[]);let l=e.getLineCount();for(let c of a)c.start>0&&c.end>c.start&&c.end<=l&&r.push({start:c.start,end:c.end,rank:s,kind:c.kind})}},Xt));return Promise.all(n).then(o=>r)}function h0e(i,e){let t=i.sort((s,a)=>{let l=s.start-a.start;return l===0&&(l=s.rank-a.rank),l}),r=new oA(e),n,o=[];for(let s of t)if(!n)n=s,r.add(s.start,s.end,s.kind&&s.kind.value,o.length);else if(s.start>n.start)if(s.end<=n.end)o.push(n),n=s,r.add(s.start,s.end,s.kind&&s.kind.value,o.length);else{if(s.start>n.end){do n=o.pop();while(n&&s.start>n.end);n&&o.push(n),n=s}r.add(s.start,s.end,s.kind&&s.kind.value,o.length)}return r.toIndentRanges()}var c0e,d0e,oh,oA,sA=M(()=>{qt();ke();ab();c0e={},d0e="syntax",oh=class{constructor(e,t,r,n,o){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=r,this.foldingRangesLimit=n,this.fallbackRangeProvider=o,this.id=d0e,this.disposables=new ae,o&&this.disposables.add(o);for(let s of t)typeof s.onDidChange=="function"&&this.disposables.add(s.onDidChange(r))}compute(e){return u0e(this.providers,this.editorModel,e).then(t=>{var r,n;return t?h0e(t,this.foldingRangesLimit):(n=(r=this.fallbackRangeProvider)===null||r===void 0?void 0:r.compute(e))!==null&&n!==void 0?n:null})}dispose(){this.disposables.dispose()}};oA=class{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,r,n){if(e>Ho||t>Ho)return;let o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=n,this._types[o]=r,this._length++,n<30&&(this._nestingLevelCounts[n]=(this._nestingLevelCounts[n]||0)+1)}toIndentRanges(){let e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);let t=new Uint32Array(this._length),r=new Uint32Array(this._length);for(let n=0;ne){r=a;break}t+=l}}let n=new Uint32Array(e),o=new Uint32Array(e),s=[];for(let a=0,l=0;a{jt();ki();qt();ll();ke();Ni();zr();$K();z_();lt();ti();fn();Hr();eA();i$();iA();He();wt();nA();ab();sA();Mo();Ds();al();Pt();ei();Vi();Ir();Xo();Sr();p0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},db=function(i,e){return function(t,r){e(t,r,i)}},m0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Kr=new ht("foldingEnabled",!1),fs=gp=class extends ce{static get(e){return e.getContribution(gp.ID)}static getFoldingRangeProviders(e,t){var r,n;let o=e.foldingRangeProvider.ordered(t);return(n=(r=gp._foldingRangeSelector)===null||r===void 0?void 0:r.call(gp,o,t))!==null&&n!==void 0?n:o}constructor(e,t,r,n,o,s){super(),this.contextKeyService=t,this.languageConfigurationService=r,this.languageFeaturesService=s,this.localToDispose=this._register(new ae),this.editor=e,this._foldingLimitReporter=new ub(e);let a=this.editor.getOptions();this._isEnabled=a.get(42),this._useFoldingProviders=a.get(43)!=="indentation",this._unfoldOnClickAfterEndOfLine=a.get(47),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=a.get(45),this.updateDebounceInfo=o.for(s.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 Bn(e),this.foldingDecorationProvider.showFoldingControls=a.get(108),this.foldingDecorationProvider.showFoldingHighlights=a.get(44),this.foldingEnabled=Kr.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(l=>{if(l.hasChanged(42)&&(this._isEnabled=this.editor.getOptions().get(42),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),l.hasChanged(46)&&this.onModelChanged(),l.hasChanged(108)||l.hasChanged(44)){let c=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=c.get(108),this.foldingDecorationProvider.showFoldingHighlights=c.get(44),this.triggerFoldingModelChanged()}l.hasChanged(43)&&(this._useFoldingProviders=this.editor.getOptions().get(43)!=="indentation",this.onFoldingStrategyChanged()),l.hasChanged(47)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(47)),l.hasChanged(45)&&(this._foldingImportsByDefault=this.editor.getOptions().get(45))})),this.onModelChanged()}saveViewState(){let e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){let t=this.foldingModel.getMemento(),r=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:r,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){let 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();let e=this.editor.getModel();!this._isEnabled||!e||e.isTooLargeForTokenization()||(this._currentModelHasFoldedImports=!1,this.foldingModel=new w2(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new k2(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(t=>this.onHiddenRangesChanges(t))),this.updateScheduler=new Do(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new ui(()=>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,r;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,(r=this.rangeProvider)===null||r===void 0||r.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;let t=new nh(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){let r=gp.getFoldingRangeProviders(this.languageFeaturesService,e);r.length>0&&(this.rangeProvider=new oh(e,r,()=>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(()=>{let e=this.foldingModel;if(!e)return null;let t=new mr,r=this.getRangeProvider(e.textModel),n=this.foldingRegionPromise=Jt(o=>r.compute(o));return n.then(o=>{if(o&&n===this.foldingRegionPromise){let s;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){let d=o.setCollapsedAllOfType(vf.Imports.value,!0);d&&(s=va.capture(this.editor),this._currentModelHasFoldedImports=d)}let a=this.editor.getSelections(),l=a?a.map(d=>d.startLineNumber):[];e.update(o,l),s==null||s.restore(this.editor);let c=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=c)}return e})}).then(void 0,e=>(ft(e),null)))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){let 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(){let e=this.getFoldingModel();e&&e.then(t=>{if(t){let r=this.editor.getSelections();if(r&&r.length>0){let n=[];for(let o of r){let s=o.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(s)&&n.push(...t.getAllRegionsAtLine(s,a=>a.isCollapsed&&s>a.startLineNumber))}n.length&&(t.toggleCollapseState(n),this.reveal(r[0].getPosition()))}}}).then(void 0,ft)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range||!e.event.leftButton&&!e.event.middleButton)return;let t=e.target.range,r=!1;switch(e.target.type){case 4:{let n=e.target.detail,o=e.target.element.offsetLeft;if(n.offsetX-o<4)return;r=!0;break}case 7:{if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!e.target.detail.isAfterLines)break;return}case 6:{if(this.hiddenRangeModel.hasRanges()){let n=this.editor.getModel();if(n&&t.startColumn===n.getLineMaxColumn(t.startLineNumber))break}return}default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:r}}onEditorMouseUp(e){let t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;let r=this.mouseDownInfo.lineNumber,n=this.mouseDownInfo.iconClicked,o=e.target.range;if(!o||o.startLineNumber!==r)return;if(n){if(e.target.type!==4)return}else{let a=this.editor.getModel();if(!a||o.startColumn!==a.getLineMaxColumn(r))return}let s=t.getRegionAtLine(r);if(s&&s.startLineNumber===r){let a=s.isCollapsed;if(n||a){let l=e.event.altKey,c=[];if(l){let d=h=>!h.containedBy(s)&&!s.containedBy(h),u=t.getRegionsInside(null,d);for(let h of u)h.isCollapsed&&c.push(h);c.length===0&&(c=u)}else{let d=e.event.middleButton||e.event.shiftKey;if(d)for(let u of t.getRegionsInside(s))u.isCollapsed===a&&c.push(u);(a||!d||c.length===0)&&c.push(s)}t.toggleCollapseState(c),this.reveal({lineNumber:r,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};fs.ID="editor.contrib.folding";fs=gp=p0e([db(1,it),db(2,Ot),db(3,Ri),db(4,lr),db(5,Se)],fs);ub=class{constructor(e){this.editor=e,this._onDidChange=new Je,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(46)}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}},Nr=class extends de{runEditorCommand(e,t,r){let n=e.get(Ot),o=fs.get(t);if(!o)return;let s=o.getFoldingModel();if(s)return this.reportTelemetry(e,t),s.then(a=>{if(a){this.invoke(o,a,t,r,n);let l=t.getSelection();l&&o.reveal(l.getStartPosition())}})}getSelectedLines(e){let t=e.getSelections();return t?t.map(r=>r.startLineNumber):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map(r=>r+1):this.getSelectedLines(t)}run(e,t){}};aA=class extends Nr{constructor(){super({id:"editor.unfold",label:b("unfoldAction.label","Unfold"),alias:"Unfold",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:`Property-value pairs that can be passed through this argument: +2: False`)},findInSelection:{type:"boolean"}}}}]},VI=class extends de{constructor(){super({id:ni.StartFindWithArgs,label:b("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},description:e0e})}run(e,t,r){return ih(this,void 0,void 0,function*(){let n=ln.get(t);if(n){let o=r?{searchString:r.searchString,replaceString:r.replaceString,isReplaceRevealed:r.replaceString!==void 0,isRegex:r.isRegex,wholeWord:r.matchWholeWord,matchCase:r.isCaseSensitive,preserveCase:r.preserveCase}:{};yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:n.getState().searchString.length===0&&t.getOption(40).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:t.getOption(40).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(r==null?void 0:r.findInSelection)||!1,loop:t.getOption(40).loop},o),n.setGlobalBufferTerm(n.getState().searchString)}})}},qI=class extends de{constructor(){super({id:ni.StartFindWithSelection,label:b("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(e,t){return ih(this,void 0,void 0,function*(){let r=ln.get(t);r&&(yield r.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(40).loop}),r.setGlobalBufferTerm(r.getState().searchString))})}},v2=class extends de{run(e,t){return ih(this,void 0,void 0,function*(){let r=ln.get(t);r&&!this._run(r)&&(yield r.start({forceRevealReplace:!1,seedSearchStringFromSelection:r.getState().searchString.length===0&&t.getOption(40).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:t.getOption(40).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(40).loop}),this._run(r))})}},KI=class extends v2{constructor(){super({id:ni.NextMatchFindAction,label:b("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:F.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:fe.and(F.focus,mp),primary:3,weight:100}]})}_run(e){return e.moveToNextMatch()?(e.editor.pushUndoStop(),!0):!1}},$I=class extends v2{constructor(){super({id:ni.PreviousMatchFindAction,label:b("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:F.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:fe.and(F.focus,mp),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}},GI=class extends de{constructor(){super({id:ni.GoToMatchFindAction,label:b("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:Va}),this._highlightDecorations=[]}run(e,t,r){let n=ln.get(t);if(!n)return;let o=n.getState().matchesCount;if(o<1){e.get(Ri).notify({severity:wf.Warning,message:b("findMatchAction.noResults","No matches. Try searching for something else.")});return}let a=e.get(nn).createInputBox();a.placeholder=b("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",o);let l=d=>{let u=parseInt(d);if(isNaN(u))return;let h=n.getState().matchesCount;if(u>0&&u<=h)return u-1;if(u<0&&u>=-h)return h+u},c=d=>{let u=l(d);if(typeof u=="number"){a.validationMessage=void 0,n.goToMatch(u);let h=n.getState().currentMatch;h&&this.addDecorations(t,h)}else a.validationMessage=b("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount),this.clearDecorations(t)};a.onDidChangeValue(d=>{c(d)}),a.onDidAccept(()=>{let d=l(a.value);typeof d=="number"?(n.goToMatch(d),a.hide()):a.validationMessage=b("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(r=>{this._highlightDecorations=r.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:Ei(y_),position:Gn.Full}}}])})}},_2=class extends de{run(e,t){return ih(this,void 0,void 0,function*(){let r=ln.get(t);if(!r)return;let n=jI(t,"single",!1);n&&r.setSearchString(n),this._run(r)||(yield r.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(40).loop}),this._run(r))})}},YI=class extends _2{constructor(){super({id:ni.NextSelectionMatchFindAction,label:b("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}},XI=class extends _2{constructor(){super({id:ni.PreviousSelectionMatchFindAction,label:b("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}},t0e=V3(new W3({id:ni.StartFindReplaceAction,label:b("startReplace","Replace"),alias:"Replace",precondition:fe.or(F.focus,fe.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:Me.MenubarEditMenu,group:"3_find",title:b({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}}));t0e.addImplementation(0,(i,e,t)=>{if(!e.hasModel()||e.getOption(89))return!1;let r=ln.get(e);if(!r)return!1;let n=e.getSelection(),o=r.isFindInputFocused(),s=!n.isEmpty()&&n.startLineNumber===n.endLineNumber&&e.getOption(40).seedSearchStringFromSelection!=="never"&&!o,a=o||s?2:1;return r.start({forceRevealReplace:!0,seedSearchStringFromSelection:s?"single":"none",seedSearchStringFromNonEmptySelection:e.getOption(40).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:e.getOption(40).seedSearchStringFromSelection!=="never",shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(40).loop})});Ue(ln.ID,WI,0);ee(VI);ee(qI);ee(KI);ee($I);ee(GI);ee(YI);ee(XI);Ws=Fi.bindToContribution(ln.get);We(new Ws({id:ni.CloseFindWidgetCommand,precondition:Va,handler:i=>i.closeFindWidget(),kbOpts:{weight:100+5,kbExpr:fe.and(F.focus,fe.not("isComposing")),primary:9,secondary:[1033]}}));We(new Ws({id:ni.ToggleCaseSensitiveCommand,precondition:void 0,handler:i=>i.toggleCaseSensitive(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:X0.primary,mac:X0.mac,win:X0.win,linux:X0.linux}}));We(new Ws({id:ni.ToggleWholeWordCommand,precondition:void 0,handler:i=>i.toggleWholeWords(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:Q0.primary,mac:Q0.mac,win:Q0.win,linux:Q0.linux}}));We(new Ws({id:ni.ToggleRegexCommand,precondition:void 0,handler:i=>i.toggleRegex(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:Z0.primary,mac:Z0.mac,win:Z0.win,linux:Z0.linux}}));We(new Ws({id:ni.ToggleSearchScopeCommand,precondition:void 0,handler:i=>i.toggleSearchScope(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:J0.primary,mac:J0.mac,win:J0.win,linux:J0.linux}}));We(new Ws({id:ni.TogglePreserveCaseCommand,precondition:void 0,handler:i=>i.togglePreserveCase(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:eb.primary,mac:eb.mac,win:eb.win,linux:eb.linux}}));We(new Ws({id:ni.ReplaceOneAction,precondition:Va,handler:i=>i.replace(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:3094}}));We(new Ws({id:ni.ReplaceOneAction,precondition:Va,handler:i=>i.replace(),kbOpts:{weight:100+5,kbExpr:fe.and(F.focus,Y0),primary:3}}));We(new Ws({id:ni.ReplaceAllAction,precondition:Va,handler:i=>i.replaceAll(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:2563}}));We(new Ws({id:ni.ReplaceAllAction,precondition:Va,handler:i=>i.replaceAll(),kbOpts:{weight:100+5,kbExpr:fe.and(F.focus,Y0),primary:void 0,mac:{primary:2051}}}));We(new Ws({id:ni.SelectAllMatchesAction,precondition:Va,handler:i=>i.selectAllMatches(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:515}}))});var KK=N(()=>{});var $K=N(()=>{KK()});var i0e,GK,Ho,YK,sb,cn,QI,ab=N(()=>{i0e={0:" ",1:"u",2:"r"},GK=65535,Ho=16777215,YK=4278190080,sb=class{constructor(e){let t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){let t=e/32|0,r=e%32;return(this._states[t]&1<GK)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new sb(e.length),this._userDefinedStates=new sb(e.length),this._recoveredStates=new sb(e.length),this._types=r,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;let e=[],t=(r,n)=>{let o=e[e.length-1];return this.getStartLineNumber(o)<=r&&this.getEndLineNumber(o)>=n};for(let r=0,n=this._startIndexes.length;rHo||s>Ho)throw new Error("startLineNumber or endLineNumber must not exceed "+Ho);for(;e.length>0&&!t(o,s);)e.pop();let a=e.length>0?e[e.length-1]:-1;e.push(r),this._startIndexes[r]=o+((a&255)<<24),this._endIndexes[r]=s+((a&65280)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&Ho}getEndLineNumber(e){return this._endIndexes[e]&Ho}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 r=!1;if(this._types)for(let n=0;n>>24)+((this._endIndexes[e]&YK)>>>16);return t===GK?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,r=this._startIndexes.length;if(r===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(){let e=[];for(let t=0;tArray.isArray(g)?_=>__=d.startLineNumber))c&&c.startLineNumber===d.startLineNumber?(d.source===1?g=d:(g=c,g.isCollapsed=d.isCollapsed&&c.endLineNumber===d.endLineNumber,g.source=0),c=o(++a)):(g=d,d.isCollapsed&&d.source===0&&(g.source=2)),d=s(++l);else{let w=l,_=d;for(;;){if(!_||_.startLineNumber>c.endLineNumber){g=c;break}if(_.source===1&&_.endLineNumber>c.endLineNumber)break;_=s(++w)}c=o(++a)}if(g){for(;h&&h.endLineNumberg.startLineNumber&&g.startLineNumber>f&&g.endLineNumber<=r&&(!h||h.endLineNumber>=g.endLineNumber)&&(m.push(g),f=g.startLineNumber,h&&u.push(h),h=g)}}return m}},QI=class{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}}});function x2(i,e,t){let r=[];for(let n of t){let o=i.getRegionAtLine(n);if(o){let s=!o.isCollapsed;if(r.push(o),e>1){let a=i.getRegionsInside(o,(l,c)=>l.isCollapsed!==s&&c0)for(let o of r){let s=i.getRegionAtLine(o);if(s&&(s.isCollapsed!==e&&n.push(s),t>1)){let a=i.getRegionsInside(s,(l,c)=>l.isCollapsed!==e&&cs.isCollapsed!==e&&aa.isCollapsed!==e&&l<=t);n.push(...s)}i.toggleCollapseState(n)}function XK(i,e,t){let r=[];for(let n of t){let o=i.getAllRegionsAtLine(n,s=>s.isCollapsed!==e);o.length>0&&r.push(o[0])}i.toggleCollapseState(r)}function QK(i,e,t,r){let n=(s,a)=>a===e&&s.isCollapsed!==t&&!r.some(l=>s.containsLine(l)),o=i.getRegionsInside(null,n);i.toggleCollapseState(o)}function JI(i,e,t){let r=[];for(let s of t){let a=i.getAllRegionsAtLine(s,void 0);a.length>0&&r.push(a[0])}let n=s=>r.every(a=>!a.containedBy(s)&&!s.containedBy(a))&&s.isCollapsed!==e,o=i.getRegionsInside(null,n);i.toggleCollapseState(o)}function C2(i,e,t){let r=i.textModel,n=i.regions,o=[];for(let s=n.length-1;s>=0;s--)if(t!==n.isCollapsed(s)){let a=n.getStartLineNumber(s);e.test(r.getLineContent(a))&&o.push(n.toRegion(s))}i.toggleCollapseState(o)}function S2(i,e,t){let r=i.regions,n=[];for(let o=r.length-1;o>=0;o--)t!==r.isCollapsed(o)&&e===r.getType(o)&&n.push(r.toRegion(o));i.toggleCollapseState(n)}function ZK(i,e){let t=null,r=e.getRegionAtLine(i);if(r!==null&&(t=r.startLineNumber,i===t)){let n=r.parentIndex;n!==-1?t=e.regions.getStartLineNumber(n):t=null}return t}function JK(i,e){let t=e.getRegionAtLine(i);if(t!==null&&t.startLineNumber===i){if(i!==t.startLineNumber)return t.startLineNumber;{let r=t.parentIndex,n=0;for(r!==-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===r)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 e$(i,e){let t=e.getRegionAtLine(i);if(t!==null&&t.startLineNumber===i){let r=t.parentIndex,n=0;if(r!==-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===r)return t.startLineNumber}else return null}else if(e.regions.length>0)for(t=e.regions.toRegion(0);t!==null;){if(t.startLineNumber>i)return t.startLineNumber;t.regionIndex{ei();ab();CF();w2=class{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new Je,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new cn(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort((r,n)=>r.regionIndex-n.regionIndex);let t={};this._decorationProvider.changeDecorations(r=>{let n=0,o=-1,s=-1,a=l=>{for(;ns&&(s=c),n++}};for(let l of e){let c=l.regionIndex,d=this._editorDecorationIds[c];if(d&&!t[d]){t[d]=!0,a(c);let u=!this._regions.isCollapsed(c);this._regions.setCollapsed(c,u),o=Math.max(o,this._regions.getEndLineNumber(c))}}a(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){let t=new Array,r=n=>{for(let o of e)if(!(o.startLineNumber>n.endLineNumber||n.startLineNumber>o.endLineNumber))return!0;return!1};for(let n=0;nr&&(r=a)}this._decorationProvider.changeDecorations(n=>this._editorDecorationIds=n.deltaDecorations(this._editorDecorationIds,t)),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e=[]){let t=(n,o)=>{for(let s of e)if(n=s.endLineNumber||s.startLineNumber<1||s.endLineNumber>r)continue;let a=this._getLinesChecksum(s.startLineNumber+1,s.endLineNumber);t.push({startLineNumber:s.startLineNumber,endLineNumber:s.endLineNumber,isCollapsed:s.isCollapsed,source:s.source,checksum:a})}return t.length>0?t:void 0}applyMemento(e){var t,r;if(!Array.isArray(e))return;let n=[],o=this._textModel.getLineCount();for(let a of e){if(a.startLineNumber>=a.endLineNumber||a.startLineNumber<1||a.endLineNumber>o)continue;let 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:(r=a.source)!==null&&r!==void 0?r:0})}let s=cn.sanitizeAndMerge(this._regions,n,o);this.updatePost(cn.fromFoldRanges(s))}_getLinesChecksum(e,t){return H_(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){let r=[];if(this._regions){let n=this._regions.findRange(e),o=1;for(;n>=0;){let s=this._regions.toRegion(n);(!t||t(s,o))&&r.push(s),o++,n=s.parentIndex}}return r}getRegionAtLine(e){if(this._regions){let t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){let r=[],n=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&t.length===2){let s=[];for(let a=n,l=this._regions.length;a0&&!c.containedBy(s[s.length-1]);)s.pop();s.push(c),t(c,s.length)&&r.push(c)}else break}}else for(let s=n,a=this._regions.length;s=e.startLineNumber&&i<=e.endLineNumber}function t$(i,e){let t=e_(i,r=>e=0&&i[t].endLineNumber>=e?i[t]:null}var k2,i$=N(()=>{mi();ei();et();yre();k2=class{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new Je,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange(t=>this.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||nO(t.text)[0]!==0))}updateHiddenRanges(){let e=!1,t=[],r=0,n=0,o=Number.MAX_VALUE,s=-1,a=this._foldingModel.regions;for(;r0}isHidden(e){return t$(this._hiddenRanges,e)!==null}adjustSelections(e){let t=!1,r=this._foldingModel.textModel,n=null,o=s=>((!n||!r0e(s,n))&&(n=t$(this._hiddenRanges,s)),n?n.startLineNumber-1:null);for(let s=0,a=e.length;s0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}});function a0e(i,e,t,r=s0e){let n=i.getOptions().tabSize,o=new tA(r),s;t&&(s=new RegExp(`(${t.start.source})|(?:${t.end.source})`));let a=[],l=i.getLineCount()+1;a.push({indent:-1,endAbove:l,line:l});for(let c=i.getLineCount();c>0;c--){let d=i.getLineContent(c),u=Ym(d,n),h=a[a.length-1];if(u===-1){e&&(h.endAbove=c);continue}let f;if(s&&(f=d.match(s)))if(f[1]){let m=a.length-1;for(;m>0&&a[m].indent!==-2;)m--;if(m>0){a.length=m+1,h=a[m],o.insertFirst(c,h.line,u),h.line=c,h.indent=u,h.endAbove=c;continue}}else{a.push({indent:-2,endAbove:c,line:c});continue}if(h.indent>u){do a.pop(),h=a[a.length-1];while(h.indent>u);let m=h.endAbove-1;m-c>=1&&o.insertFirst(c,m,u)}h.indent===u?h.endAbove=c:a.push({indent:u,endAbove:c,line:c})}return o.toIndentRanges(i)}var n0e,o0e,nh,tA,s0e,iA=N(()=>{BO();ab();n0e=5e3,o0e="indent",nh=class{constructor(e,t,r){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=r,this.id=o0e}dispose(){}compute(e){let t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,r=t&&!!t.offSide,n=t&&t.markers;return Promise.resolve(a0e(this.editorModel,r,n,this.foldingRangesLimit))}},tA=class{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,r){if(e>Ho||t>Ho)return;let n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._length++,r<1e3&&(this._indentOccurrences[r]=(this._indentOccurrences[r]||0)+1)}toIndentRanges(e){let t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);let r=new Uint32Array(this._length),n=new Uint32Array(this._length);for(let o=this._length-1,s=0;o>=0;o--,s++)r[s]=this._startIndexes[o],n[s]=this._endIndexes[o];return new cn(r,n)}else{this._foldingRangesLimit.update(this._length,t);let r=0,n=this._indentOccurrences.length;for(let l=0;lt){n=l;break}r+=c}}let o=e.getOptions().tabSize,s=new Uint32Array(t),a=new Uint32Array(t);for(let l=this._length-1,c=0;l>=0;l--){let d=this._startIndexes[l],u=e.getLineContent(d),h=Ym(u,o);(h{}}});var l0e,lb,cb,r$,n$,rA,Bn,nA=N(()=>{Zr();qc();Ur();He();tn();Sl();rn();An();l0e=je("editor.foldBackground",{light:Nn(tk,.3),dark:Nn(tk,.3),hcDark:null,hcLight:null},b("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);je("editorGutter.foldingControlForeground",{dark:Um,light:Um,hcDark:Um,hcLight:Um},b("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));lb=Pi("folding-expanded",pt.chevronDown,b("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),cb=Pi("folding-collapsed",pt.chevronRight,b("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),r$=Pi("folding-manual-collapsed",cb,b("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),n$=Pi("folding-manual-expanded",lb,b("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),rA={color:Ei(l0e),position:la.Inline},Bn=class i{constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,r){return t?i.HIDDEN_RANGE_DECORATION:this.showFoldingControls==="never"?e?this.showFoldingHighlights?i.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:i.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:i.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?r?this.showFoldingHighlights?i.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:i.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?i.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:i.COLLAPSED_VISUAL_DECORATION:this.showFoldingControls==="mouseover"?r?i.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:r?i.MANUALLY_EXPANDED_VISUAL_DECORATION:i.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}};Bn.COLLAPSED_VISUAL_DECORATION=mt.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(cb)});Bn.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=mt.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:rA,isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(cb)});Bn.MANUALLY_COLLAPSED_VISUAL_DECORATION=mt.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(r$)});Bn.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=mt.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:rA,isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(r$)});Bn.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=mt.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0});Bn.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=mt.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:rA,isWholeLine:!0});Bn.EXPANDED_VISUAL_DECORATION=mt.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+_t.asClassName(lb)});Bn.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=mt.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(lb)});Bn.MANUALLY_EXPANDED_VISUAL_DECORATION=mt.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+_t.asClassName(n$)});Bn.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=mt.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(n$)});Bn.NO_CONTROLS_EXPANDED_RANGE_DECORATION=mt.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0});Bn.HIDDEN_RANGE_DECORATION=mt.register({description:"folding-hidden-range-decoration",stickiness:1})});function u0e(i,e,t){let r=null,n=i.map((o,s)=>Promise.resolve(o.provideFoldingRanges(e,c0e,t)).then(a=>{if(!t.isCancellationRequested&&Array.isArray(a)){Array.isArray(r)||(r=[]);let l=e.getLineCount();for(let c of a)c.start>0&&c.end>c.start&&c.end<=l&&r.push({start:c.start,end:c.end,rank:s,kind:c.kind})}},Xt));return Promise.all(n).then(o=>r)}function h0e(i,e){let t=i.sort((s,a)=>{let l=s.start-a.start;return l===0&&(l=s.rank-a.rank),l}),r=new oA(e),n,o=[];for(let s of t)if(!n)n=s,r.add(s.start,s.end,s.kind&&s.kind.value,o.length);else if(s.start>n.start)if(s.end<=n.end)o.push(n),n=s,r.add(s.start,s.end,s.kind&&s.kind.value,o.length);else{if(s.start>n.end){do n=o.pop();while(n&&s.start>n.end);n&&o.push(n),n=s}r.add(s.start,s.end,s.kind&&s.kind.value,o.length)}return r.toIndentRanges()}var c0e,d0e,oh,oA,sA=N(()=>{qt();ke();ab();c0e={},d0e="syntax",oh=class{constructor(e,t,r,n,o){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=r,this.foldingRangesLimit=n,this.fallbackRangeProvider=o,this.id=d0e,this.disposables=new le,o&&this.disposables.add(o);for(let s of t)typeof s.onDidChange=="function"&&this.disposables.add(s.onDidChange(r))}compute(e){return u0e(this.providers,this.editorModel,e).then(t=>{var r,n;return t?h0e(t,this.foldingRangesLimit):(n=(r=this.fallbackRangeProvider)===null||r===void 0?void 0:r.compute(e))!==null&&n!==void 0?n:null})}dispose(){this.disposables.dispose()}};oA=class{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,r,n){if(e>Ho||t>Ho)return;let o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=n,this._types[o]=r,this._length++,n<30&&(this._nestingLevelCounts[n]=(this._nestingLevelCounts[n]||0)+1)}toIndentRanges(){let e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);let t=new Uint32Array(this._length),r=new Uint32Array(this._length);for(let n=0;ne){r=a;break}t+=l}}let n=new Uint32Array(e),o=new Uint32Array(e),s=[];for(let a=0,l=0;a{jt();ki();qt();ll();ke();Ni();zr();$K();z_();lt();ti();fn();Hr();eA();i$();iA();He();wt();nA();ab();sA();Mo();Ds();al();Pt();ei();Vi();Ir();Xo();Sr();p0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},db=function(i,e){return function(t,r){e(t,r,i)}},m0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Kr=new ht("foldingEnabled",!1),fs=gp=class extends ce{static get(e){return e.getContribution(gp.ID)}static getFoldingRangeProviders(e,t){var r,n;let o=e.foldingRangeProvider.ordered(t);return(n=(r=gp._foldingRangeSelector)===null||r===void 0?void 0:r.call(gp,o,t))!==null&&n!==void 0?n:o}constructor(e,t,r,n,o,s){super(),this.contextKeyService=t,this.languageConfigurationService=r,this.languageFeaturesService=s,this.localToDispose=this._register(new le),this.editor=e,this._foldingLimitReporter=new ub(e);let a=this.editor.getOptions();this._isEnabled=a.get(42),this._useFoldingProviders=a.get(43)!=="indentation",this._unfoldOnClickAfterEndOfLine=a.get(47),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=a.get(45),this.updateDebounceInfo=o.for(s.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 Bn(e),this.foldingDecorationProvider.showFoldingControls=a.get(108),this.foldingDecorationProvider.showFoldingHighlights=a.get(44),this.foldingEnabled=Kr.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(l=>{if(l.hasChanged(42)&&(this._isEnabled=this.editor.getOptions().get(42),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),l.hasChanged(46)&&this.onModelChanged(),l.hasChanged(108)||l.hasChanged(44)){let c=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=c.get(108),this.foldingDecorationProvider.showFoldingHighlights=c.get(44),this.triggerFoldingModelChanged()}l.hasChanged(43)&&(this._useFoldingProviders=this.editor.getOptions().get(43)!=="indentation",this.onFoldingStrategyChanged()),l.hasChanged(47)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(47)),l.hasChanged(45)&&(this._foldingImportsByDefault=this.editor.getOptions().get(45))})),this.onModelChanged()}saveViewState(){let e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){let t=this.foldingModel.getMemento(),r=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:r,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){let 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();let e=this.editor.getModel();!this._isEnabled||!e||e.isTooLargeForTokenization()||(this._currentModelHasFoldedImports=!1,this.foldingModel=new w2(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new k2(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(t=>this.onHiddenRangesChanges(t))),this.updateScheduler=new Do(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new ui(()=>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,r;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,(r=this.rangeProvider)===null||r===void 0||r.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;let t=new nh(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){let r=gp.getFoldingRangeProviders(this.languageFeaturesService,e);r.length>0&&(this.rangeProvider=new oh(e,r,()=>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(()=>{let e=this.foldingModel;if(!e)return null;let t=new mr,r=this.getRangeProvider(e.textModel),n=this.foldingRegionPromise=Jt(o=>r.compute(o));return n.then(o=>{if(o&&n===this.foldingRegionPromise){let s;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){let d=o.setCollapsedAllOfType(vf.Imports.value,!0);d&&(s=va.capture(this.editor),this._currentModelHasFoldedImports=d)}let a=this.editor.getSelections(),l=a?a.map(d=>d.startLineNumber):[];e.update(o,l),s==null||s.restore(this.editor);let c=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=c)}return e})}).then(void 0,e=>(ft(e),null)))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){let 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(){let e=this.getFoldingModel();e&&e.then(t=>{if(t){let r=this.editor.getSelections();if(r&&r.length>0){let n=[];for(let o of r){let s=o.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(s)&&n.push(...t.getAllRegionsAtLine(s,a=>a.isCollapsed&&s>a.startLineNumber))}n.length&&(t.toggleCollapseState(n),this.reveal(r[0].getPosition()))}}}).then(void 0,ft)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range||!e.event.leftButton&&!e.event.middleButton)return;let t=e.target.range,r=!1;switch(e.target.type){case 4:{let n=e.target.detail,o=e.target.element.offsetLeft;if(n.offsetX-o<4)return;r=!0;break}case 7:{if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!e.target.detail.isAfterLines)break;return}case 6:{if(this.hiddenRangeModel.hasRanges()){let n=this.editor.getModel();if(n&&t.startColumn===n.getLineMaxColumn(t.startLineNumber))break}return}default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:r}}onEditorMouseUp(e){let t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;let r=this.mouseDownInfo.lineNumber,n=this.mouseDownInfo.iconClicked,o=e.target.range;if(!o||o.startLineNumber!==r)return;if(n){if(e.target.type!==4)return}else{let a=this.editor.getModel();if(!a||o.startColumn!==a.getLineMaxColumn(r))return}let s=t.getRegionAtLine(r);if(s&&s.startLineNumber===r){let a=s.isCollapsed;if(n||a){let l=e.event.altKey,c=[];if(l){let d=h=>!h.containedBy(s)&&!s.containedBy(h),u=t.getRegionsInside(null,d);for(let h of u)h.isCollapsed&&c.push(h);c.length===0&&(c=u)}else{let d=e.event.middleButton||e.event.shiftKey;if(d)for(let u of t.getRegionsInside(s))u.isCollapsed===a&&c.push(u);(a||!d||c.length===0)&&c.push(s)}t.toggleCollapseState(c),this.reveal({lineNumber:r,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};fs.ID="editor.contrib.folding";fs=gp=p0e([db(1,it),db(2,Ot),db(3,Ri),db(4,lr),db(5,Se)],fs);ub=class{constructor(e){this.editor=e,this._onDidChange=new Je,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(46)}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}},Nr=class extends de{runEditorCommand(e,t,r){let n=e.get(Ot),o=fs.get(t);if(!o)return;let s=o.getFoldingModel();if(s)return this.reportTelemetry(e,t),s.then(a=>{if(a){this.invoke(o,a,t,r,n);let l=t.getSelection();l&&o.reveal(l.getStartPosition())}})}getSelectedLines(e){let t=e.getSelections();return t?t.map(r=>r.startLineNumber):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map(r=>r+1):this.getSelectedLines(t)}run(e,t){}};aA=class extends Nr{constructor(){super({id:"editor.unfold",label:b("unfoldAction.label","Unfold"),alias:"Unfold",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},description:{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:o$,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,r,n){let o=n&&n.levels||1,s=this.getLineNumbers(n,r);n&&n.direction==="up"?ZI(t,!1,o,s):rh(t,!1,o,s)}},lA=class extends Nr{constructor(){super({id:"editor.unfoldRecursively",label:b("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2142),weight:100}})}invoke(e,t,r,n){rh(t,!1,Number.MAX_VALUE,this.getSelectedLines(r))}},cA=class extends Nr{constructor(){super({id:"editor.fold",label:b("foldAction.label","Fold"),alias:"Fold",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:`Property-value pairs that can be passed through this argument: + `,constraint:o$,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,r,n){let o=n&&n.levels||1,s=this.getLineNumbers(n,r);n&&n.direction==="up"?ZI(t,!1,o,s):rh(t,!1,o,s)}},lA=class extends Nr{constructor(){super({id:"editor.unfoldRecursively",label:b("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2142),weight:100}})}invoke(e,t,r,n){rh(t,!1,Number.MAX_VALUE,this.getSelectedLines(r))}},cA=class extends Nr{constructor(){super({id:"editor.fold",label:b("foldAction.label","Fold"),alias:"Fold",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},description:{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:o$,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,r,n){let o=this.getLineNumbers(n,r),s=n&&n.levels,a=n&&n.direction;typeof s!="number"&&typeof a!="string"?XK(t,!0,o):a==="up"?ZI(t,!0,s||1,o):rh(t,!0,s||1,o)}},dA=class extends Nr{constructor(){super({id:"editor.toggleFold",label:b("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2090),weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);x2(t,1,n)}},uA=class extends Nr{constructor(){super({id:"editor.foldRecursively",label:b("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2140),weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);rh(t,!0,Number.MAX_VALUE,n)}},hA=class extends Nr{constructor(){super({id:"editor.foldAllBlockComments",label:b("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2138),weight:100}})}invoke(e,t,r,n,o){if(t.regions.hasTypes())S2(t,vf.Comment.value,!0);else{let s=r.getModel();if(!s)return;let a=o.getLanguageConfiguration(s.getLanguageId()).comments;if(a&&a.blockCommentStartToken){let l=new RegExp("^\\s*"+cl(a.blockCommentStartToken));C2(t,l,!0)}}}},fA=class extends Nr{constructor(){super({id:"editor.foldAllMarkerRegions",label:b("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2077),weight:100}})}invoke(e,t,r,n,o){if(t.regions.hasTypes())S2(t,vf.Region.value,!0);else{let s=r.getModel();if(!s)return;let a=o.getLanguageConfiguration(s.getLanguageId()).foldingRules;if(a&&a.markers&&a.markers.start){let l=new RegExp(a.markers.start);C2(t,l,!0)}}}},pA=class extends Nr{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:b("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2078),weight:100}})}invoke(e,t,r,n,o){if(t.regions.hasTypes())S2(t,vf.Region.value,!1);else{let s=r.getModel();if(!s)return;let a=o.getLanguageConfiguration(s.getLanguageId()).foldingRules;if(a&&a.markers&&a.markers.start){let l=new RegExp(a.markers.start);C2(t,l,!1)}}}},mA=class extends Nr{constructor(){super({id:"editor.foldAllExcept",label:b("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2136),weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);JI(t,!0,n)}},gA=class extends Nr{constructor(){super({id:"editor.unfoldAllExcept",label:b("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2134),weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);JI(t,!1,n)}},bA=class extends Nr{constructor(){super({id:"editor.foldAll",label:b("foldAllAction.label","Fold All"),alias:"Fold All",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2069),weight:100}})}invoke(e,t,r){rh(t,!0)}},vA=class extends Nr{constructor(){super({id:"editor.unfoldAll",label:b("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2088),weight:100}})}invoke(e,t,r){rh(t,!1)}},sh=class i extends Nr{getFoldingLevel(){return parseInt(this.id.substr(i.ID_PREFIX.length))}invoke(e,t,r){QK(t,this.getFoldingLevel(),!0,this.getSelectedLines(r))}};sh.ID_PREFIX="editor.foldLevel";sh.ID=i=>sh.ID_PREFIX+i;_A=class extends Nr{constructor(){super({id:"editor.gotoParentFold",label:b("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);if(n.length>0){let o=ZK(n[0],t);o!==null&&r.setSelection({startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1})}}},yA=class extends Nr{constructor(){super({id:"editor.gotoPreviousFold",label:b("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);if(n.length>0){let o=JK(n[0],t);o!==null&&r.setSelection({startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1})}}},wA=class extends Nr{constructor(){super({id:"editor.gotoNextFold",label:b("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);if(n.length>0){let o=e$(n[0],t);o!==null&&r.setSelection({startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1})}}},xA=class extends Nr{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:b("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2135),weight:100}})}invoke(e,t,r){var n;let o=[],s=r.getSelections();if(s){for(let a of s){let l=a.endLineNumber;a.endColumn===1&&--l,l>a.startLineNumber&&(o.push({startLineNumber:a.startLineNumber,endLineNumber:l,type:void 0,isCollapsed:!0,source:1}),r.setSelection({startLineNumber:a.startLineNumber,startColumn:1,endLineNumber:a.startLineNumber,endColumn:1}))}if(o.length>0){o.sort((l,c)=>l.startLineNumber-c.startLineNumber);let a=cn.sanitizeAndMerge(t.regions,o,(n=r.getModel())===null||n===void 0?void 0:n.getLineCount());t.updatePost(cn.fromFoldRanges(a))}}}},CA=class extends Nr{constructor(){super({id:"editor.removeManualFoldingRanges",label:b("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2137),weight:100}})}invoke(e,t,r){let n=r.getSelections();if(n){let o=[];for(let s of n){let{startLineNumber:a,endLineNumber:l}=s;o.push(l>=a?{startLineNumber:a,endLineNumber:l}:{endLineNumber:l,startLineNumber:a})}t.removeManualRanges(o),e.triggerFoldingModelChanged()}}};Ue(fs.ID,fs,0);ee(aA);ee(lA);ee(cA);ee(uA);ee(bA);ee(vA);ee(hA);ee(fA);ee(pA);ee(mA);ee(gA);ee(dA);ee(_A);ee(yA);ee(wA);ee(xA);ee(CA);for(let i=1;i<=7;i++)CP(new sh({id:sh.ID(i),label:b("foldLevelAction.label","Fold Level {0}",i),alias:`Fold Level ${i}`,precondition:Kr,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2048|21+i),weight:100}}));Dt.registerCommand("_executeFoldingRangeProvider",function(i,...e){return m0e(this,void 0,void 0,function*(){let[t]=e;if(!(t instanceof yt))throw ko();let r=i.get(Se),n=i.get(Di).getModel(t);if(!n)throw ko();let o=i.get(Mt);if(!o.getValue("editor.folding",{resource:t}))return[];let s=i.get(Ot),a=o.getValue("editor.foldingStrategy",{resource:t}),l={get limit(){return o.getValue("editor.foldingMaximumRegions",{resource:t})},update:(f,m)=>{}},c=new nh(n,s,l),d=c;if(a!=="indentation"){let f=fs.getFoldingRangeProviders(r,n);f.length&&(d=new oh(n,f,()=>{},l,c))}let u=yield d.compute(st.None),h=[];try{if(u)for(let f=0;f{lt();Kre();He();SA=class extends de{constructor(){super({id:"editor.action.fontZoomIn",label:b("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){Sf.setZoomLevel(Sf.getZoomLevel()+1)}},kA=class extends de{constructor(){super({id:"editor.action.fontZoomOut",label:b("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){Sf.setZoomLevel(Sf.getZoomLevel()-1)}},EA=class extends de{constructor(){super({id:"editor.action.fontZoomReset",label:b("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){Sf.setZoomLevel(0)}};ee(SA);ee(kA);ee(EA)});var DA=Qi(ah=>{mi();ki();qt();ll();ke();lt();In();K3();et();ti();q_();Pt();Gre();$re();He();Vi();wt();Ut();$c();var s$=ah&&ah.__decorate||function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},E2=ah&&ah.__param||function(i,e){return function(t,r){e(t,r,i)}},LA=ah&&ah.__awaiter||function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},fb=class{constructor(e,t,r){this._editor=e,this._languageFeaturesService=t,this._workerService=r,this._disposables=new ae,this._sessionDisposables=new ae,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(n=>{n.hasChanged(55)&&this._update()})),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(55)||!this._editor.hasModel())return;let e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;let r=new fu;for(let n of t.autoFormatTriggerCharacters)r.add(n.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(n=>{let o=n.charCodeAt(n.length-1);r.has(o)&&this._trigger(String.fromCharCode(o))}))}_trigger(e){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;let t=this._editor.getModel(),r=this._editor.getPosition(),n=new zi,o=this._editor.onDidChangeModelContent(s=>{if(s.isFlush){n.cancel(),o.dispose();return}for(let a=0,l=s.changes.length;a{n.token.isCancellationRequested||Ki(s)&&(FF.execute(this._editor,s,!0),zF(s))}).finally(()=>{o.dispose()})}};fb.ID="editor.contrib.autoFormat";fb=s$([E2(1,Se),E2(2,kl)],fb);var pb=class{constructor(e,t,r){this.editor=e,this._languageFeaturesService=t,this._instantiationService=r,this._callOnDispose=new ae,this._callOnModel=new ae,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(54)&&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(yk,this.editor,e,2,ba.None,st.None).catch(ft))}};pb.ID="editor.contrib.formatOnPaste";pb=s$([E2(1,Se),E2(2,Ke)],pb);var IA=class extends de{constructor(){super({id:"editor.action.formatDocument",label:b("formatDocument.label","Format Document"),alias:"Format Document",precondition:fe.and(O.notInCompositeEditor,O.writable,O.hasDocumentFormattingProvider),kbOpts:{kbExpr:O.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}run(e,t){return LA(this,void 0,void 0,function*(){if(t.hasModel()){let r=e.get(Ke);yield e.get(vl).showWhile(r.invokeFunction(BF,t,1,ba.None,st.None),250)}})}},AA=class extends de{constructor(){super({id:"editor.action.formatSelection",label:b("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:fe.and(O.writable,O.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2084),weight:100},contextMenuOpts:{when:O.hasNonEmptySelection,group:"1_modification",order:1.31}})}run(e,t){return LA(this,void 0,void 0,function*(){if(!t.hasModel())return;let r=e.get(Ke),n=t.getModel(),o=t.getSelections().map(a=>a.isEmpty()?new B(a.startLineNumber,1,a.startLineNumber,n.getLineMaxColumn(a.startLineNumber)):a);yield e.get(vl).showWhile(r.invokeFunction(yk,t,o,1,ba.None,st.None),250)})}};Ue(fb.ID,fb,2);Ue(pb.ID,pb,2);ee(IA);ee(AA);Dt.registerCommand("editor.action.format",i=>LA(void 0,void 0,void 0,function*(){let e=i.get(ai).getFocusedCodeEditor();if(!e||!e.hasModel())return;let t=i.get(_i);e.getSelection().isEmpty()?yield t.executeCommand("editor.action.formatDocument"):yield t.executeCommand("editor.action.formatSelection")}))});var bp,Ad,Uo,rc=M(()=>{bp=class{constructor(e,t,r,n){this.priority=e,this.range=t,this.initialMousePosX=r,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}},Ad=class{constructor(e,t,r,n,o,s){this.priority=e,this.owner=t,this.range=r,this.initialMousePosX=n,this.initialMousePosY=o,this.supportsMarkerHover=s,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}},Uo=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}});var T2,I2,A2,L2=M(()=>{T2="editor.action.inlineSuggest.commit",I2="editor.action.inlineSuggest.showPrevious",A2="editor.action.inlineSuggest.showNext"});var _r,D2=M(()=>{wa();Ni();lre();wt();ke();He();_r=class i extends ce{constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=i.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=i.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=i.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=i.suppressSuggestions.bindTo(this.contextKeyService),this._register(pn(r=>{let n=this.model.read(r),o=n==null?void 0:n.state.read(r),s=!!(o!=null&&o.inlineCompletion)&&(o==null?void 0:o.ghostText)!==void 0&&!(o!=null&&o.ghostText.isEmpty());this.inlineCompletionVisible.set(s),o!=null&&o.ghostText&&(o!=null&&o.inlineCompletion)&&this.suppressSuggestions.set(o.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)})),this._register(pn(r=>{let n=this.model.read(r),o=!1,s=!0,a=n==null?void 0:n.ghostText.read(r);if(n!=null&&n.selectedSuggestItem&&a&&a.parts.length>0){let{column:l,lines:c}=a.parts[0],d=c[0],u=n.textModel.getLineIndentColumn(a.lineNumber);if(l<=u){let f=Rm(d);f===-1&&(f=d.length-1),o=f>0;let m=n.textModel.getOptions().tabSize;s=SP.visibleColumnFromColumn(d,f+1,m){});var l$=M(()=>{a$()});function c$(i,e){let t=new MA(i),r=e.map(n=>{let o=B.lift(n.range);return{startOffset:t.getOffset(o.getStartPosition()),endOffset:t.getOffset(o.getEndPosition()),text:n.text}});r.sort((n,o)=>o.startOffset-n.startOffset);for(let n of r)i=i.substring(0,n.startOffset)+n.text+i.substring(n.endOffset);return i}function d$(){return g0e}function u$(i,e){let t=new ae,r=i.createDecorationsCollection();return t.add(jF({debugName:()=>`Apply decorations from ${e.debugName}`},n=>{let o=e.read(n);r.set(o)})),t.add({dispose:()=>{r.clear()}}),t}function mb(i,e){return new Ie(i.lineNumber+e.lineNumber-1,e.lineNumber===1?i.column+e.column-1:e.column)}function gb(i){let e=1,t=1;for(let r of i)r===` -`?(e++,t=1):t++;return new Ie(e,t)}var MA,g0e,M2,vp=M(()=>{qt();ke();wa();di();et();MA=class{constructor(e){this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;tt)throw new Im(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new B(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}});function NA(i,e){return i===e?!0:!i||!e?!1:i instanceof Ld&&e instanceof Ld||i instanceof yp&&e instanceof yp?i.equals(e):!1}var Ld,_p,yp,N2=M(()=>{vp();Ld=class{constructor(e,t){this.lineNumber=e,this.parts=t}equals(e){return this.lineNumber===e.lineNumber&&this.parts.length===e.parts.length&&this.parts.every((t,r)=>t.equals(e.parts[r]))}renderForScreenReader(e){if(this.parts.length===0)return"";let t=this.parts[this.parts.length-1],r=e.substr(0,t.column-1);return c$(r,this.parts.map(o=>({range:{startLineNumber:1,endLineNumber:1,startColumn:o.column,endColumn:o.column},text:o.lines.join(` + `,constraint:o$,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,r,n){let o=this.getLineNumbers(n,r),s=n&&n.levels,a=n&&n.direction;typeof s!="number"&&typeof a!="string"?XK(t,!0,o):a==="up"?ZI(t,!0,s||1,o):rh(t,!0,s||1,o)}},dA=class extends Nr{constructor(){super({id:"editor.toggleFold",label:b("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2090),weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);x2(t,1,n)}},uA=class extends Nr{constructor(){super({id:"editor.foldRecursively",label:b("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2140),weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);rh(t,!0,Number.MAX_VALUE,n)}},hA=class extends Nr{constructor(){super({id:"editor.foldAllBlockComments",label:b("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2138),weight:100}})}invoke(e,t,r,n,o){if(t.regions.hasTypes())S2(t,vf.Comment.value,!0);else{let s=r.getModel();if(!s)return;let a=o.getLanguageConfiguration(s.getLanguageId()).comments;if(a&&a.blockCommentStartToken){let l=new RegExp("^\\s*"+cl(a.blockCommentStartToken));C2(t,l,!0)}}}},fA=class extends Nr{constructor(){super({id:"editor.foldAllMarkerRegions",label:b("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2077),weight:100}})}invoke(e,t,r,n,o){if(t.regions.hasTypes())S2(t,vf.Region.value,!0);else{let s=r.getModel();if(!s)return;let a=o.getLanguageConfiguration(s.getLanguageId()).foldingRules;if(a&&a.markers&&a.markers.start){let l=new RegExp(a.markers.start);C2(t,l,!0)}}}},pA=class extends Nr{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:b("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2078),weight:100}})}invoke(e,t,r,n,o){if(t.regions.hasTypes())S2(t,vf.Region.value,!1);else{let s=r.getModel();if(!s)return;let a=o.getLanguageConfiguration(s.getLanguageId()).foldingRules;if(a&&a.markers&&a.markers.start){let l=new RegExp(a.markers.start);C2(t,l,!1)}}}},mA=class extends Nr{constructor(){super({id:"editor.foldAllExcept",label:b("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2136),weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);JI(t,!0,n)}},gA=class extends Nr{constructor(){super({id:"editor.unfoldAllExcept",label:b("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2134),weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);JI(t,!1,n)}},bA=class extends Nr{constructor(){super({id:"editor.foldAll",label:b("foldAllAction.label","Fold All"),alias:"Fold All",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2069),weight:100}})}invoke(e,t,r){rh(t,!0)}},vA=class extends Nr{constructor(){super({id:"editor.unfoldAll",label:b("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2088),weight:100}})}invoke(e,t,r){rh(t,!1)}},sh=class i extends Nr{getFoldingLevel(){return parseInt(this.id.substr(i.ID_PREFIX.length))}invoke(e,t,r){QK(t,this.getFoldingLevel(),!0,this.getSelectedLines(r))}};sh.ID_PREFIX="editor.foldLevel";sh.ID=i=>sh.ID_PREFIX+i;_A=class extends Nr{constructor(){super({id:"editor.gotoParentFold",label:b("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);if(n.length>0){let o=ZK(n[0],t);o!==null&&r.setSelection({startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1})}}},yA=class extends Nr{constructor(){super({id:"editor.gotoPreviousFold",label:b("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);if(n.length>0){let o=JK(n[0],t);o!==null&&r.setSelection({startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1})}}},wA=class extends Nr{constructor(){super({id:"editor.gotoNextFold",label:b("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);if(n.length>0){let o=e$(n[0],t);o!==null&&r.setSelection({startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1})}}},xA=class extends Nr{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:b("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2135),weight:100}})}invoke(e,t,r){var n;let o=[],s=r.getSelections();if(s){for(let a of s){let l=a.endLineNumber;a.endColumn===1&&--l,l>a.startLineNumber&&(o.push({startLineNumber:a.startLineNumber,endLineNumber:l,type:void 0,isCollapsed:!0,source:1}),r.setSelection({startLineNumber:a.startLineNumber,startColumn:1,endLineNumber:a.startLineNumber,endColumn:1}))}if(o.length>0){o.sort((l,c)=>l.startLineNumber-c.startLineNumber);let a=cn.sanitizeAndMerge(t.regions,o,(n=r.getModel())===null||n===void 0?void 0:n.getLineCount());t.updatePost(cn.fromFoldRanges(a))}}}},CA=class extends Nr{constructor(){super({id:"editor.removeManualFoldingRanges",label:b("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2137),weight:100}})}invoke(e,t,r){let n=r.getSelections();if(n){let o=[];for(let s of n){let{startLineNumber:a,endLineNumber:l}=s;o.push(l>=a?{startLineNumber:a,endLineNumber:l}:{endLineNumber:l,startLineNumber:a})}t.removeManualRanges(o),e.triggerFoldingModelChanged()}}};Ue(fs.ID,fs,0);ee(aA);ee(lA);ee(cA);ee(uA);ee(bA);ee(vA);ee(hA);ee(fA);ee(pA);ee(mA);ee(gA);ee(dA);ee(_A);ee(yA);ee(wA);ee(xA);ee(CA);for(let i=1;i<=7;i++)CP(new sh({id:sh.ID(i),label:b("foldLevelAction.label","Fold Level {0}",i),alias:`Fold Level ${i}`,precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2048|21+i),weight:100}}));Dt.registerCommand("_executeFoldingRangeProvider",function(i,...e){return m0e(this,void 0,void 0,function*(){let[t]=e;if(!(t instanceof yt))throw ko();let r=i.get(Se),n=i.get(Di).getModel(t);if(!n)throw ko();let o=i.get(Mt);if(!o.getValue("editor.folding",{resource:t}))return[];let s=i.get(Ot),a=o.getValue("editor.foldingStrategy",{resource:t}),l={get limit(){return o.getValue("editor.foldingMaximumRegions",{resource:t})},update:(f,m)=>{}},c=new nh(n,s,l),d=c;if(a!=="indentation"){let f=fs.getFoldingRangeProviders(r,n);f.length&&(d=new oh(n,f,()=>{},l,c))}let u=yield d.compute(st.None),h=[];try{if(u)for(let f=0;f{lt();Kre();He();SA=class extends de{constructor(){super({id:"editor.action.fontZoomIn",label:b("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){Sf.setZoomLevel(Sf.getZoomLevel()+1)}},kA=class extends de{constructor(){super({id:"editor.action.fontZoomOut",label:b("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){Sf.setZoomLevel(Sf.getZoomLevel()-1)}},EA=class extends de{constructor(){super({id:"editor.action.fontZoomReset",label:b("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){Sf.setZoomLevel(0)}};ee(SA);ee(kA);ee(EA)});var DA=Qi(ah=>{mi();ki();qt();ll();ke();lt();In();K3();et();ti();q_();Pt();Gre();$re();He();Vi();wt();Ut();$c();var s$=ah&&ah.__decorate||function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},E2=ah&&ah.__param||function(i,e){return function(t,r){e(t,r,i)}},LA=ah&&ah.__awaiter||function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},fb=class{constructor(e,t,r){this._editor=e,this._languageFeaturesService=t,this._workerService=r,this._disposables=new le,this._sessionDisposables=new le,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(n=>{n.hasChanged(55)&&this._update()})),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(55)||!this._editor.hasModel())return;let e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;let r=new fu;for(let n of t.autoFormatTriggerCharacters)r.add(n.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(n=>{let o=n.charCodeAt(n.length-1);r.has(o)&&this._trigger(String.fromCharCode(o))}))}_trigger(e){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;let t=this._editor.getModel(),r=this._editor.getPosition(),n=new zi,o=this._editor.onDidChangeModelContent(s=>{if(s.isFlush){n.cancel(),o.dispose();return}for(let a=0,l=s.changes.length;a{n.token.isCancellationRequested||Ki(s)&&(FF.execute(this._editor,s,!0),zF(s))}).finally(()=>{o.dispose()})}};fb.ID="editor.contrib.autoFormat";fb=s$([E2(1,Se),E2(2,kl)],fb);var pb=class{constructor(e,t,r){this.editor=e,this._languageFeaturesService=t,this._instantiationService=r,this._callOnDispose=new le,this._callOnModel=new le,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(54)&&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(yk,this.editor,e,2,ba.None,st.None).catch(ft))}};pb.ID="editor.contrib.formatOnPaste";pb=s$([E2(1,Se),E2(2,Ke)],pb);var IA=class extends de{constructor(){super({id:"editor.action.formatDocument",label:b("formatDocument.label","Format Document"),alias:"Format Document",precondition:fe.and(F.notInCompositeEditor,F.writable,F.hasDocumentFormattingProvider),kbOpts:{kbExpr:F.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}run(e,t){return LA(this,void 0,void 0,function*(){if(t.hasModel()){let r=e.get(Ke);yield e.get(vl).showWhile(r.invokeFunction(BF,t,1,ba.None,st.None),250)}})}},AA=class extends de{constructor(){super({id:"editor.action.formatSelection",label:b("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:fe.and(F.writable,F.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2084),weight:100},contextMenuOpts:{when:F.hasNonEmptySelection,group:"1_modification",order:1.31}})}run(e,t){return LA(this,void 0,void 0,function*(){if(!t.hasModel())return;let r=e.get(Ke),n=t.getModel(),o=t.getSelections().map(a=>a.isEmpty()?new B(a.startLineNumber,1,a.startLineNumber,n.getLineMaxColumn(a.startLineNumber)):a);yield e.get(vl).showWhile(r.invokeFunction(yk,t,o,1,ba.None,st.None),250)})}};Ue(fb.ID,fb,2);Ue(pb.ID,pb,2);ee(IA);ee(AA);Dt.registerCommand("editor.action.format",i=>LA(void 0,void 0,void 0,function*(){let e=i.get(ai).getFocusedCodeEditor();if(!e||!e.hasModel())return;let t=i.get(_i);e.getSelection().isEmpty()?yield t.executeCommand("editor.action.formatDocument"):yield t.executeCommand("editor.action.formatSelection")}))});var bp,Ad,Uo,rc=N(()=>{bp=class{constructor(e,t,r,n){this.priority=e,this.range=t,this.initialMousePosX=r,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}},Ad=class{constructor(e,t,r,n,o,s){this.priority=e,this.owner=t,this.range=r,this.initialMousePosX=n,this.initialMousePosY=o,this.supportsMarkerHover=s,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}},Uo=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}});var T2,I2,A2,L2=N(()=>{T2="editor.action.inlineSuggest.commit",I2="editor.action.inlineSuggest.showPrevious",A2="editor.action.inlineSuggest.showNext"});var _r,D2=N(()=>{wa();Ni();lre();wt();ke();He();_r=class i extends ce{constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=i.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=i.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=i.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=i.suppressSuggestions.bindTo(this.contextKeyService),this._register(pn(r=>{let n=this.model.read(r),o=n==null?void 0:n.state.read(r),s=!!(o!=null&&o.inlineCompletion)&&(o==null?void 0:o.ghostText)!==void 0&&!(o!=null&&o.ghostText.isEmpty());this.inlineCompletionVisible.set(s),o!=null&&o.ghostText&&(o!=null&&o.inlineCompletion)&&this.suppressSuggestions.set(o.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)})),this._register(pn(r=>{let n=this.model.read(r),o=!1,s=!0,a=n==null?void 0:n.ghostText.read(r);if(n!=null&&n.selectedSuggestItem&&a&&a.parts.length>0){let{column:l,lines:c}=a.parts[0],d=c[0],u=n.textModel.getLineIndentColumn(a.lineNumber);if(l<=u){let f=Rm(d);f===-1&&(f=d.length-1),o=f>0;let m=n.textModel.getOptions().tabSize;s=SP.visibleColumnFromColumn(d,f+1,m){});var l$=N(()=>{a$()});function c$(i,e){let t=new MA(i),r=e.map(n=>{let o=B.lift(n.range);return{startOffset:t.getOffset(o.getStartPosition()),endOffset:t.getOffset(o.getEndPosition()),text:n.text}});r.sort((n,o)=>o.startOffset-n.startOffset);for(let n of r)i=i.substring(0,n.startOffset)+n.text+i.substring(n.endOffset);return i}function d$(){return g0e}function u$(i,e){let t=new le,r=i.createDecorationsCollection();return t.add(jF({debugName:()=>`Apply decorations from ${e.debugName}`},n=>{let o=e.read(n);r.set(o)})),t.add({dispose:()=>{r.clear()}}),t}function mb(i,e){return new Ie(i.lineNumber+e.lineNumber-1,e.lineNumber===1?i.column+e.column-1:e.column)}function gb(i){let e=1,t=1;for(let r of i)r===` +`?(e++,t=1):t++;return new Ie(e,t)}var MA,g0e,M2,vp=N(()=>{qt();ke();wa();di();et();MA=class{constructor(e){this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;tt)throw new Im(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new B(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}});function NA(i,e){return i===e?!0:!i||!e?!1:i instanceof Ld&&e instanceof Ld||i instanceof yp&&e instanceof yp?i.equals(e):!1}var Ld,_p,yp,N2=N(()=>{vp();Ld=class{constructor(e,t){this.lineNumber=e,this.parts=t}equals(e){return this.lineNumber===e.lineNumber&&this.parts.length===e.parts.length&&this.parts.every((t,r)=>t.equals(e.parts[r]))}renderForScreenReader(e){if(this.parts.length===0)return"";let t=this.parts[this.parts.length-1],r=e.substr(0,t.column-1);return c$(r,this.parts.map(o=>({range:{startLineNumber:1,endLineNumber:1,startColumn:o.column,endColumn:o.column},text:o.lines.join(` `)}))).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)}},_p=class{constructor(e,t,r){this.column=e,this.lines=t,this.preview=r}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every((t,r)=>t===e.lines[r])}},yp=class{constructor(e,t,r,n=0){this.lineNumber=e,this.columnRange=t,this.newLines=r,this.additionalReservedLineCount=n,this.parts=[new _p(this.columnRange.endColumnExclusive,this.newLines,!1)]}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,r)=>t===e.newLines[r])&&this.additionalReservedLineCount===e.additionalReservedLineCount}}});function _0e(i,e,t,r,n){let o=r.get(32),s=r.get(115),a="none",l=r.get(92),c=r.get(50),d=r.get(49),u=r.get(65),h=new i_(1e4);h.appendString('
');for(let g=0,w=t.length;g');let I=$v(E),N=_P(E),U=YO.createEmpty(E,n);Y_(new G_(d.isMonospace&&!o,d.canUseHalfwidthRightwardsArrow,E,!1,I,N,0,U,_.decorations,e,0,d.spaceWidth,d.middotWidth,d.wsmiddotWidth,s,a,l,c!==eF.OFF,null),h),h.appendString("
")}h.appendString(""),L_(i,d);let f=h.build(),m=h$?h$.createHTML(f):f;i.innerHTML=m}var b0e,v0e,R2,RA,h$,f$=M(()=>{ck();ei();ke();wa();Ni();l$();uF();eg();di();et();zP();es();qc();Lre();$F();GF();N2();vp();b0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},v0e=function(i,e){return function(t,r){e(t,r,i)}},R2=class extends ce{constructor(e,t,r){super(),this.editor=e,this.model=t,this.languageService=r,this.isDisposed=ya("isDisposed",!1),this.currentTextModel=El(this.editor.onDidChangeModel,()=>this.editor.getModel()),this.uiState=No(n=>{if(this.isDisposed.read(n))return;let o=this.currentTextModel.read(n);if(o!==this.model.targetTextModel.read(n))return;let s=this.model.ghostText.read(n);if(!s)return;let a=s instanceof yp?s.columnRange:void 0,l=[],c=[];function d(g,w){if(c.length>0){let _=c[c.length-1];w&&_.decorations.push(new ag(_.content.length+1,_.content.length+1+g[0].length,w,0)),_.content+=g[0],g=g.slice(1)}for(let _ of g)c.push({content:_,decorations:w?[new ag(1,_.length+1,w,0)]:[]})}let u=o.getLineContent(s.lineNumber),h,f=0;for(let g of s.parts){let w=g.lines;h===void 0?(l.push({column:g.column,text:w[0],preview:g.preview}),w=w.slice(1)):d([u.substring(f,g.column-1)],void 0),w.length>0&&(d(w,"ghost-text"),h===void 0&&g.column<=u.length&&(h=g.column)),f=g.column-1}h!==void 0&&d([u.substring(f)],void 0);let m=h!==void 0?new M2(h,u.length+1):void 0;return{replacedRange:a,inlineTexts:l,additionalLines:c,hiddenRange:m,lineNumber:s.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(n),targetTextModel:o}}),this.decorations=No(n=>{let o=this.uiState.read(n);if(!o)return[];let s=[];o.replacedRange&&s.push({range:o.replacedRange.toRange(o.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),o.hiddenRange&&s.push({range:o.hiddenRange.toRange(o.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(let a of o.inlineTexts)s.push({range:B.fromPositions(new Ie(o.lineNumber,a.column)),options:{description:"ghost-text",after:{content:a.text,inlineClassName:a.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:bu.Left},showIfCollapsed:!0}});return s}),this.additionalLinesWidget=this._register(new RA(this.editor,this.languageService.languageIdCodec,No(n=>{let o=this.uiState.read(n);return o?{lineNumber:o.lineNumber,additionalLines:o.additionalLines,minReservedLineCount:o.additionalReservedLineCount,targetTextModel:o.targetTextModel}:void 0}))),this._register(ri(()=>{this.isDisposed.set(!0,void 0)})),this._register(u$(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};R2=b0e([v0e(2,er)],R2);RA=class extends ce{get viewZoneId(){return this._viewZoneId}constructor(e,t,r){super(),this.editor=e,this.languageIdCodec=t,this.lines=r,this._viewZoneId=void 0,this.editorOptionsChanged=VF("editorOptionChanged",ci.filter(this.editor.onDidChangeConfiguration,n=>n.hasChanged(32)||n.hasChanged(115)||n.hasChanged(97)||n.hasChanged(92)||n.hasChanged(50)||n.hasChanged(49)||n.hasChanged(65))),this._register(pn(n=>{let o=this.lines.read(n);this.editorOptionsChanged.read(n),o?this.updateLines(o.lineNumber,o.additionalLines,o.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,r){let n=this.editor.getModel();if(!n)return;let{tabSize:o}=n.getOptions();this.editor.changeViewZones(s=>{this._viewZoneId&&(s.removeZone(this._viewZoneId),this._viewZoneId=void 0);let a=Math.max(t.length,r);if(a>0){let l=document.createElement("div");_0e(l,o,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=s.addZone({afterLineNumber:e,heightInLines:a,domNode:l,afterColumnAffinity:1})}})}};h$=xf("editorGhostText",{createHTML:i=>i})});var p$=M(()=>{});var m$=M(()=>{p$()});var g$=M(()=>{});var b$=M(()=>{g$()});var y0e,P2,bb,v$=M(()=>{ng();Yre();Fc();Zr();An();ei();ke();b$();He();y0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},P2=class extends ce{constructor(e,t,r={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new W9),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new ae),this.options=r,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new bb(()=>{var n;return(n=this.toggleMenuActionViewItem)===null||n===void 0?void 0:n.show()},r.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new Ls(this.element,{orientation:r.orientation,ariaLabel:r.ariaLabel,actionRunner:r.actionRunner,allowContextMenu:r.allowContextMenu,highlightToggledItems:r.highlightToggledItems,actionViewItemProvider:(n,o)=>{var s;if(n.id===bb.ID)return this.toggleMenuActionViewItem=new Ck(n,n.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:_t.asClassNameArray((s=r.moreIcon)!==null&&s!==void 0?s:pt.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(r.actionViewItemProvider){let a=r.actionViewItemProvider(n,o);if(a)return a}if(n instanceof Nm){let a=new Ck(n,n.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:n.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry});return a.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(a),this.disposables.add(this._onDidChangeDropdownVisibility.add(a.onDidChangeVisibility)),a}}}))}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();let r=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),r.push(this.toggleMenuAction)),r.forEach(n=>{this.actionBar.push(n,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(n)})})}getKeybindingLabel(e){var t,r,n;let o=this.lookupKeybindings?(r=(t=this.options).getKeyBinding)===null||r===void 0?void 0:r.call(t,e):void 0;return(n=o==null?void 0:o.getLabel())!==null&&n!==void 0?n:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}},bb=class i extends Qo{constructor(e,t){t=t||b("moreActions","More Actions..."),super(i.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return y0e(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}};bb.ID="toolbar.toggle.more"});var w0e,vb,O2,_$=M(()=>{Ht();J9();v$();Fc();mi();ke();He();Ji();wt();yl();jr();Bc();w0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},vb=function(i,e){return function(t,r){e(t,r,i)}},O2=class extends P2{constructor(e,t,r,n,o,s,a){super(e,o,Object.assign(Object.assign({getKeyBinding:c=>{var d;return(d=s.lookupKeybinding(c.id))!==null&&d!==void 0?d:void 0}},t),{allowContextMenu:!0,skipTelemetry:typeof(t==null?void 0:t.telemetrySource)=="string"})),this._options=t,this._menuService=r,this._contextKeyService=n,this._contextMenuService=o,this._sessionDisposables=this._store.add(new ae);let l=t==null?void 0:t.telemetrySource;l&&this._store.add(this.actionBar.onDidRun(c=>a.publicLog2("workbenchActionExecuted",{id:c.action.id,from:l})))}setActions(e,t=[],r){var n,o,s;this._sessionDisposables.clear();let a=e.slice(),l=t.slice(),c=[],d=0,u=[],h=!1;if(((n=this._options)===null||n===void 0?void 0:n.hiddenItemStrategy)!==-1)for(let f=0;f=this._options.maxNumberOfItems&&(a[m]=void 0,u[m]=g)}}G3(a),G3(u),super.setActions(a,Cs.join(u,l)),c.length>0&&this._sessionDisposables.add(Lt(this.getElement(),"contextmenu",f=>{var m,g,w,_,E;let I=new Vv(f),N=this.getItemAction(I.target);if(!N)return;I.preventDefault(),I.stopPropagation();let U=!1;if(d===1&&((m=this._options)===null||m===void 0?void 0:m.hiddenItemStrategy)===0){U=!0;for(let le=0;lethis._menuService.resetHiddenStates(r)}))),this._contextMenuService.showContextMenu({getAnchor:()=>I,getActions:()=>Y,menuId:(w=this._options)===null||w===void 0?void 0:w.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(_=this._options)===null||_===void 0?void 0:_.menuOptions),skipTelemetry:typeof((E=this._options)===null||E===void 0?void 0:E.telemetrySource)=="string",contextKeyService:this._contextKeyService})}))}};O2=w0e([vb(2,Ss),vb(3,it),vb(4,rs),vb(5,Kt),vb(6,Ln)],O2)});var zA,Vs,F2,z2,x0e,C0e,qs,PA,OA,FA,B2=M(()=>{Ht();gF();vF();Fc();mi();jt();Zr();ke();wa();Tn();An();m$();di();fn();L2();He();J_();_$();Ji();Vi();wt();yl();Ut();jr();Bc();Sl();zA=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vs=function(i,e){return function(t,r){e(t,r,i)}},z2=class extends ce{constructor(e,t,r){super(),this.editor=e,this.model=t,this.instantiationService=r,this.alwaysShowToolbar=El(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(61).showToolbar==="always"),this.sessionPosition=void 0,this.position=No(n=>{var o,s,a;let l=(o=this.model.read(n))===null||o===void 0?void 0:o.ghostText.read(n);if(!this.alwaysShowToolbar.read(n)||!l||l.parts.length===0)return this.sessionPosition=void 0,null;let c=l.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==l.lineNumber&&(this.sessionPosition=void 0);let d=new Ie(l.lineNumber,Math.min(c,(a=(s=this.sessionPosition)===null||s===void 0?void 0:s.column)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER));return this.sessionPosition=d,d}),this._register(WF((n,o)=>{let s=this.model.read(n);if(!s||!this.alwaysShowToolbar.read(n))return;let a=o.add(this.instantiationService.createInstance(qs,this.editor,!0,this.position,s.selectedInlineCompletionIndex,s.inlineCompletionsCount,s.selectedInlineCompletion.map(l=>{var c;return(c=l==null?void 0:l.inlineCompletion.source.inlineCompletions.commands)!==null&&c!==void 0?c:[]})));e.addContentWidget(a),o.add(ri(()=>e.removeContentWidget(a))),o.add(pn(l=>{this.position.read(l)&&s.lastTriggerKind.read(l)!==pa.Explicit&&s.triggerExplicitly()}))}))}};z2=zA([Vs(2,Ke)],z2);x0e=Pi("inline-suggestion-hints-next",pt.chevronRight,b("parameterHintsNextIcon","Icon for show next parameter hint.")),C0e=Pi("inline-suggestion-hints-previous",pt.chevronLeft,b("parameterHintsPreviousIcon","Icon for show previous parameter hint.")),qs=F2=class extends ce{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,r){let n=new Qo(e,t,r,!0,()=>this._commandService.executeCommand(e)),o=this.keybindingService.lookupKeybinding(e,this._contextKeyService),s=t;return o&&(s=b({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,o.getLabel())),n.tooltip=s,n}constructor(e,t,r,n,o,s,a,l,c,d,u){super(),this.editor=e,this.withBorder=t,this._position=r,this._currentSuggestionIdx=n,this._suggestionCount=o,this._extraCommands=s,this._commandService=a,this.keybindingService=c,this._contextKeyService=d,this._menuService=u,this.id=`InlineSuggestionHintsContentWidget${F2.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=Kv("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[Kv("div@toolBar")]),this.previousAction=this.createCommandAction(I2,b("previous","Previous"),_t.asClassName(C0e)),this.availableSuggestionCountAction=new Qo("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(A2,b("next","Next"),_t.asClassName(x0e)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(Me.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new ui(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new ui(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100)),this.lastCommands=[],this.toolBar=this._register(l.createInstance(FA,this.nodes.toolBar,Me.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:h=>h.startsWith("primary")},actionViewItemProvider:(h,f)=>{if(h instanceof na)return l.createInstance(OA,h,void 0);if(h===this.availableSuggestionCountAction){let m=new PA(void 0,h,{label:!0,icon:!1});return m.setClass("availableSuggestionCount"),m}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility(h=>{F2._dropDownVisible=h})),this._register(pn(h=>{this._position.read(h),this.editor.layoutContentWidget(this)})),this._register(pn(h=>{let f=this._suggestionCount.read(h),m=this._currentSuggestionIdx.read(h);f!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${m+1}/${f}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),f!==void 0&&f>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()})),this._register(pn(h=>{let f=this._extraCommands.read(h);if(ks(this.lastCommands,f))return;this.lastCommands=f;let m=f.map(g=>({class:void 0,id:g.id,enabled:!0,tooltip:g.tooltip||"",label:g.title,run:w=>this._commandService.executeCommand(g.id)}));for(let[g,w]of this.inlineCompletionsActionsMenus.getActions())for(let _ of w)_ instanceof na&&m.push(_);m.length>0&&m.unshift(new Cs),this.toolBar.setAdditionalSecondaryActions(m)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};qs._dropDownVisible=!1;qs.id=0;qs=F2=zA([Vs(6,_i),Vs(7,Ke),Vs(8,Kt),Vs(9,it),Vs(10,Ss)],qs);PA=class extends rg{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}},OA=class extends Z_{updateLabel(){let e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){let t=Kv("div.keybinding").root;new P_(t,jv,Object.assign({disableTitle:!0},bF)).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},FA=class extends O2{constructor(e,t,r,n,o,s,a,l){super(e,Object.assign({resetMenu:t},r),n,o,s,a,l),this.menuId=t,this.options2=r,this.menuService=n,this.contextKeyService=o,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,r,n,o,s,a;let l=[],c=[];Q_(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:c},(r=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||r===void 0?void 0:r.primaryGroup,(o=(n=this.options2)===null||n===void 0?void 0:n.toolbarOptions)===null||o===void 0?void 0:o.shouldInlineSubmenu,(a=(s=this.options2)===null||s===void 0?void 0:s.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),c.push(...this.additionalActions),l.unshift(...this.prependedPrimaryActions),this.setActions(l,c)}setPrependedPrimaryActions(e){ks(this.prependedPrimaryActions,e,(t,r)=>t===r)||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){ks(this.additionalActions,e,(t,r)=>t===r)||(this.additionalActions=e,this.updateToolbar())}};FA=zA([Vs(3,Ss),Vs(4,it),Vs(5,rs),Vs(6,Kt),Vs(7,Ln)],FA)});function y$(i,e){let t=new sO,r=new lO(t,c=>e.getLanguageConfiguration(c)),n=new aO(new BA([i]),r),o=cO(n,[],void 0,!0),s="",a=i.getLineContent();function l(c,d){if(c.kind===2)if(l(c.openingBracket,d),d=pf(d,c.openingBracket.length),c.child&&(l(c.child,d),d=pf(d,c.child.length)),c.closingBracket)l(c.closingBracket,d),d=pf(d,c.closingBracket.length);else{let h=r.getSingleLanguageBracketTokens(c.openingBracket.languageId).findClosingTokenText(c.openingBracket.bracketIds);s+=h}else if(c.kind!==3){if(c.kind===0||c.kind===1)s+=a.substring(d,pf(d,c.length));else if(c.kind===4)for(let u of c.children)l(u,d),d=pf(d,u.length)}}return l(o,oO),s}var BA,w$=M(()=>{kre();wre();Ere();xre();Sre();BA=class{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}}});function x$(i,e){let t=[...i];for(;t.length>0;){let r=t.shift();if(!e(r))break;t.unshift(...r.children)}}var H2,Dd,Rr,U2,vo,lh,HA,Ks,_b,wp,jo,ch=M(()=>{H2=class i{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};let e=this.pos,t=0,r=this.value.charCodeAt(e),n;if(n=i._table[r],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(i.isDigitCharacter(r)){n=8;do t+=1,r=this.value.charCodeAt(e+t);while(i.isDigitCharacter(r));return this.pos+=t,{type:n,pos:e,len:t}}if(i.isVariableCharacter(r)){n=9;do r=this.value.charCodeAt(e+ ++t);while(i.isVariableCharacter(r)||i.isDigitCharacter(r));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,r=this.value.charCodeAt(e+t);while(!isNaN(r)&&typeof i._table[r]=="undefined"&&!i.isDigitCharacter(r)&&!i.isVariableCharacter(r));return this.pos+=t,{type:n,pos:e,len:t}}};H2._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};Dd=class{constructor(){this._children=[]}appendChild(e){return e instanceof Rr&&this._children[this._children.length-1]instanceof Rr?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){let{parent:r}=e,n=r.children.indexOf(e),o=r.children.slice(0);o.splice(n,1,...t),r._children=o,function s(a,l){for(let c of a)c.parent=l,s(c.children,c)}(t,r)}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 wp)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}},Rr=class i extends Dd{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new i(this.value)}},U2=class extends Dd{},vo=class i extends U2{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 lh?this._children[0]:void 0}clone(){let e=new i(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}},lh=class i extends Dd{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Rr&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let e=new i;return this.options.forEach(e.appendChild,e),e}},HA=class i extends Dd{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){let t=this,r=!1,n=e.replace(this.regexp,function(){return r=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!r&&this._children.some(o=>o instanceof Ks&&!!o.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(let r of this._children)if(r instanceof Ks){let n=e[r.index]||"";n=r.resolve(n),t+=n}else t+=r.toString();return t}toString(){return""}clone(){let e=new i;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}},Ks=class i extends Dd{constructor(e,t,r,n){super(),this.index=e,this.shorthandName=t,this.ifValue=r,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){let t=e.match(/[a-z0-9]+/gi);return t?t.map(r=>r.charAt(0).toUpperCase()+r.substr(1)).join(""):e}_toCamelCase(e){let t=e.match(/[a-z0-9]+/gi);return t?t.map((r,n)=>n===0?r.charAt(0).toLowerCase()+r.substr(1):r.charAt(0).toUpperCase()+r.substr(1)).join(""):e}clone(){return new i(this.index,this.shorthandName,this.ifValue,this.elseValue)}},_b=class i extends U2{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 Rr(t)],!0):!1}clone(){let e=new i(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}};wp=class i extends Dd{get placeholderInfo(){if(!this._placeholders){let e=[],t;this.walk(function(r){return r instanceof vo&&(e.push(r),t=!t||t.indexn===e?(r=!0,!1):(t+=n.len(),!0)),r?t:-1}fullLen(e){let t=0;return x$([e],r=>(t+=r.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:r}=e;for(;r;)r instanceof vo&&t.push(r),r=r.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof _b&&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(){let e=new i;return this._children=this.children.map(t=>t.clone()),e}walk(e){x$(this.children,e)}},jo=class{constructor(){this._scanner=new H2,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,r){let n=new wp;return this.parseFragment(e,n),this.ensureFinalTabstop(n,r!=null?r:!1,t!=null?t:!1),n}parseFragment(e,t){let r=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););let n=new Map,o=[];t.walk(l=>(l instanceof vo&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):o.push(l)),!0));let s=(l,c)=>{let d=n.get(l.index);if(!d)return;let u=new vo(l.index);u.transform=l.transform;for(let h of d){let f=h.clone();u.appendChild(f),f instanceof vo&&n.has(f.index)&&!c.has(f.index)&&(c.add(f.index),s(f,c),c.delete(f.index))}t.replace(l,[u])},a=new Set;for(let l of o)s(l,a);return t.children.slice(r)}ensureFinalTabstop(e,t,r){(t||r&&e.placeholders.length>0)&&(e.placeholders.find(o=>o.index===0)||e.appendChild(new vo(0)))}_accept(e,t){if(e===void 0||this._token.type===e){let r=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),r}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){let t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){let n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}let r=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),r}_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 Rr(t)),!0):!1}_parseTabstopOrVariableName(e){let t,r=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new vo(Number(t)):new _b(t)),!0):this._backTo(r)}_parseComplexPlaceholder(e){let t,r=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(r);let o=new vo(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new Rr("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else if(o.index>0&&this._accept(7)){let s=new lh;for(;;){if(this._parseChoiceElement(s)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(s),this._accept(4)))return e.appendChild(o),!0}return this._backTo(r),!1}}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(r),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(r)}_parseChoiceElement(e){let t=this._token,r=[];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;r.push(n)}return r.length===0?(this._backTo(t),!1):(e.appendChild(new Rr(r.join(""))),!0)}_parseComplexVariable(e){let t,r=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(r);let o=new _b(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new Rr("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(r),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(r)}_parseTransform(e){let t=new HA,r="",n="";for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(6,!0)||o,r+=o;continue}if(this._token.type!==14){r+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(5,!0)||this._accept(6,!0)||o,t.appendChild(new Rr(o));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(r,n)}catch(o){return!1}return e.transform=t,!0}_parseFormatString(e){let t=this._token;if(!this._accept(0))return!1;let r=!1;this._accept(3)&&(r=!0);let n=this._accept(8,!0);if(n)if(r){if(this._accept(4))return e.appendChild(new Ks(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Ks(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){let o=this._accept(9,!0);return!o||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Ks(Number(n),o)),!0)}else if(this._accept(11)){let o=this._until(4);if(o)return e.appendChild(new Ks(Number(n),void 0,o,void 0)),!0}else if(this._accept(12)){let o=this._until(4);if(o)return e.appendChild(new Ks(Number(n),void 0,void 0,o)),!0}else if(this._accept(13)){let o=this._until(1);if(o){let s=this._until(4);if(s)return e.appendChild(new Ks(Number(n),void 0,o,s)),!0}}else{let o=this._until(4);if(o)return e.appendChild(new Ks(Number(n),void 0,void 0,o)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Rr(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}});function S$(i,e,t,r,n=st.None,o){return UA(this,void 0,void 0,function*(){let s=S0e(e,t),a=i.all(t),l=new XF;for(let _ of a)_.groupId&&l.add(_.groupId,_);function c(_){if(!_.yieldsToGroupIds)return[];let E=[];for(let I of _.yieldsToGroupIds||[]){let N=l.get(I);for(let U of N)E.push(U)}return E}let d=new Map,u=new Set;function h(_,E){if(E=[...E,_],u.has(_))return E;u.add(_);try{let I=c(_);for(let N of I){let U=h(N,E);if(U)return U}}finally{u.delete(_)}}function f(_){let E=d.get(_);if(E)return E;let I=h(_,[]);I&&Xt(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${I.map(U=>U.toString?U.toString():""+U).join(" -> ")}`));let N=new f_;return d.set(_,N.p),(()=>UA(this,void 0,void 0,function*(){if(!I){let U=c(_);for(let z of U){let Y=yield f(z);if(Y&&Y.items.length>0)return}}try{return yield _.provideInlineCompletions(t,e,r,n)}catch(U){Xt(U);return}}))().then(U=>N.complete(U),U=>N.error(U)),N.p}let m=yield Promise.all(a.map(_=>UA(this,void 0,void 0,function*(){return{provider:_,completions:yield f(_)}}))),g=new Map,w=[];for(let _ of m){let E=_.completions;if(!E)continue;let I=new WA(E,_.provider);w.push(I);for(let N of E.items){let U=VA.from(N,I,s,t,o);g.set(U.hash(),U)}}return new jA(Array.from(g.values()),new Set(g.keys()),w)})}function S0e(i,e){let t=e.getWordAtPosition(i),r=e.getLineMaxColumn(i.lineNumber);return t?new B(i.lineNumber,t.startColumn,i.lineNumber,r):B.fromPositions(i,i.with(void 0,r))}function C$(i,e,t,r){let o=t.getLineContent(e.lineNumber).substring(0,e.column-1)+i,s=t.tokenization.tokenizeLineWithEdit(e,o.length-(e.column-1),i),a=s==null?void 0:s.sliceAndInflate(e.column-1,o.length,0);return a?y$(a,r):i}var UA,jA,WA,VA,k$=M(()=>{are();jt();ki();Xre();qt();et();w$();vp();ch();UA=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};jA=class{constructor(e,t,r){this.completions=e,this.hashs=t,this.providerResults=r}has(e){return this.hashs.has(e.hash())}dispose(){for(let e of this.providerResults)e.removeRef()}},WA=class{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)}},VA=class i{static from(e,t,r,n,o){let s,a,l=e.range?B.lift(e.range):r;if(typeof e.insertText=="string"){if(s=e.insertText,o&&e.completeBracketPairs){s=C$(s,l.getStartPosition(),n,o);let c=s.length-e.insertText.length;c!==0&&(l=new B(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+c))}a=void 0}else if("snippet"in e.insertText){let c=e.insertText.snippet.length;if(o&&e.completeBracketPairs){e.insertText.snippet=C$(e.insertText.snippet,l.getStartPosition(),n,o);let u=e.insertText.snippet.length-c;u!==0&&(l=new B(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+u))}let d=new jo().parse(e.insertText.snippet);d.children.length===1&&d.children[0]instanceof Rr?(s=d.children[0].value,a=void 0):(s=d.toString(),a={snippet:e.insertText.snippet,range:l})}else wP(e.insertText);return new i(s,e.command,l,s,a,e.additionalTextEdits||d$(),e,t)}constructor(e,t,r,n,o,s,a,l){this.filterText=e,this.command=t,this.range=r,this.insertText=n,this.snippetInfo=o,this.additionalTextEdits=s,this.sourceInlineCompletion=a,this.source=l,e=e.replace(/\r\n|\r/g,` +`)}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,r)=>t===e.newLines[r])&&this.additionalReservedLineCount===e.additionalReservedLineCount}}});function _0e(i,e,t,r,n){let o=r.get(32),s=r.get(115),a="none",l=r.get(92),c=r.get(50),d=r.get(49),u=r.get(65),h=new i_(1e4);h.appendString('
');for(let g=0,w=t.length;g');let L=$v(E),A=_P(E),O=YO.createEmpty(E,n);Y_(new G_(d.isMonospace&&!o,d.canUseHalfwidthRightwardsArrow,E,!1,L,A,0,O,_.decorations,e,0,d.spaceWidth,d.middotWidth,d.wsmiddotWidth,s,a,l,c!==eF.OFF,null),h),h.appendString("
")}h.appendString(""),L_(i,d);let f=h.build(),m=h$?h$.createHTML(f):f;i.innerHTML=m}var b0e,v0e,R2,RA,h$,f$=N(()=>{ck();ei();ke();wa();Ni();l$();uF();eg();di();et();zP();es();qc();Lre();$F();GF();N2();vp();b0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},v0e=function(i,e){return function(t,r){e(t,r,i)}},R2=class extends ce{constructor(e,t,r){super(),this.editor=e,this.model=t,this.languageService=r,this.isDisposed=ya("isDisposed",!1),this.currentTextModel=El(this.editor.onDidChangeModel,()=>this.editor.getModel()),this.uiState=No(n=>{if(this.isDisposed.read(n))return;let o=this.currentTextModel.read(n);if(o!==this.model.targetTextModel.read(n))return;let s=this.model.ghostText.read(n);if(!s)return;let a=s instanceof yp?s.columnRange:void 0,l=[],c=[];function d(g,w){if(c.length>0){let _=c[c.length-1];w&&_.decorations.push(new ag(_.content.length+1,_.content.length+1+g[0].length,w,0)),_.content+=g[0],g=g.slice(1)}for(let _ of g)c.push({content:_,decorations:w?[new ag(1,_.length+1,w,0)]:[]})}let u=o.getLineContent(s.lineNumber),h,f=0;for(let g of s.parts){let w=g.lines;h===void 0?(l.push({column:g.column,text:w[0],preview:g.preview}),w=w.slice(1)):d([u.substring(f,g.column-1)],void 0),w.length>0&&(d(w,"ghost-text"),h===void 0&&g.column<=u.length&&(h=g.column)),f=g.column-1}h!==void 0&&d([u.substring(f)],void 0);let m=h!==void 0?new M2(h,u.length+1):void 0;return{replacedRange:a,inlineTexts:l,additionalLines:c,hiddenRange:m,lineNumber:s.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(n),targetTextModel:o}}),this.decorations=No(n=>{let o=this.uiState.read(n);if(!o)return[];let s=[];o.replacedRange&&s.push({range:o.replacedRange.toRange(o.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),o.hiddenRange&&s.push({range:o.hiddenRange.toRange(o.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(let a of o.inlineTexts)s.push({range:B.fromPositions(new Ie(o.lineNumber,a.column)),options:{description:"ghost-text",after:{content:a.text,inlineClassName:a.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:bu.Left},showIfCollapsed:!0}});return s}),this.additionalLinesWidget=this._register(new RA(this.editor,this.languageService.languageIdCodec,No(n=>{let o=this.uiState.read(n);return o?{lineNumber:o.lineNumber,additionalLines:o.additionalLines,minReservedLineCount:o.additionalReservedLineCount,targetTextModel:o.targetTextModel}:void 0}))),this._register(ri(()=>{this.isDisposed.set(!0,void 0)})),this._register(u$(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};R2=b0e([v0e(2,er)],R2);RA=class extends ce{get viewZoneId(){return this._viewZoneId}constructor(e,t,r){super(),this.editor=e,this.languageIdCodec=t,this.lines=r,this._viewZoneId=void 0,this.editorOptionsChanged=VF("editorOptionChanged",ci.filter(this.editor.onDidChangeConfiguration,n=>n.hasChanged(32)||n.hasChanged(115)||n.hasChanged(97)||n.hasChanged(92)||n.hasChanged(50)||n.hasChanged(49)||n.hasChanged(65))),this._register(pn(n=>{let o=this.lines.read(n);this.editorOptionsChanged.read(n),o?this.updateLines(o.lineNumber,o.additionalLines,o.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,r){let n=this.editor.getModel();if(!n)return;let{tabSize:o}=n.getOptions();this.editor.changeViewZones(s=>{this._viewZoneId&&(s.removeZone(this._viewZoneId),this._viewZoneId=void 0);let a=Math.max(t.length,r);if(a>0){let l=document.createElement("div");_0e(l,o,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=s.addZone({afterLineNumber:e,heightInLines:a,domNode:l,afterColumnAffinity:1})}})}};h$=xf("editorGhostText",{createHTML:i=>i})});var p$=N(()=>{});var m$=N(()=>{p$()});var g$=N(()=>{});var b$=N(()=>{g$()});var y0e,P2,bb,v$=N(()=>{ng();Yre();Fc();Zr();An();ei();ke();b$();He();y0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},P2=class extends ce{constructor(e,t,r={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new W9),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new le),this.options=r,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new bb(()=>{var n;return(n=this.toggleMenuActionViewItem)===null||n===void 0?void 0:n.show()},r.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new Ls(this.element,{orientation:r.orientation,ariaLabel:r.ariaLabel,actionRunner:r.actionRunner,allowContextMenu:r.allowContextMenu,highlightToggledItems:r.highlightToggledItems,actionViewItemProvider:(n,o)=>{var s;if(n.id===bb.ID)return this.toggleMenuActionViewItem=new Ck(n,n.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:_t.asClassNameArray((s=r.moreIcon)!==null&&s!==void 0?s:pt.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(r.actionViewItemProvider){let a=r.actionViewItemProvider(n,o);if(a)return a}if(n instanceof Nm){let a=new Ck(n,n.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:n.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry});return a.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(a),this.disposables.add(this._onDidChangeDropdownVisibility.add(a.onDidChangeVisibility)),a}}}))}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();let r=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),r.push(this.toggleMenuAction)),r.forEach(n=>{this.actionBar.push(n,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(n)})})}getKeybindingLabel(e){var t,r,n;let o=this.lookupKeybindings?(r=(t=this.options).getKeyBinding)===null||r===void 0?void 0:r.call(t,e):void 0;return(n=o==null?void 0:o.getLabel())!==null&&n!==void 0?n:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}},bb=class i extends Qo{constructor(e,t){t=t||b("moreActions","More Actions..."),super(i.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return y0e(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}};bb.ID="toolbar.toggle.more"});var w0e,vb,O2,_$=N(()=>{Ht();J9();v$();Fc();mi();ke();He();Ji();wt();yl();jr();Bc();w0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},vb=function(i,e){return function(t,r){e(t,r,i)}},O2=class extends P2{constructor(e,t,r,n,o,s,a){super(e,o,Object.assign(Object.assign({getKeyBinding:c=>{var d;return(d=s.lookupKeybinding(c.id))!==null&&d!==void 0?d:void 0}},t),{allowContextMenu:!0,skipTelemetry:typeof(t==null?void 0:t.telemetrySource)=="string"})),this._options=t,this._menuService=r,this._contextKeyService=n,this._contextMenuService=o,this._sessionDisposables=this._store.add(new le);let l=t==null?void 0:t.telemetrySource;l&&this._store.add(this.actionBar.onDidRun(c=>a.publicLog2("workbenchActionExecuted",{id:c.action.id,from:l})))}setActions(e,t=[],r){var n,o,s;this._sessionDisposables.clear();let a=e.slice(),l=t.slice(),c=[],d=0,u=[],h=!1;if(((n=this._options)===null||n===void 0?void 0:n.hiddenItemStrategy)!==-1)for(let f=0;f=this._options.maxNumberOfItems&&(a[m]=void 0,u[m]=g)}}G3(a),G3(u),super.setActions(a,Cs.join(u,l)),c.length>0&&this._sessionDisposables.add(Lt(this.getElement(),"contextmenu",f=>{var m,g,w,_,E;let L=new Vv(f),A=this.getItemAction(L.target);if(!A)return;L.preventDefault(),L.stopPropagation();let O=!1;if(d===1&&((m=this._options)===null||m===void 0?void 0:m.hiddenItemStrategy)===0){O=!0;for(let oe=0;oethis._menuService.resetHiddenStates(r)}))),this._contextMenuService.showContextMenu({getAnchor:()=>L,getActions:()=>Y,menuId:(w=this._options)===null||w===void 0?void 0:w.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(_=this._options)===null||_===void 0?void 0:_.menuOptions),skipTelemetry:typeof((E=this._options)===null||E===void 0?void 0:E.telemetrySource)=="string",contextKeyService:this._contextKeyService})}))}};O2=w0e([vb(2,Ss),vb(3,it),vb(4,rs),vb(5,Kt),vb(6,Ln)],O2)});var zA,Vs,F2,z2,x0e,C0e,qs,PA,OA,FA,B2=N(()=>{Ht();gF();vF();Fc();mi();jt();Zr();ke();wa();Tn();An();m$();di();fn();L2();He();J_();_$();Ji();Vi();wt();yl();Ut();jr();Bc();Sl();zA=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vs=function(i,e){return function(t,r){e(t,r,i)}},z2=class extends ce{constructor(e,t,r){super(),this.editor=e,this.model=t,this.instantiationService=r,this.alwaysShowToolbar=El(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(61).showToolbar==="always"),this.sessionPosition=void 0,this.position=No(n=>{var o,s,a;let l=(o=this.model.read(n))===null||o===void 0?void 0:o.ghostText.read(n);if(!this.alwaysShowToolbar.read(n)||!l||l.parts.length===0)return this.sessionPosition=void 0,null;let c=l.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==l.lineNumber&&(this.sessionPosition=void 0);let d=new Ie(l.lineNumber,Math.min(c,(a=(s=this.sessionPosition)===null||s===void 0?void 0:s.column)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER));return this.sessionPosition=d,d}),this._register(WF((n,o)=>{let s=this.model.read(n);if(!s||!this.alwaysShowToolbar.read(n))return;let a=o.add(this.instantiationService.createInstance(qs,this.editor,!0,this.position,s.selectedInlineCompletionIndex,s.inlineCompletionsCount,s.selectedInlineCompletion.map(l=>{var c;return(c=l==null?void 0:l.inlineCompletion.source.inlineCompletions.commands)!==null&&c!==void 0?c:[]})));e.addContentWidget(a),o.add(ri(()=>e.removeContentWidget(a))),o.add(pn(l=>{this.position.read(l)&&s.lastTriggerKind.read(l)!==pa.Explicit&&s.triggerExplicitly()}))}))}};z2=zA([Vs(2,Ke)],z2);x0e=Pi("inline-suggestion-hints-next",pt.chevronRight,b("parameterHintsNextIcon","Icon for show next parameter hint.")),C0e=Pi("inline-suggestion-hints-previous",pt.chevronLeft,b("parameterHintsPreviousIcon","Icon for show previous parameter hint.")),qs=F2=class extends ce{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,r){let n=new Qo(e,t,r,!0,()=>this._commandService.executeCommand(e)),o=this.keybindingService.lookupKeybinding(e,this._contextKeyService),s=t;return o&&(s=b({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,o.getLabel())),n.tooltip=s,n}constructor(e,t,r,n,o,s,a,l,c,d,u){super(),this.editor=e,this.withBorder=t,this._position=r,this._currentSuggestionIdx=n,this._suggestionCount=o,this._extraCommands=s,this._commandService=a,this.keybindingService=c,this._contextKeyService=d,this._menuService=u,this.id=`InlineSuggestionHintsContentWidget${F2.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=Kv("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[Kv("div@toolBar")]),this.previousAction=this.createCommandAction(I2,b("previous","Previous"),_t.asClassName(C0e)),this.availableSuggestionCountAction=new Qo("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(A2,b("next","Next"),_t.asClassName(x0e)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(Me.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new ui(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new ui(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100)),this.lastCommands=[],this.toolBar=this._register(l.createInstance(FA,this.nodes.toolBar,Me.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:h=>h.startsWith("primary")},actionViewItemProvider:(h,f)=>{if(h instanceof na)return l.createInstance(OA,h,void 0);if(h===this.availableSuggestionCountAction){let m=new PA(void 0,h,{label:!0,icon:!1});return m.setClass("availableSuggestionCount"),m}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility(h=>{F2._dropDownVisible=h})),this._register(pn(h=>{this._position.read(h),this.editor.layoutContentWidget(this)})),this._register(pn(h=>{let f=this._suggestionCount.read(h),m=this._currentSuggestionIdx.read(h);f!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${m+1}/${f}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),f!==void 0&&f>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()})),this._register(pn(h=>{let f=this._extraCommands.read(h);if(ks(this.lastCommands,f))return;this.lastCommands=f;let m=f.map(g=>({class:void 0,id:g.id,enabled:!0,tooltip:g.tooltip||"",label:g.title,run:w=>this._commandService.executeCommand(g.id)}));for(let[g,w]of this.inlineCompletionsActionsMenus.getActions())for(let _ of w)_ instanceof na&&m.push(_);m.length>0&&m.unshift(new Cs),this.toolBar.setAdditionalSecondaryActions(m)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};qs._dropDownVisible=!1;qs.id=0;qs=F2=zA([Vs(6,_i),Vs(7,Ke),Vs(8,Kt),Vs(9,it),Vs(10,Ss)],qs);PA=class extends rg{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}},OA=class extends Z_{updateLabel(){let e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){let t=Kv("div.keybinding").root;new P_(t,jv,Object.assign({disableTitle:!0},bF)).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},FA=class extends O2{constructor(e,t,r,n,o,s,a,l){super(e,Object.assign({resetMenu:t},r),n,o,s,a,l),this.menuId=t,this.options2=r,this.menuService=n,this.contextKeyService=o,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,r,n,o,s,a;let l=[],c=[];Q_(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:c},(r=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||r===void 0?void 0:r.primaryGroup,(o=(n=this.options2)===null||n===void 0?void 0:n.toolbarOptions)===null||o===void 0?void 0:o.shouldInlineSubmenu,(a=(s=this.options2)===null||s===void 0?void 0:s.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),c.push(...this.additionalActions),l.unshift(...this.prependedPrimaryActions),this.setActions(l,c)}setPrependedPrimaryActions(e){ks(this.prependedPrimaryActions,e,(t,r)=>t===r)||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){ks(this.additionalActions,e,(t,r)=>t===r)||(this.additionalActions=e,this.updateToolbar())}};FA=zA([Vs(3,Ss),Vs(4,it),Vs(5,rs),Vs(6,Kt),Vs(7,Ln)],FA)});function y$(i,e){let t=new sO,r=new lO(t,c=>e.getLanguageConfiguration(c)),n=new aO(new BA([i]),r),o=cO(n,[],void 0,!0),s="",a=i.getLineContent();function l(c,d){if(c.kind===2)if(l(c.openingBracket,d),d=pf(d,c.openingBracket.length),c.child&&(l(c.child,d),d=pf(d,c.child.length)),c.closingBracket)l(c.closingBracket,d),d=pf(d,c.closingBracket.length);else{let h=r.getSingleLanguageBracketTokens(c.openingBracket.languageId).findClosingTokenText(c.openingBracket.bracketIds);s+=h}else if(c.kind!==3){if(c.kind===0||c.kind===1)s+=a.substring(d,pf(d,c.length));else if(c.kind===4)for(let u of c.children)l(u,d),d=pf(d,u.length)}}return l(o,oO),s}var BA,w$=N(()=>{kre();wre();Ere();xre();Sre();BA=class{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}}});function x$(i,e){let t=[...i];for(;t.length>0;){let r=t.shift();if(!e(r))break;t.unshift(...r.children)}}var H2,Dd,Rr,U2,vo,lh,HA,Ks,_b,wp,jo,ch=N(()=>{H2=class i{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};let e=this.pos,t=0,r=this.value.charCodeAt(e),n;if(n=i._table[r],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(i.isDigitCharacter(r)){n=8;do t+=1,r=this.value.charCodeAt(e+t);while(i.isDigitCharacter(r));return this.pos+=t,{type:n,pos:e,len:t}}if(i.isVariableCharacter(r)){n=9;do r=this.value.charCodeAt(e+ ++t);while(i.isVariableCharacter(r)||i.isDigitCharacter(r));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,r=this.value.charCodeAt(e+t);while(!isNaN(r)&&typeof i._table[r]=="undefined"&&!i.isDigitCharacter(r)&&!i.isVariableCharacter(r));return this.pos+=t,{type:n,pos:e,len:t}}};H2._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};Dd=class{constructor(){this._children=[]}appendChild(e){return e instanceof Rr&&this._children[this._children.length-1]instanceof Rr?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){let{parent:r}=e,n=r.children.indexOf(e),o=r.children.slice(0);o.splice(n,1,...t),r._children=o,function s(a,l){for(let c of a)c.parent=l,s(c.children,c)}(t,r)}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 wp)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}},Rr=class i extends Dd{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new i(this.value)}},U2=class extends Dd{},vo=class i extends U2{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 lh?this._children[0]:void 0}clone(){let e=new i(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}},lh=class i extends Dd{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Rr&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let e=new i;return this.options.forEach(e.appendChild,e),e}},HA=class i extends Dd{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){let t=this,r=!1,n=e.replace(this.regexp,function(){return r=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!r&&this._children.some(o=>o instanceof Ks&&!!o.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(let r of this._children)if(r instanceof Ks){let n=e[r.index]||"";n=r.resolve(n),t+=n}else t+=r.toString();return t}toString(){return""}clone(){let e=new i;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}},Ks=class i extends Dd{constructor(e,t,r,n){super(),this.index=e,this.shorthandName=t,this.ifValue=r,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){let t=e.match(/[a-z0-9]+/gi);return t?t.map(r=>r.charAt(0).toUpperCase()+r.substr(1)).join(""):e}_toCamelCase(e){let t=e.match(/[a-z0-9]+/gi);return t?t.map((r,n)=>n===0?r.charAt(0).toLowerCase()+r.substr(1):r.charAt(0).toUpperCase()+r.substr(1)).join(""):e}clone(){return new i(this.index,this.shorthandName,this.ifValue,this.elseValue)}},_b=class i extends U2{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 Rr(t)],!0):!1}clone(){let e=new i(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}};wp=class i extends Dd{get placeholderInfo(){if(!this._placeholders){let e=[],t;this.walk(function(r){return r instanceof vo&&(e.push(r),t=!t||t.indexn===e?(r=!0,!1):(t+=n.len(),!0)),r?t:-1}fullLen(e){let t=0;return x$([e],r=>(t+=r.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:r}=e;for(;r;)r instanceof vo&&t.push(r),r=r.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof _b&&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(){let e=new i;return this._children=this.children.map(t=>t.clone()),e}walk(e){x$(this.children,e)}},jo=class{constructor(){this._scanner=new H2,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,r){let n=new wp;return this.parseFragment(e,n),this.ensureFinalTabstop(n,r!=null?r:!1,t!=null?t:!1),n}parseFragment(e,t){let r=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););let n=new Map,o=[];t.walk(l=>(l instanceof vo&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):o.push(l)),!0));let s=(l,c)=>{let d=n.get(l.index);if(!d)return;let u=new vo(l.index);u.transform=l.transform;for(let h of d){let f=h.clone();u.appendChild(f),f instanceof vo&&n.has(f.index)&&!c.has(f.index)&&(c.add(f.index),s(f,c),c.delete(f.index))}t.replace(l,[u])},a=new Set;for(let l of o)s(l,a);return t.children.slice(r)}ensureFinalTabstop(e,t,r){(t||r&&e.placeholders.length>0)&&(e.placeholders.find(o=>o.index===0)||e.appendChild(new vo(0)))}_accept(e,t){if(e===void 0||this._token.type===e){let r=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),r}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){let t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){let n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}let r=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),r}_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 Rr(t)),!0):!1}_parseTabstopOrVariableName(e){let t,r=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new vo(Number(t)):new _b(t)),!0):this._backTo(r)}_parseComplexPlaceholder(e){let t,r=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(r);let o=new vo(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new Rr("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else if(o.index>0&&this._accept(7)){let s=new lh;for(;;){if(this._parseChoiceElement(s)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(s),this._accept(4)))return e.appendChild(o),!0}return this._backTo(r),!1}}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(r),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(r)}_parseChoiceElement(e){let t=this._token,r=[];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;r.push(n)}return r.length===0?(this._backTo(t),!1):(e.appendChild(new Rr(r.join(""))),!0)}_parseComplexVariable(e){let t,r=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(r);let o=new _b(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new Rr("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(r),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(r)}_parseTransform(e){let t=new HA,r="",n="";for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(6,!0)||o,r+=o;continue}if(this._token.type!==14){r+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(5,!0)||this._accept(6,!0)||o,t.appendChild(new Rr(o));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(r,n)}catch(o){return!1}return e.transform=t,!0}_parseFormatString(e){let t=this._token;if(!this._accept(0))return!1;let r=!1;this._accept(3)&&(r=!0);let n=this._accept(8,!0);if(n)if(r){if(this._accept(4))return e.appendChild(new Ks(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Ks(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){let o=this._accept(9,!0);return!o||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Ks(Number(n),o)),!0)}else if(this._accept(11)){let o=this._until(4);if(o)return e.appendChild(new Ks(Number(n),void 0,o,void 0)),!0}else if(this._accept(12)){let o=this._until(4);if(o)return e.appendChild(new Ks(Number(n),void 0,void 0,o)),!0}else if(this._accept(13)){let o=this._until(1);if(o){let s=this._until(4);if(s)return e.appendChild(new Ks(Number(n),void 0,o,s)),!0}}else{let o=this._until(4);if(o)return e.appendChild(new Ks(Number(n),void 0,void 0,o)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Rr(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}});function S$(i,e,t,r,n=st.None,o){return UA(this,void 0,void 0,function*(){let s=S0e(e,t),a=i.all(t),l=new XF;for(let _ of a)_.groupId&&l.add(_.groupId,_);function c(_){if(!_.yieldsToGroupIds)return[];let E=[];for(let L of _.yieldsToGroupIds||[]){let A=l.get(L);for(let O of A)E.push(O)}return E}let d=new Map,u=new Set;function h(_,E){if(E=[...E,_],u.has(_))return E;u.add(_);try{let L=c(_);for(let A of L){let O=h(A,E);if(O)return O}}finally{u.delete(_)}}function f(_){let E=d.get(_);if(E)return E;let L=h(_,[]);L&&Xt(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${L.map(O=>O.toString?O.toString():""+O).join(" -> ")}`));let A=new f_;return d.set(_,A.p),(()=>UA(this,void 0,void 0,function*(){if(!L){let O=c(_);for(let U of O){let Y=yield f(U);if(Y&&Y.items.length>0)return}}try{return yield _.provideInlineCompletions(t,e,r,n)}catch(O){Xt(O);return}}))().then(O=>A.complete(O),O=>A.error(O)),A.p}let m=yield Promise.all(a.map(_=>UA(this,void 0,void 0,function*(){return{provider:_,completions:yield f(_)}}))),g=new Map,w=[];for(let _ of m){let E=_.completions;if(!E)continue;let L=new WA(E,_.provider);w.push(L);for(let A of E.items){let O=VA.from(A,L,s,t,o);g.set(O.hash(),O)}}return new jA(Array.from(g.values()),new Set(g.keys()),w)})}function S0e(i,e){let t=e.getWordAtPosition(i),r=e.getLineMaxColumn(i.lineNumber);return t?new B(i.lineNumber,t.startColumn,i.lineNumber,r):B.fromPositions(i,i.with(void 0,r))}function C$(i,e,t,r){let o=t.getLineContent(e.lineNumber).substring(0,e.column-1)+i,s=t.tokenization.tokenizeLineWithEdit(e,o.length-(e.column-1),i),a=s==null?void 0:s.sliceAndInflate(e.column-1,o.length,0);return a?y$(a,r):i}var UA,jA,WA,VA,k$=N(()=>{are();jt();ki();Xre();qt();et();w$();vp();ch();UA=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};jA=class{constructor(e,t,r){this.completions=e,this.hashs=t,this.providerResults=r}has(e){return this.hashs.has(e.hash())}dispose(){for(let e of this.providerResults)e.removeRef()}},WA=class{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)}},VA=class i{static from(e,t,r,n,o){let s,a,l=e.range?B.lift(e.range):r;if(typeof e.insertText=="string"){if(s=e.insertText,o&&e.completeBracketPairs){s=C$(s,l.getStartPosition(),n,o);let c=s.length-e.insertText.length;c!==0&&(l=new B(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+c))}a=void 0}else if("snippet"in e.insertText){let c=e.insertText.snippet.length;if(o&&e.completeBracketPairs){e.insertText.snippet=C$(e.insertText.snippet,l.getStartPosition(),n,o);let u=e.insertText.snippet.length-c;u!==0&&(l=new B(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+u))}let d=new jo().parse(e.insertText.snippet);d.children.length===1&&d.children[0]instanceof Rr?(s=d.children[0].value,a=void 0):(s=d.toString(),a={snippet:e.insertText.snippet,range:l})}else wP(e.insertText);return new i(s,e.command,l,s,a,e.additionalTextEdits||d$(),e,t)}constructor(e,t,r,n,o,s,a,l){this.filterText=e,this.command=t,this.range=r,this.insertText=n,this.snippetInfo=o,this.additionalTextEdits=s,this.sourceInlineCompletion=a,this.source=l,e=e.replace(/\r\n|\r/g,` `),n=e.replace(/\r\n|\r/g,` -`)}withRange(e){return new i(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 k0e(i,e){return e.getStartPosition().equals(i.getStartPosition())&&e.getEndPosition().isBeforeOrEqual(i.getEndPosition())}function E0e(i,e){if(($a==null?void 0:$a.originalValue)===i&&($a==null?void 0:$a.newValue)===e)return $a==null?void 0:$a.changes;{let t=T$(i,e,!0);if(t){let r=E$(t);if(r>0){let n=T$(i,e,!1);n&&E$(n)5e3||e.length>5e3)return;function r(c){let d=0;for(let u=0,h=c.length;ud&&(d=f)}return d}let n=Math.max(r(i),r(e));function o(c){if(c<0)throw new Error("unexpected");return n+c+1}function s(c){let d=0,u=0,h=new Int32Array(c.length);for(let f=0,m=c.length;fa},{getElements:()=>l}).ComputeDiff(!1).changes}var dh,$a,qA=M(()=>{Qre();Ni();et();N2();vp();dh=class i{constructor(e,t){this.range=e,this.text=t}removeCommonPrefix(e,t){let r=t?this.range.intersectRanges(t):this.range;if(!r)return this;let n=e.getValueInRange(r,1),o=zc(n,this.text),s=mb(this.range.getStartPosition(),gb(n.substring(0,o))),a=this.text.substring(o),l=B.fromPositions(s,this.range.getEndPosition());return new i(l,a)}augments(e){return this.text.startsWith(e.text)&&k0e(this.range,e.range)}computeGhostText(e,t,r,n=0){let o=this.removeCommonPrefix(e);if(o.range.endLineNumber!==o.range.startLineNumber)return;let s=e.getLineContent(o.range.startLineNumber),a=qi(s).length;if(o.range.startColumn-1<=a){let m=qi(o.text).length,g=s.substring(o.range.startColumn-1,a),[w,_]=[o.range.getStartPosition(),o.range.getEndPosition()],E=w.column+g.length<=_.column?w.delta(0,g.length):_,I=B.fromPositions(E,_),N=o.text.startsWith(g)?o.text.substring(g.length):o.text.substring(m);o=new i(I,N)}let c=e.getValueInRange(o.range),d=E0e(c,o.text);if(!d)return;let u=o.range.startLineNumber,h=new Array;if(t==="prefix"){let m=d.filter(g=>g.originalLength===0);if(m.length>1||m.length===1&&m[0].originalStart!==c.length)return}let f=o.text.length-n;for(let m of d){let g=o.range.startColumn+m.originalStart+m.originalLength;if(t==="subwordSmart"&&r&&r.lineNumber===o.range.startLineNumber&&g0)return;if(m.modifiedLength===0)continue;let w=m.modifiedStart+m.modifiedLength,_=Math.max(m.modifiedStart,Math.min(w,f)),E=o.text.substring(m.modifiedStart,_),I=o.text.substring(_,Math.max(m.modifiedStart,w));if(E.length>0){let N=hu(E);h.push(new _p(g,N,!1))}if(I.length>0){let N=hu(I);h.push(new _p(g,N,!0))}}return new Ld(u,h)}}});function A0e(i,e){return new Promise(t=>{let r,n=setTimeout(()=>{r&&r.dispose(),t()},i);e&&(r=e.onCancellationRequested(()=>{clearTimeout(n),r&&r.dispose(),t()}))})}function L0e(i,e,t){return!i||!e?i===e:t(i,e)}function A$(i){return i.startLineNumber===i.endLineNumber?new Ie(1,1+i.endColumn-i.startColumn):new Ie(1+i.endLineNumber-i.startLineNumber,i.endColumn)}var T0e,I$,I0e,j2,KA,$A,GA,W2,L$=M(()=>{ki();pl();ke();wa();di();fn();Hr();Pt();k$();qA();T0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},I$=function(i,e){return function(t,r){e(t,r,i)}},I0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},j2=class extends ce{constructor(e,t,r,n,o){super(),this.textModel=e,this.versionId=t,this._debounceValue=r,this.languageFeaturesService=n,this.languageConfigurationService=o,this._updateOperation=this._register(new Wi),this.inlineCompletions=sg("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=sg("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent(()=>{this._updateOperation.clear()}))}fetch(e,t,r){var n,o;let s=new KA(e,t,this.textModel.getVersionId()),a=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(!((n=this._updateOperation.value)===null||n===void 0)&&n.request.satisfies(s))return this._updateOperation.value.promise;if(!((o=a.get())===null||o===void 0)&&o.request.satisfies(s))return Promise.resolve(!0);let l=!!this._updateOperation.value;this._updateOperation.clear();let c=new zi,d=(()=>I0e(this,void 0,void 0,function*(){if((l||t.triggerKind===pa.Automatic)&&(yield A0e(this._debounceValue.get(this.textModel))),c.token.isCancellationRequested||this.textModel.getVersionId()!==s.versionId)return!1;let f=new Date,m=yield S$(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,c.token,this.languageConfigurationService);if(c.token.isCancellationRequested||this.textModel.getVersionId()!==s.versionId)return!1;let g=new Date;this._debounceValue.update(this.textModel,g.getTime()-f.getTime());let w=new GA(m,s,this.textModel,this.versionId);if(r){let _=r.toInlineCompletion(void 0);r.canBeReused(this.textModel,e)&&!m.has(_)&&w.prepend(r.inlineCompletion,_.range,!0)}return this._updateOperation.clear(),on(_=>{a.set(w,_)}),!0}))(),u=new $A(s,c,d);return this._updateOperation.value=u,d}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()}};j2=T0e([I$(3,Se),I$(4,Ot)],j2);KA=class{constructor(e,t,r){this.position=e,this.context=t,this.versionId=r}satisfies(e){return this.position.equals(e.position)&&L0e(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,(t,r)=>t.equals(r))&&(e.context.triggerKind===pa.Automatic||this.context.triggerKind===pa.Explicit)&&this.versionId===e.versionId}};$A=class{constructor(e,t,r){this.request=e,this.cancellationTokenSource=t,this.promise=r}dispose(){this.cancellationTokenSource.cancel()}},GA=class{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,r,n){this.inlineCompletionProviderResult=e,this.request=t,this.textModel=r,this.versionId=n,this._refCount=1,this._prependedInlineCompletionItems=[],this._rangeVersionIdValue=0,this._rangeVersionId=No(s=>{this.versionId.read(s);let a=!1;for(let l of this._inlineCompletions)a=a||l._updateRange(this.textModel);return a&&this._rangeVersionIdValue++,this._rangeVersionIdValue});let o=r.deltaDecorations([],e.completions.map(s=>({range:s.range,options:{description:"inline-completion-tracking-range"}})));this._inlineCompletions=e.completions.map((s,a)=>new W2(s,o[a],this._rangeVersionId))}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(let e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,r){r&&e.source.addRef();let n=this.textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new W2(e,n,this._rangeVersionId,t)),this._prependedInlineCompletionItems.push(e)}},W2=class{get forwardStable(){var e;return(e=this.inlineCompletion.source.inlineCompletions.enableForwardStability)!==null&&e!==void 0?e:!1}constructor(e,t,r,n){this.inlineCompletion=e,this.decorationId=t,this.rangeVersion=r,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._isValid=!0,this._updatedRange=n!=null?n:e.range}toInlineCompletion(e){return this.inlineCompletion.withRange(this._getUpdatedRange(e))}toSingleTextEdit(e){return new dh(this._getUpdatedRange(e),this.inlineCompletion.insertText)}isVisible(e,t,r){let n=this._toFilterTextReplacement(r).removeCommonPrefix(e);if(!this._isValid||!this.inlineCompletion.range.getStartPosition().equals(this._getUpdatedRange(r).getStartPosition())||t.lineNumber!==n.range.startLineNumber)return!1;let o=e.getValueInRange(n.range,1).toLowerCase(),s=n.text.toLowerCase(),a=Math.max(0,t.column-n.range.startColumn),l=s.substring(0,a),c=s.substring(a),d=o.substring(0,a),u=o.substring(a),h=e.getLineIndentColumn(n.range.startLineNumber);return n.range.startColumn<=h&&(d=d.trimStart(),d.length===0&&(u=u.trimStart()),l=l.trimStart(),l.length===0&&(c=c.trimStart())),l.startsWith(d)&&!!VP(u,c)}canBeReused(e,t){return this._isValid&&this._getUpdatedRange(void 0).containsPosition(t)&&this.isVisible(e,t,void 0)&&!this._isSmallerThanOriginal(void 0)}_toFilterTextReplacement(e){return new dh(this._getUpdatedRange(e),this.inlineCompletion.filterText)}_isSmallerThanOriginal(e){return A$(this._getUpdatedRange(e)).isBefore(A$(this.inlineCompletion.range))}_getUpdatedRange(e){return this.rangeVersion.read(e),this._updatedRange}_updateRange(e){let t=e.getDecorationRange(this.decorationId);return t?this._updatedRange.equalsRange(t)?!1:(this._updatedRange=t,!0):(this._isValid=!1,!0)}}});function D$(){return xp}function wb(i,e,t,r=nc.default,n={triggerKind:0},o=st.None){return yb(this,void 0,void 0,function*(){let s=new mr;t=t.clone();let a=e.getWordAtPosition(t),l=a?new B(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):B.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],u=new ae,h=[],f=!1,m=(w,_,E)=>{var I,N,U;let z=!1;if(!_)return z;for(let Y of _.suggestions)if(!r.kindFilter.has(Y.kind)){if(!r.showDeprecated&&(!((I=Y==null?void 0:Y.tags)===null||I===void 0)&&I.includes(1)))continue;Y.range||(Y.range=c),Y.sortText||(Y.sortText=typeof Y.label=="string"?Y.label:Y.label.label),!f&&Y.insertTextRules&&Y.insertTextRules&4&&(f=jo.guessNeedsClipboard(Y.insertText)),d.push(new YA(t,Y,_,w)),z=!0}return Fv(_)&&u.add(_),h.push({providerName:(N=w._debugDisplayName)!==null&&N!==void 0?N:"unknown_provider",elapsedProvider:(U=_.duration)!==null&&U!==void 0?U:-1,elapsedOverall:E.elapsed()}),z},g=(()=>yb(this,void 0,void 0,function*(){if(!xp||r.kindFilter.has(27))return;let w=r.providerItemsToReuse.get(xp);if(w){w.forEach(I=>d.push(I));return}if(r.providerFilter.size>0&&!r.providerFilter.has(xp))return;let _=new mr,E=yield xp.provideCompletionItems(e,t,n,o);m(xp,E,_)}))();for(let w of i.orderedGroups(e)){let _=!1;if(yield Promise.all(w.map(E=>yb(this,void 0,void 0,function*(){if(r.providerItemsToReuse.has(E)){let I=r.providerItemsToReuse.get(E);I.forEach(N=>d.push(N)),_=_||I.length>0;return}if(!(r.providerFilter.size>0&&!r.providerFilter.has(E)))try{let I=new mr,N=yield E.provideCompletionItems(e,t,n,o);_=m(E,N,I)||_}catch(I){Xt(I)}}))),_||o.isCancellationRequested)break}return yield g,o.isCancellationRequested?(u.dispose(),Promise.reject(new Pv)):new XA(d.sort(N0e(r.snippetSortOrder)),f,{entries:h,elapsed:s.elapsed()},u)})}function QA(i,e){if(i.sortTextLow&&e.sortTextLow){if(i.sortTextLowe.sortTextLow)return 1}return i.textLabele.textLabel?1:i.completion.kind-e.completion.kind}function D0e(i,e){if(i.completion.kind!==e.completion.kind){if(i.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return QA(i,e)}function M0e(i,e){if(i.completion.kind!==e.completion.kind){if(i.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return QA(i,e)}function N0e(i){return V2.get(i)}function M$(i,e){var t;(t=i.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}var yb,ct,Ya,YA,nc,xp,XA,V2,Ga,uh=M(()=>{ki();qt();pl();ke();al();zr();Ir();di();et();ra();ch();He();Ji();Vi();wt();Pt();BI();yb=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},ct={Visible:b2,HasFocusedSuggestion:new ht("suggestWidgetHasFocusedSuggestion",!1,b("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new ht("suggestWidgetDetailsVisible",!1,b("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new ht("suggestWidgetMultipleSuggestions",!1,b("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new ht("suggestionMakesTextEdit",!0,b("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new ht("acceptSuggestionOnEnter",!0,b("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new ht("suggestionHasInsertAndReplaceRange",!1,b("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new ht("suggestionInsertMode",void 0,{type:"string",description:b("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new ht("suggestionCanResolve",!1,b("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},Ya=new Me("suggestWidgetStatusBar"),YA=class{constructor(e,t,r,n){var o;this.position=e,this.completion=t,this.container=r,this.provider=n,this.isInvalid=!1,this.score=fl.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:(o=t.label)===null||o===void 0?void 0:o.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,B.isIRange(t.range)?(this.editStart=new Ie(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new Ie(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new Ie(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||B.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new Ie(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new Ie(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new Ie(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||B.spansMultipleLines(t.range.insert)||B.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}resolve(e){return yb(this,void 0,void 0,function*(){if(!this._resolveCache){let t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._resolveDuration=void 0}),r=new mr(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(n=>{Object.assign(this.completion,n),this._resolveDuration=r.elapsed(),t.dispose()},n=>{Yo(n)&&(this._resolveCache=void 0,this._resolveDuration=void 0)})}return this._resolveCache})}},nc=class{constructor(e=2,t=new Set,r=new Set,n=new Map,o=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=r,this.providerItemsToReuse=n,this.showDeprecated=o}};nc.default=new nc;XA=class{constructor(e,t,r,n){this.items=e,this.needsClipboard=t,this.durations=r,this.disposable=n}};V2=new Map;V2.set(0,D0e);V2.set(2,M0e);V2.set(1,QA);Dt.registerCommand("_executeCompletionItemProvider",(i,...e)=>yb(void 0,void 0,void 0,function*(){let[t,r,n,o]=e;Bt(yt.isUri(t)),Bt(Ie.isIPosition(r)),Bt(typeof n=="string"||!n),Bt(typeof o=="number"||!o);let{completionProvider:s}=i.get(Se),a=yield i.get(Cr).createModelReference(t);try{let l={incomplete:!1,suggestions:[]},c=[],d=a.object.textEditorModel.validatePosition(r),u=yield wb(s,a.object.textEditorModel,d,void 0,{triggerCharacter:n!=null?n:void 0,triggerKind:n?1:0});for(let h of u.items)c.length<(o!=null?o:0)&&c.push(h.resolve(st.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>u.disposable.dispose(),100)}}finally{a.dispose()}}));Ga=class{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}}}});var N$=M(()=>{});var R$=M(()=>{N$()});function ZA(i,e=Rc){return YP(i,e)?i.charAt(0).toUpperCase()+i.slice(1):i}var P$=M(()=>{_re();Tn()});var R0e,P0e,mYe,xb,Cb,Sb,kb,Eb,oc,Tb,Ib,O$=M(()=>{P$();tP();Lo();Ni();H0();Hr();ch();He();U_();R0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},P0e=function(i,e){return function(t,r){e(t,r,i)}},mYe=Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,CURRENT_TIMEZONE_OFFSET:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0}),xb=class{constructor(e){this._delegates=e}resolve(e){for(let t of this._delegates){let r=t.resolve(e);if(r!==void 0)return r}}},Cb=class{constructor(e,t,r,n){this._model=e,this._selection=t,this._selectionIdx=r,this._overtypingCapturer=n}resolve(e){let{name:t}=e;if(t==="SELECTION"||t==="TM_SELECTED_TEXT"){let r=this._model.getValueInRange(this._selection)||void 0,n=this._selection.startLineNumber!==this._selection.endLineNumber;if(!r&&this._overtypingCapturer){let o=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);o&&(r=o.value,n=o.multiline)}if(r&&n&&e.snippet){let o=this._model.getLineContent(this._selection.startLineNumber),s=qi(o,0,this._selection.startColumn-1),a=s;e.snippet.walk(c=>c===e?!1:(c instanceof Rr&&(a=qi(hu(c.value).pop())),!0));let l=zc(a,s);r=r.replace(/(\r\n|\r|\n)(.*)/g,(c,d,u)=>`${d}${a.substr(l)}${u}`)}return r}else{if(t==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(t==="TM_CURRENT_WORD"){let r=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return r&&r.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)}}}},Sb=class{constructor(e,t){this._labelService=e,this._model=t}resolve(e){let{name:t}=e;if(t==="TM_FILENAME")return ef(this._model.uri.fsPath);if(t==="TM_FILENAME_BASE"){let r=ef(this._model.uri.fsPath),n=r.lastIndexOf(".");return n<=0?r:r.slice(0,n)}else{if(t==="TM_DIRECTORY")return eP(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(uf(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})}}},kb=class{constructor(e,t,r,n){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=r,this._spread=n}resolve(e){if(e.name!=="CLIPBOARD")return;let t=this._readClipboardText();if(t){if(this._spread){let r=t.split(/\r\n|\n|\r/).filter(n=>!hP(n));if(r.length===this._selectionCount)return r[this._selectionIdx]}return t}}},Eb=class{constructor(e,t,r){this._model=e,this._selection=t,this._languageConfigurationService=r}resolve(e){let{name:t}=e,r=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),n=this._languageConfigurationService.getLanguageConfiguration(r).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}}};Eb=R0e([P0e(2,Ot)],Eb);oc=class i{constructor(){this._date=new Date}resolve(e){let{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 i.dayNames[this._date.getDay()];if(t==="CURRENT_DAY_NAME_SHORT")return i.dayNamesShort[this._date.getDay()];if(t==="CURRENT_MONTH_NAME")return i.monthNames[this._date.getMonth()];if(t==="CURRENT_MONTH_NAME_SHORT")return i.monthNamesShort[this._date.getMonth()];if(t==="CURRENT_SECONDS_UNIX")return String(Math.floor(this._date.getTime()/1e3));if(t==="CURRENT_TIMEZONE_OFFSET"){let r=this._date.getTimezoneOffset(),n=r>0?"-":"+",o=Math.trunc(Math.abs(r/60)),s=o<10?"0"+o:o,a=Math.abs(r)-o*60,l=a<10?"0"+a:a;return n+s+":"+l}}};oc.dayNames=[b("Sunday","Sunday"),b("Monday","Monday"),b("Tuesday","Tuesday"),b("Wednesday","Wednesday"),b("Thursday","Thursday"),b("Friday","Friday"),b("Saturday","Saturday")];oc.dayNamesShort=[b("SundayShort","Sun"),b("MondayShort","Mon"),b("TuesdayShort","Tue"),b("WednesdayShort","Wed"),b("ThursdayShort","Thu"),b("FridayShort","Fri"),b("SaturdayShort","Sat")];oc.monthNames=[b("January","January"),b("February","February"),b("March","March"),b("April","April"),b("May","May"),b("June","June"),b("July","July"),b("August","August"),b("September","September"),b("October","October"),b("November","November"),b("December","December")];oc.monthNamesShort=[b("JanuaryShort","Jan"),b("FebruaryShort","Feb"),b("MarchShort","Mar"),b("AprilShort","Apr"),b("MayShort","May"),b("JuneShort","Jun"),b("JulyShort","Jul"),b("AugustShort","Aug"),b("SeptemberShort","Sep"),b("OctoberShort","Oct"),b("NovemberShort","Nov"),b("DecemberShort","Dec")];Tb=class{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;let t=TF(this._workspaceService.getWorkspace());if(!EF(t)){if(e.name==="WORKSPACE_NAME")return this._resolveWorkspaceName(t);if(e.name==="WORKSPACE_FOLDER")return this._resoveWorkspacePath(t)}}_resolveWorkspaceName(e){if(pk(e))return ef(e.uri.path);let t=ef(e.configPath.path);return t.endsWith(mk)&&(t=t.substr(0,t.length-mk.length-1)),t}_resoveWorkspacePath(e){if(pk(e))return ZA(e.uri.fsPath);let t=ef(e.configPath.path),r=e.configPath.fsPath;return r.endsWith(t)&&(r=r.substr(0,r.length-t.length-1)),r?ZA(r):"/"}},Ib=class{resolve(e){let{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 Td()}}});var O0e,F0e,$s,Ab,F$,Cp,JA=M(()=>{mi();ke();Ni();R$();_a();et();Ar();Hr();Ur();ey();U_();ch();O$();O0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},F0e=function(i,e){return function(t,r){e(t,r,i)}},Ab=class i{constructor(e,t,r){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=r,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=$3(t.placeholders,vo.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;let e=this._editor.getModel();this._editor.changeDecorations(t=>{for(let r of this._snippet.placeholders){let n=this._snippet.offset(r),o=this._snippet.fullLen(r),s=B.fromPositions(e.getPositionAt(this._offset+n),e.getPositionAt(this._offset+n+o)),a=r.isFinalTabstop?i._decor.inactiveFinal:i._decor.inactive,l=t.addDecoration(s,a);this._placeholderDecorations.set(r,l)}})}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){let n=[];for(let o of this._placeholderGroups[this._placeholderGroupsIdx])if(o.transform){let s=this._placeholderDecorations.get(o),a=this._editor.getModel().getDecorationRange(s),l=this._editor.getModel().getValueInRange(a),c=o.transform.resolve(l).split(/\r\n|\r|\n/);for(let d=1;d0&&this._editor.executeEdits("snippet.placeholderTransform",n)}let t=!1;e===!0&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,t=!0);let r=this._editor.getModel().changeDecorations(n=>{let o=new Set,s=[];for(let a of this._placeholderGroups[this._placeholderGroupsIdx]){let l=this._placeholderDecorations.get(a),c=this._editor.getModel().getDecorationRange(l);s.push(new Qe(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(a),n.changeDecorationOptions(l,a.isFinalTabstop?i._decor.activeFinal:i._decor.active),o.add(a);for(let d of this._snippet.enclosingPlaceholders(a)){let u=this._placeholderDecorations.get(d);n.changeDecorationOptions(u,d.isFinalTabstop?i._decor.activeFinal:i._decor.active),o.add(d)}}for(let[a,l]of this._placeholderDecorations)o.has(a)||n.changeDecorationOptions(l,a.isFinalTabstop?i._decor.inactiveFinal:i._decor.inactive);return s});return t?this.move(e):r!=null?r:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof vo){let r=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(r).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){let[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){let e=new Map;for(let t of this._placeholderGroups){let r;for(let n of t){if(n.isFinalTabstop)break;r||(r=[],e.set(n.index,r));let o=this._placeholderDecorations.get(n),s=this._editor.getModel().getDecorationRange(o);if(!s){e.delete(n.index);break}r.push(s)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;let e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!(e!=null&&e.choice))return;let t=this._placeholderDecorations.get(e);if(!t)return;let r=this._editor.getModel().getDecorationRange(t);if(r)return{range:r,choice:e.choice}}get hasChoice(){let e=!1;return this._snippet.walk(t=>(e=t instanceof lh,!e)),e}merge(e){let t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(r=>{for(let n of this._placeholderGroups[this._placeholderGroupsIdx]){let o=e.shift();console.assert(o._offset!==-1),console.assert(!o._placeholderDecorations);let s=o._snippet.placeholderInfo.last.index;for(let l of o._snippet.placeholderInfo.all)l.isFinalTabstop?l.index=n.index+(s+1)/this._nestingLevel:l.index=n.index+l.index/this._nestingLevel;this._snippet.replace(n,o._snippet.children);let a=this._placeholderDecorations.get(n);r.removeDecoration(a),this._placeholderDecorations.delete(n);for(let l of o._snippet.placeholders){let c=o._snippet.offset(l),d=o._snippet.fullLen(l),u=B.fromPositions(t.getPositionAt(o._offset+c),t.getPositionAt(o._offset+c+d)),h=r.addDecoration(u,i._decor.inactive);this._placeholderDecorations.set(l,h)}}this._placeholderGroups=$3(this._snippet.placeholders,vo.compareByIndex)})}};Ab._decor={active:mt.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:mt.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:mt.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:mt.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};F$={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},Cp=$s=class{static adjustWhitespace(e,t,r,n,o){let s=e.getLineContent(t.lineNumber),a=qi(s,0,t.column-1),l;return n.walk(c=>{if(!(c instanceof Rr)||c.parent instanceof lh||o&&!o.has(c))return!0;let d=c.value.split(/\r\n|\r|\n/);if(r){let h=n.offset(c);if(h===0)d[0]=e.normalizeIndentation(d[0]);else{l=l!=null?l:n.toString();let f=l.charCodeAt(h-1);(f===10||f===13)&&(d[0]=e.normalizeIndentation(a+d[0]))}for(let f=1;fN.get(xl)),m=e.invokeWithinContext(N=>new Sb(N.get(Tl),h)),g=()=>a,w=h.getValueInRange($s.adjustSelection(h,e.getSelection(),r,0)),_=h.getValueInRange($s.adjustSelection(h,e.getSelection(),0,n)),E=h.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),I=e.getSelections().map((N,U)=>({selection:N,idx:U})).sort((N,U)=>B.compareRangesUsingStarts(N.selection,U.selection));for(let{selection:N,idx:U}of I){let z=$s.adjustSelection(h,N,r,0),Y=$s.adjustSelection(h,N,0,n);w!==h.getValueInRange(z)&&(z=N),_!==h.getValueInRange(Y)&&(Y=N);let le=N.setStartPosition(z.startLineNumber,z.startColumn).setEndPosition(Y.endLineNumber,Y.endColumn),re=new jo().parse(t,!0,o),Z=le.getStartPosition(),ye=$s.adjustWhitespace(h,Z,s||U>0&&E!==h.getLineFirstNonWhitespaceColumn(N.positionLineNumber),re);re.resolveVariables(new xb([m,new kb(g,U,I.length,e.getOption(77)==="spread"),new Cb(h,N,U,l),new Eb(h,N,c),new oc,new Tb(f),new Ib])),d[U]=ii.replace(le,re.toString()),d[U].identifier={major:U,minor:0},d[U]._isTracked=!0,u[U]=new Ab(e,re,ye)}return{edits:d,snippets:u}}static createEditsAndSnippetsFromEdits(e,t,r,n,o,s,a){if(!e.hasModel()||t.length===0)return{edits:[],snippets:[]};let l=[],c=e.getModel(),d=new jo,u=new wp,h=new xb([e.invokeWithinContext(m=>new Sb(m.get(Tl),c)),new kb(()=>o,0,e.getSelections().length,e.getOption(77)==="spread"),new Cb(c,e.getSelection(),0,s),new Eb(c,e.getSelection(),a),new oc,new Tb(e.invokeWithinContext(m=>m.get(xl))),new Ib]);t=t.sort((m,g)=>B.compareRangesUsingStarts(m.range,g.range));let f=0;for(let m=0;m0){let U=t[m-1].range,z=B.fromPositions(U.getEndPosition(),g.getStartPosition()),Y=new Rr(c.getValueInRange(z));u.appendChild(Y),f+=Y.value.length}let _=d.parseFragment(w,u);$s.adjustWhitespace(c,g.getStartPosition(),!0,u,new Set(_)),u.resolveVariables(h);let E=u.toString(),I=E.slice(f);f=E.length;let N=ii.replace(g,I);N.identifier={major:m,minor:0},N._isTracked=!0,l.push(N)}return d.ensureFinalTabstop(u,r,!0),{edits:l,snippets:[new Ab(e,u,"")]}}constructor(e,t,r=F$,n){this._editor=e,this._template=t,this._options=r,this._languageConfigurationService=n,this._templateMerges=[],this._snippets=[]}dispose(){ji(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;let{edits:e,snippets:t}=typeof this._template=="string"?$s.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):$s.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,r=>{let n=r.filter(o=>!!o.identifier);for(let o=0;oQe.fromPositions(o.range.getEndPosition()))}),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=F$){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);let{edits:r,snippets:n}=$s.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",r,o=>{let s=o.filter(l=>!!l.identifier);for(let l=0;lQe.fromPositions(l.range.getEndPosition()))})}next(){let e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){let e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){let t=[];for(let r of this._snippets){let n=r.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;let e=this._editor.getSelections();if(e.length{o.push(...n.get(s))})}e.sort(B.compareRangesUsingStarts);for(let[r,n]of t){if(n.length!==e.length){t.delete(r);continue}n.sort(B.compareRangesUsingStarts);for(let o=0;o0}};Cp=$s=O0e([F0e(3,Ot)],Cp)});var z0e,q2,Sp,z$,nr,K2,kp=M(()=>{ke();zr();lt();di();ti();Hr();Pt();uh();He();wt();Yv();JA();z0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},q2=function(i,e){return function(t,r){e(t,r,i)}},z$={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},nr=Sp=class{static get(e){return e.getContribution(Sp.ID)}constructor(e,t,r,n,o){this._editor=e,this._logService=t,this._languageFeaturesService=r,this._languageConfigurationService=o,this._snippetListener=new ae,this._modelVersionId=-1,this._inSnippet=Sp.InSnippetMode.bindTo(n),this._hasNextTabstop=Sp.HasNextTabstop.bindTo(n),this._hasPrevTabstop=Sp.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=="undefined"?z$:Object.assign(Object.assign({},z$),t))}catch(r){this.cancel(),this._logService.error(r),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 r;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&typeof e!="string"&&this.cancel(),this._session?(Bt(typeof e=="string"),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new Cp(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),!((r=this._session)===null||r===void 0)&&r.hasChoice){let n={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(d,u)=>{if(!this._session||d!==this._editor.getModel()||!Ie.equals(this._editor.getPosition(),u))return;let{activeChoice:h}=this._session;if(!h||h.choice.options.length===0)return;let f=d.getValueInRange(h.range),m=!!h.choice.options.find(w=>w.value===f),g=[];for(let w=0;w{s==null||s.dispose(),a=!1},c=()=>{a||(s=this._languageFeaturesService.completionProvider.register({language:o.getLanguageId(),pattern:o.uri.fsPath,scheme:o.uri.scheme,exclusive:!0},n),this._snippetListener.add(s),a=!0)};this._choiceCompletions={provider:n,enable:c,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}let{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(()=>{M$(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()}};nr.ID="snippetController2";nr.InSnippetMode=new ht("inSnippetMode",!1,b("inSnippetMode","Whether the editor in current in snippet mode"));nr.HasNextTabstop=new ht("hasNextTabstop",!1,b("hasNextTabstop","Whether there is a next tab stop when in snippet mode"));nr.HasPrevTabstop=new ht("hasPrevTabstop",!1,b("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode"));nr=Sp=z0e([q2(1,Hc),q2(2,Se),q2(3,it),q2(4,Ot)],nr);Ue(nr.ID,nr,4);K2=Fi.bindToContribution(nr.get);We(new K2({id:"jumpToNextSnippetPlaceholder",precondition:fe.and(nr.InSnippetMode,nr.HasNextTabstop),handler:i=>i.next(),kbOpts:{weight:100+30,kbExpr:O.editorTextFocus,primary:2}}));We(new K2({id:"jumpToPrevSnippetPlaceholder",precondition:fe.and(nr.InSnippetMode,nr.HasPrevTabstop),handler:i=>i.prev(),kbOpts:{weight:100+30,kbExpr:O.editorTextFocus,primary:1026}}));We(new K2({id:"leaveSnippet",precondition:nr.InSnippetMode,handler:i=>i.cancel(!0),kbOpts:{weight:100+30,kbExpr:O.editorTextFocus,primary:9,secondary:[1033]}}));We(new K2({id:"acceptSnippet",precondition:nr.InSnippetMode,handler:i=>i.finish()}))});var B0e,eL,sc,io,$2,B$=M(()=>{mi();qt();ke();wa();zr();_a();di();et();fn();Hr();N2();L$();vp();kp();Vi();Ut();B0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},eL=function(i,e){return function(t,r){e(t,r,i)}},sc=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};(function(i){i[i.Undo=0]="Undo",i[i.Redo=1]="Redo",i[i.AcceptWord=2]="AcceptWord",i[i.Other=3]="Other"})(io||(io={}));$2=class extends ce{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(e,t,r,n,o,s,a,l,c,d,u,h){super(),this.textModel=e,this.selectedSuggestItem=t,this.cursorPosition=r,this.textModelVersionId=n,this._debounceValue=o,this._suggestPreviewEnabled=s,this._suggestPreviewMode=a,this._inlineSuggestMode=l,this._enabled=c,this._instantiationService=d,this._commandService=u,this._languageConfigurationService=h,this._source=this._register(this._instantiationService.createInstance(j2,this.textModel,this.textModelVersionId,this._debounceValue)),this._isActive=ya("isActive",!1),this._forceUpdate=qF("forceUpdate"),this._selectedInlineCompletionId=ya("selectedInlineCompletionId",void 0),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([io.Redo,io.Undo,io.AcceptWord]),this._fetchInlineCompletions=UF("fetch inline completions",{createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:pa.Automatic}),handleChange:(m,g)=>(m.didChange(this.textModelVersionId)&&this._preserveCurrentCompletionReasons.has(m.change)?g.preserveCurrentCompletion=!0:m.didChange(this._forceUpdate)&&(g.inlineCompletionTriggerKind=m.change),!0)},(m,g)=>{if(this._forceUpdate.read(m),!(this._enabled.read(m)&&this.selectedSuggestItem.read(m)||this._isActive.read(m))){this._source.cancelUpdate();return}this.textModelVersionId.read(m);let _=this.selectedInlineCompletion.get(),E=g.preserveCurrentCompletion||_!=null&&_.forwardStable?_:void 0,I=this._source.suggestWidgetInlineCompletions.get(),N=this.selectedSuggestItem.read(m);if(I&&!N){let Y=this._source.inlineCompletions.get();on(le=>{Y&&I.request.versionId>Y.request.versionId&&this._source.inlineCompletions.set(I.clone(),le),this._source.clearSuggestWidgetInlineCompletions(le)})}let U=this.cursorPosition.read(m),z={triggerKind:g.inlineCompletionTriggerKind,selectedSuggestionInfo:N==null?void 0:N.toSelectedSuggestionInfo()};return this._source.fetch(U,z,E)}),this._filteredInlineCompletionItems=No(m=>{let g=this._source.inlineCompletions.read(m);if(!g)return[];let w=this.cursorPosition.read(m);return g.inlineCompletions.filter(E=>E.isVisible(this.textModel,w,m))}),this.selectedInlineCompletionIndex=No(m=>{let g=this._selectedInlineCompletionId.read(m),w=this._filteredInlineCompletionItems.read(m),_=this._selectedInlineCompletionId===void 0?-1:w.findIndex(E=>E.semanticId===g);return _===-1?(this._selectedInlineCompletionId.set(void 0,void 0),0):_}),this.selectedInlineCompletion=No(m=>{let g=this._filteredInlineCompletionItems.read(m),w=this.selectedInlineCompletionIndex.read(m);return g[w]}),this.lastTriggerKind=this._source.inlineCompletions.map(m=>m==null?void 0:m.request.context.triggerKind),this.inlineCompletionsCount=No(m=>{if(this.lastTriggerKind.read(m)===pa.Explicit)return this._filteredInlineCompletionItems.read(m).length}),this.state=xk({equalityComparer:(m,g)=>!m||!g?m===g:NA(m.ghostText,g.ghostText)&&m.inlineCompletion===g.inlineCompletion&&m.suggestItem===g.suggestItem},m=>{var g;let w=this.textModel,_=this.selectedSuggestItem.read(m);if(_){let E=_.toSingleTextEdit().removeCommonPrefix(w),I=this._computeAugmentedCompletion(E,m);if(!this._suggestPreviewEnabled.read(m)&&!I)return;let U=(g=I==null?void 0:I.edit)!==null&&g!==void 0?g:E,z=I?I.edit.text.length-E.text.length:0,Y=this._suggestPreviewMode.read(m),le=this.cursorPosition.read(m),re=U.computeGhostText(w,Y,le,z);return{ghostText:re!=null?re:new Ld(U.range.endLineNumber,[]),inlineCompletion:I==null?void 0:I.completion,suggestItem:_}}else{if(!this._isActive.read(m))return;let E=this.selectedInlineCompletion.read(m);if(!E)return;let I=E.toSingleTextEdit(m),N=this._inlineSuggestMode.read(m),U=this.cursorPosition.read(m),z=I.computeGhostText(w,N,U);return z?{ghostText:z,inlineCompletion:E,suggestItem:void 0}:void 0}}),this.ghostText=xk({equalityComparer:NA},m=>{let g=this.state.read(m);if(g)return g.ghostText}),this._register(KF(this._fetchInlineCompletions,!0));let f;this._register(pn(m=>{var g,w;let _=this.state.read(m),E=_==null?void 0:_.inlineCompletion;if((E==null?void 0:E.semanticId)!==(f==null?void 0:f.semanticId)&&(f=E,E)){let I=E.inlineCompletion,N=I.source;(w=(g=N.provider).handleItemDidShow)===null||w===void 0||w.call(g,N.inlineCompletions,I.sourceInlineCompletion,I.insertText)}}))}trigger(e){return sc(this,void 0,void 0,function*(){this._isActive.set(!0,e),yield this._fetchInlineCompletions.get()})}triggerExplicitly(e){return sc(this,void 0,void 0,function*(){wk(e,t=>{this._isActive.set(!0,t),this._forceUpdate.trigger(t,pa.Explicit)}),yield this._fetchInlineCompletions.get()})}stop(e){wk(e,t=>{this._isActive.set(!1,t),this._source.clear(t)})}_computeAugmentedCompletion(e,t){let r=this.textModel,n=this._source.suggestWidgetInlineCompletions.read(t),o=n?n.inlineCompletions:[this.selectedInlineCompletion.read(t)].filter($9);return NP(o,a=>{let l=a.toSingleTextEdit(t);return l=l.removeCommonPrefix(r,B.fromPositions(l.range.getStartPosition(),e.range.getEndPosition())),l.augments(e)?{edit:l,completion:a}:void 0})}_deltaSelectedInlineCompletionIndex(e){return sc(this,void 0,void 0,function*(){yield this.triggerExplicitly();let t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){let r=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[r].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)})}next(){return sc(this,void 0,void 0,function*(){yield this._deltaSelectedInlineCompletionIndex(1)})}previous(){return sc(this,void 0,void 0,function*(){yield this._deltaSelectedInlineCompletionIndex(-1)})}accept(e){var t;return sc(this,void 0,void 0,function*(){if(e.getModel()!==this.textModel)throw new Im;let r=this.state.get();if(!r||r.ghostText.isEmpty()||!r.inlineCompletion)return;let n=r.inlineCompletion.toInlineCompletion(void 0);e.pushUndoStop(),n.snippetInfo?(e.executeEdits("inlineSuggestion.accept",[ii.replaceMove(n.range,""),...n.additionalTextEdits]),e.setPosition(n.snippetInfo.range.getStartPosition()),(t=nr.get(e))===null||t===void 0||t.insert(n.snippetInfo.snippet,{undoStopBefore:!1})):e.executeEdits("inlineSuggestion.accept",[ii.replaceMove(n.range,n.insertText),...n.additionalTextEdits]),n.command&&n.source.addRef(),on(o=>{this._source.clear(o),this._isActive.set(!1,o)}),n.command&&(yield this._commandService.executeCommand(n.command.id,...n.command.arguments||[]).then(void 0,Xt),n.source.removeRef())})}acceptNextWord(e){return sc(this,void 0,void 0,function*(){yield this._acceptNext(e,(t,r)=>{let n=this.textModel.getLanguageIdAtPosition(t.lineNumber,t.column),o=this._languageConfigurationService.getLanguageConfiguration(n),s=new RegExp(o.wordDefinition.source,o.wordDefinition.flags.replace("g","")),a=r.match(s),l=0;a&&a.index!==void 0?a.index===0?l=a[0].length:l=a.index:l=r.length;let d=/\s+/g.exec(r);return d&&d.index!==void 0&&d.index+d[0].length{let n=r.match(/\n/);return n&&n.index!==void 0?n.index+1:r.length})})}_acceptNext(e,t){return sc(this,void 0,void 0,function*(){if(e.getModel()!==this.textModel)throw new Im;let r=this.state.get();if(!r||r.ghostText.isEmpty()||!r.inlineCompletion)return;let n=r.ghostText,o=r.inlineCompletion.toInlineCompletion(void 0);if(o.snippetInfo||o.filterText!==o.insertText){yield this.accept(e);return}let s=n.parts[0],a=new Ie(n.lineNumber,s.column),l=s.lines.join(` -`),c=t(a,l);if(c===l.length&&n.parts.length===1){this.accept(e);return}let d=l.substring(0,c);this._isAcceptingPartially=!0;try{e.pushUndoStop(),e.executeEdits("inlineSuggestion.accept",[ii.replace(B.fromPositions(a),d)]);let u=gb(d);e.setPosition(mb(a,u))}finally{this._isAcceptingPartially=!1}if(o.source.provider.handlePartialAccept){let u=B.fromPositions(o.range.getStartPosition(),mb(a,gb(d))),h=e.getModel().getValueInRange(u,1);o.source.provider.handlePartialAccept(o.source.inlineCompletions,o.sourceInlineCompletion,h.length)}})}handleSuggestAccepted(e){var t,r;let n=e.toSingleTextEdit().removeCommonPrefix(this.textModel),o=this._computeAugmentedCompletion(n,void 0);if(!o)return;let s=o.completion.inlineCompletion;(r=(t=s.source.provider).handlePartialAccept)===null||r===void 0||r.call(t,s.source.inlineCompletions,s.sourceInlineCompletion,n.text.length)}};$2=B0e([eL(9,Ke),eL(10,_i),eL(11,Ot)],$2)});var H0e,H$,Lb,Db,G2,tL,iL,Mb,Ep,rL=M(()=>{jt();ke();df();Hre();fn();Sr();hl();Ut();wu();H0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},H$=function(i,e){return function(t,r){e(t,r,i)}},Db=class{constructor(e){this.name=e}select(e,t,r){if(r.length===0)return 0;let n=r[0].score[0];for(let o=0;ol&&u.type===r[c].completion.kind&&u.insertText===r[c].completion.insertText&&(l=u.touch,a=c),r[c].completion.preselect&&s===-1)return s=c}return a!==-1?a:s!==-1?s:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();let t=0;for(let[r,n]of e)n.touch=t,n.type=typeof n.type=="number"?n.type:Xm.fromString(n.type),this._cache.set(r,n);this._seq=this._cache.size}},iL=class extends Db{constructor(){super("recentlyUsedByPrefix"),this._trie=kF.forStrings(),this._seq=0}memorize(e,t,r){let{word:n}=e.getWordUntilPosition(t),o=`${e.getLanguageId()}/${n}`;this._trie.set(o,{type:r.completion.kind,insertText:r.completion.insertText,touch:this._seq++})}select(e,t,r){let{word:n}=e.getWordUntilPosition(t);if(!n)return super.select(e,t,r);let o=`${e.getLanguageId()}/${n}`,s=this._trie.get(o);if(s||(s=this._trie.findSubstr(o)),s)for(let a=0;ae.push([r,t])),e.sort((t,r)=>-(t[1].touch-r[1].touch)).forEach((t,r)=>t[1].touch=r),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(let[t,r]of e)r.type=typeof r.type=="number"?r.type:Xm.fromString(r.type),this._trie.set(t,r)}}},Mb=Lb=class{constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new ae,this._persistSoon=new ui(()=>this._saveState(),500),this._disposables.add(e.onWillSaveState(r=>{r.reason===B_.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,r){this._withStrategy(e,t).memorize(e,t,r),this._persistSoon.schedule()}select(e,t,r){return this._withStrategy(e,t).select(e,t,r)}_withStrategy(e,t){var r;let n=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if(((r=this._strategy)===null||r===void 0?void 0:r.name)!==n){this._saveState();let o=Lb._strategyCtors.get(n)||G2;this._strategy=new o;try{let a=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,l=this._storageService.get(`${Lb._storagePrefix}/${n}`,a);l&&this._strategy.fromJSON(JSON.parse(l))}catch(s){}}return this._strategy}_saveState(){if(this._strategy){let t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,r=JSON.stringify(this._strategy);this._storageService.store(`${Lb._storagePrefix}/${this._strategy.name}`,r,t,1)}}};Mb._strategyCtors=new Map([["recentlyUsedByPrefix",iL],["recentlyUsed",tL],["first",G2]]);Mb._storagePrefix="suggest/memories";Mb=Lb=H0e([H$(0,Yn),H$(1,Mt)],Mb);Ep=Qr("ISuggestMemories");en(Ep,Mb,1)});var U0e,j0e,nL,Tp,U$=M(()=>{wt();U0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},j0e=function(i,e){return function(t,r){e(t,r,i)}},Tp=nL=class{constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=nL.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration(r=>r.hasChanged(121)&&this._update()),this._update()}dispose(){var e;this._configListener.dispose(),(e=this._selectionListener)===null||e===void 0||e.dispose(),this._ckAtEnd.reset()}_update(){let e=this._editor.getOption(121)==="on";if(this._enabled!==e)if(this._enabled=e,this._enabled){let t=()=>{if(!this._editor.hasModel()){this._ckAtEnd.set(!1);return}let r=this._editor.getModel(),n=this._editor.getSelection(),o=r.getWordAtPosition(n.getStartPosition());if(!o){this._ckAtEnd.set(!1);return}this._ckAtEnd.set(o.endColumn===n.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(t),t()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};Tp.AtEnd=new ht("atEndOfWord",!1);Tp=nL=U0e([j0e(1,it)],Tp)});var W0e,V0e,Nb,Md,j$=M(()=>{wt();W0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},V0e=function(i,e){return function(t,r){e(t,r,i)}},Md=Nb=class{constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=Nb.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},r){if(e.items.length===0){this.reset();return}if(Nb._moveIndex(!0,e,t)===t){this.reset();return}this._acceptNext=r,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)}static _moveIndex(e,t,r){let n=r;for(let o=t.items.length;o>0&&(n=(n+t.items.length+(e?1:-1))%t.items.length,!(n===r||!t.items[n].completion.additionalTextEdits));o--);return n}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=Nb._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};Md.OtherSuggestions=new ht("hasOtherSuggestions",!1);Md=Nb=W0e([V0e(1,it)],Md)});var Y2,W$=M(()=>{mi();ke();K3();Y2=class{constructor(e,t,r,n){this._disposables=new ae,this._disposables.add(r.onDidSuggest(o=>{o.completionModel.items.length===0&&this.reset()})),this._disposables.add(r.onDidCancel(o=>{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(o=>{if(this._active&&!t.isFrozen()&&r.state!==0){let s=o.charCodeAt(o.length-1);this._active.acceptCharacters.has(s)&&e.getOption(0)&&n(this._active.item)}}))}_onItem(e){if(!e||!Ki(e.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===e.item)return;let t=new fu;for(let r of e.item.completion.commitCharacters)r.length>0&&t.add(r.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}});var q0e,Nd,oL=M(()=>{j9();di();et();q0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Nd=class i{provideSelectionRanges(e,t){return q0e(this,void 0,void 0,function*(){let r=[];for(let n of t){let o=[];r.push(o);let s=new Map;yield new Promise(a=>i._bracketsRightYield(a,0,e,n,s)),yield new Promise(a=>i._bracketsLeftYield(a,0,e,n,s,o))}return r})}static _bracketsRightYield(e,t,r,n,o){let s=new Map,a=Date.now();for(;;){if(t>=i._maxRounds){e();break}if(!n){e();break}let l=r.bracketPairs.findNextBracket(n);if(!l){e();break}if(Date.now()-a>i._maxDuration){setTimeout(()=>i._bracketsRightYield(e,t+1,r,n,o));break}if(l.bracketInfo.isOpeningBracket){let d=l.bracketInfo.bracketText,u=s.has(d)?s.get(d):0;s.set(d,u+1)}else{let d=l.bracketInfo.getOpeningBrackets()[0].bracketText,u=s.has(d)?s.get(d):0;if(u-=1,s.set(d,Math.max(0,u)),u<0){let h=o.get(d);h||(h=new zv,o.set(d,h)),h.push(l.range)}}n=l.range.getEndPosition()}}static _bracketsLeftYield(e,t,r,n,o,s){let a=new Map,l=Date.now();for(;;){if(t>=i._maxRounds&&o.size===0){e();break}if(!n){e();break}let c=r.bracketPairs.findPrevBracket(n);if(!c){e();break}if(Date.now()-l>i._maxDuration){setTimeout(()=>i._bracketsLeftYield(e,t+1,r,n,o,s));break}if(c.bracketInfo.isOpeningBracket){let u=c.bracketInfo.bracketText,h=a.has(u)?a.get(u):0;if(h-=1,a.set(u,Math.max(0,h)),h<0){let f=o.get(u);if(f){let m=f.shift();f.size===0&&o.delete(u);let g=B.fromPositions(c.range.getEndPosition(),m.getStartPosition()),w=B.fromPositions(c.range.getStartPosition(),m.getEndPosition());s.push({range:g}),s.push({range:w}),i._addBracketLeading(r,w,s)}}}else{let u=c.bracketInfo.getOpeningBrackets()[0].bracketText,h=a.has(u)?a.get(u):0;a.set(u,h+1)}n=c.range.getStartPosition()}}static _addBracketLeading(e,t,r){if(t.startLineNumber===t.endLineNumber)return;let n=t.startLineNumber,o=e.getLineFirstNonWhitespaceColumn(n);o!==0&&o!==t.startColumn&&(r.push({range:B.fromPositions(new Ie(n,o),t.getEndPosition())}),r.push({range:B.fromPositions(new Ie(n,1),t.getEndPosition())}));let s=n-1;if(s>0){let a=e.getLineFirstNonWhitespaceColumn(s);a===t.startColumn&&a!==e.getLineLastNonWhitespaceColumn(s)&&(r.push({range:B.fromPositions(new Ie(s,a),t.getEndPosition())}),r.push({range:B.fromPositions(new Ie(s,1),t.getEndPosition())}))}}};Nd._maxDuration=30;Nd._maxRounds=2});var K0e,Rd,sL=M(()=>{mi();et();oL();K0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Rd=class i{static create(e,t){return K0e(this,void 0,void 0,function*(){if(!t.getOption(116).localityBonus||!t.hasModel())return i.None;let r=t.getModel(),n=t.getPosition();if(!e.canComputeWordRanges(r.uri))return i.None;let[o]=yield new Nd().provideSelectionRanges(r,[n]);if(o.length===0)return i.None;let s=yield e.computeWordRanges(r.uri,o[0].range);if(!s)return i.None;let a=r.getWordUntilPosition(n);return delete s[a.word],new class extends i{distance(l,c){if(!n.equals(t.getPosition()))return 0;if(c.kind===17)return 2<<20;let d=typeof c.label=="string"?c.label:c.label.label,u=s[d];if(LP(u))return 2<<20;let h=pu(u,B.fromPositions(l),B.compareRangesUsingStarts),f=h>=0?u[h]:u[Math.max(0,~h-1)],m=o.length;for(let g of o){if(!B.containsRange(g.range,f))break;m-=1}return m}}})}};Rd.None=new class extends Rd{distance(){return 0}}});var Rb,Ip,aL=M(()=>{mi();pl();Ni();Rb=class{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}},Ip=class i{constructor(e,t,r,n,o,s,a=a_.default,l=void 0){this.clipboardText=l,this._snippetCompareFn=i._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=n,this._options=o,this._refilterKind=1,this._lineContext=r,this._fuzzyScoreOptions=a,s==="top"?this._snippetCompareFn=i._compareCompletionItemsSnippetsUp:s==="bottom"&&(this._snippetCompareFn=i._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){(this._lineContext.leadingLineContent!==e.leadingLineContent||this._lineContext.characterCountDelta!==e.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta0&&r[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;let e=[],{leadingLineContent:t,characterCountDelta:r}=this._lineContext,n="",o="",s=this._refilterKind===1?this._items:this._filteredItems,a=[],l=!this._options.filterGraceful||s.length>2e3?l_:$P;for(let c=0;c=f)d.score=fl.Default;else if(typeof d.completion.filterText=="string"){let g=l(n,o,m,d.completion.filterText,d.filterTextLow,0,this._fuzzyScoreOptions);if(!g)continue;mP(d.completion.filterText,d.textLabel)===0?d.score=g:(d.score=KP(n,o,m,d.textLabel,d.labelLow,0),d.score[0]=g[0])}else{let g=l(n,o,m,d.textLabel,d.labelLow,0,this._fuzzyScoreOptions);if(!g)continue;d.score=g}}d.idx=c,d.distance=this._wordDistance.distance(d.position,d.completion),a.push(d),e.push(d.textLabel.length)}this._filteredItems=a.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?AP(e.length-.85,e,(c,d)=>c-d):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 i._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 i._compareCompletionItems(e,t)}}});function Y0e(i,e,t){if(!e.getContextKeyValue(_r.inlineSuggestionVisible.key))return!0;let r=e.getContextKeyValue(_r.suppressSuggestions.key);return r!==void 0?!r:!i.getOption(61).suppressSuggestions}function X0e(i,e,t){if(!e.getContextKeyValue("inlineSuggestionVisible"))return!0;let r=e.getContextKeyValue(_r.suppressSuggestions.key);return r!==void 0?!r:!i.getOption(61).suppressSuggestions}var $0e,Pd,G0e,lL,ac,X2,V$=M(()=>{jt();ki();qt();ei();ke();Ni();Ar();q_();sL();Zm();Sr();wt();Yv();Bc();aL();uh();Pt();pl();zr();D2();kp();Bre();$0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Pd=function(i,e){return function(t,r){e(t,r,i)}},G0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},ac=class{static shouldAutoTrigger(e){if(!e.hasModel())return!1;let t=e.getModel(),r=e.getPosition();t.tokenization.tokenizeIfCheap(r.lineNumber);let n=t.getWordAtPosition(r);return!(!n||n.endColumn!==r.column&&n.startColumn+1!==r.column||!isNaN(Number(n.word)))}constructor(e,t,r){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=r}};X2=lL=class{constructor(e,t,r,n,o,s,a,l,c){this._editor=e,this._editorWorkerService=t,this._clipboardService=r,this._telemetryService=n,this._logService=o,this._contextKeyService=s,this._configurationService=a,this._languageFeaturesService=l,this._envService=c,this._toDispose=new ae,this._triggerCharacterListener=new ae,this._triggerQuickSuggest=new aa,this._triggerState=void 0,this._completionDisposables=new ae,this._onDidCancel=new Je,this._onDidTrigger=new Je,this._onDidSuggest=new Je,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new Qe(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 d=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{d=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{d=!1,this._onCompositionEnd()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(u=>{d||this._onCursorChange(u)})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{!d&&this._triggerState!==void 0&&this._refilterCompletionItems()})),this._updateTriggerCharacters()}dispose(){ji(this._triggerCharacterListener),ji([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(89)||!this._editor.hasModel()||!this._editor.getOption(119))return;let e=new Map;for(let r of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(let n of r.triggerCharacters||[]){let o=e.get(n);o||(o=new Set,o.add(D$()),e.set(n,o)),o.add(r)}let t=r=>{var n;if(!X0e(this._editor,this._contextKeyService,this._configurationService)||ac.shouldAutoTrigger(this._editor))return;if(!r){let a=this._editor.getPosition();r=this._editor.getModel().getLineContent(a.lineNumber).substr(0,a.column-1)}let o="";vP(r.charCodeAt(r.length-1))?bP(r.charCodeAt(r.length-2))&&(o=r.substr(r.length-2)):o=r.charAt(r.length-1);let s=e.get(o);if(s){let a=new Map;if(this._completionModel)for(let[l,c]of this._completionModel.getItemsByProvider())s.has(l)||a.set(l,c);this.trigger({auto:!0,triggerKind:1,triggerCharacter:o,retrigger:!!this._completionModel,clipboardText:(n=this._completionModel)===null||n===void 0?void 0:n.clipboardText,completionOptions:{providerFilter:s,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;let 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;Ga.isAllOff(this._editor.getOption(87))||this._editor.getOption(116).snippetsPreventQuickSuggestions&&(!((e=nr.get(this._editor))===null||e===void 0)&&e.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(this._triggerState!==void 0||!ac.shouldAutoTrigger(this._editor)||!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;let t=this._editor.getModel(),r=this._editor.getPosition(),n=this._editor.getOption(87);if(!Ga.isAllOff(n)){if(!Ga.isAllOn(n)){t.tokenization.tokenizeIfCheap(r.lineNumber);let o=t.tokenization.getLineTokens(r.lineNumber),s=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(r.column-1-1,0)));if(Ga.valueFor(n,s)!=="on")return}Y0e(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(t)&&this.trigger({auto:!0})}},this._editor.getOption(88)))}_refilterCompletionItems(){Bt(this._editor.hasModel()),Bt(this._triggerState!==void 0);let e=this._editor.getModel(),t=this._editor.getPosition(),r=new ac(e,t,Object.assign(Object.assign({},this._triggerState),{refilter:!0}));this._onNewContext(r)}trigger(e){var t,r,n,o,s,a;if(!this._editor.hasModel())return;let l=this._editor.getModel(),c=new ac(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=c;let d={triggerKind:(r=e.triggerKind)!==null&&r!==void 0?r:0};e.triggerCharacter&&(d={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new zi;let u=this._editor.getOption(110),h=1;switch(u){case"top":h=0;break;case"bottom":h=2;break}let{itemKind:f,showDeprecated:m}=lL._createSuggestFilter(this._editor),g=new nc(h,(o=(n=e.completionOptions)===null||n===void 0?void 0:n.kindFilter)!==null&&o!==void 0?o:f,(s=e.completionOptions)===null||s===void 0?void 0:s.providerFilter,(a=e.completionOptions)===null||a===void 0?void 0:a.providerItemsToReuse,m),w=Rd.create(this._editorWorkerService,this._editor),_=wb(this._languageFeaturesService.completionProvider,l,this._editor.getPosition(),g,d,this._requestToken.token);Promise.all([_,w]).then(([E,I])=>G0e(this,void 0,void 0,function*(){var N;if((N=this._requestToken)===null||N===void 0||N.dispose(),!this._editor.hasModel())return;let U=e==null?void 0:e.clipboardText;if(!U&&E.needsClipboard&&(U=yield this._clipboardService.readText()),this._triggerState===void 0)return;let z=this._editor.getModel(),Y=new ac(z,this._editor.getPosition(),e),le=Object.assign(Object.assign({},a_.default),{firstMatchCanBeWeak:!this._editor.getOption(116).matchOnWordStartOnly});if(this._completionModel=new Ip(E.items,this._context.column,{leadingLineContent:Y.leadingLineContent,characterCountDelta:Y.column-this._context.column},I,this._editor.getOption(116),this._editor.getOption(110),le,U),this._completionDisposables.add(E.disposable),this._onNewContext(Y),this._reportDurationsTelemetry(E.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(let re of E.items)re.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${re.provider._debugDisplayName}`,re.completion)})).catch(ft)}_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){let t=new Set;e.getOption(110)==="none"&&t.add(27);let n=e.getOption(116);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(qi(e.leadingLineContent)!==qi(this._context.leadingLineContent)){this.cancel();return}if(e.columnthis._context.leadingWord.startColumn){if(ac.shouldAutoTrigger(this._editor)&&this._context){let r=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:r}})}return}if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&e.leadingWord.word.length!==0){let t=new Map,r=new Set;for(let[n,o]of this._completionModel.getItemsByProvider())o.length>0&&o[0].container.incomplete?r.add(n):t.set(n,o);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:r,providerItemsToReuse:t}})}else{let t=this._completionModel.lineContext,r=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},this._completionModel.items.length===0){let n=ac.shouldAutoTrigger(this._editor);if(!this._context){this.cancel();return}if(n&&this._context.leadingWord.endColumn0,r&&e.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:r})}}}}};X2=lL=$0e([Pd(1,kl),Pd(2,As),Pd(3,Ln),Pd(4,Hc),Pd(5,it),Pd(6,Mt),Pd(7,Se),Pd(8,SF)],X2)});var Pb,q$=M(()=>{ke();Pb=class i{constructor(e,t){this._disposables=new ae,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType(()=>{if(this._locked||!e.hasModel())return;let r=e.getSelections(),n=r.length,o=!1;for(let a=0;ai._maxSelectionLength)return;this._lastOvertyped[a]={value:s.getValueInRange(l),multiline:l.startLineNumber!==l.endLineNumber}}})),this._disposables.add(t.onDidTrigger(r=>{this._locked=!0})),this._disposables.add(t.onDidCancel(r=>{this._locked=!1}))}getLastOvertypedInfo(e){if(e>=0&&e{});var $$=M(()=>{K$()});var Q0e,lc,Wo,Ap=M(()=>{ek();In();iz();Vi();wt();Ut();Mo();rn();X_();Hr();Pt();Q0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},lc=function(i,e){return function(t,r){e(t,r,i)}},Wo=class extends tz{constructor(e,t,r,n,o,s,a,l,c,d,u,h,f){super(e,Object.assign(Object.assign({},n.getRawOptions()),{overflowWidgetsDomNode:n.getOverflowWidgetsDomNode()}),r,o,s,a,l,c,d,u,h,f),this._parentEditor=n,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(n.onDidChangeConfiguration(m=>this._onParentConfigurationChanged(m)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){ff(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Wo=Q0e([lc(4,Ke),lc(5,ai),lc(6,_i),lc(7,it),lc(8,br),lc(9,Ri),lc(10,kf),lc(11,Ot),lc(12,Se)],Wo)});var Z0e,cL,dL,Q2,Y$=M(()=>{Ht();ng();ke();He();J_();Ji();wt();Ut();Z0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},cL=function(i,e){return function(t,r){e(t,r,i)}},dL=class i extends Z_{updateLabel(){let e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();this.label&&(this.label.textContent=b({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,i.symbolPrintEnter(e)))}static symbolPrintEnter(e){var t;return(t=e.getLabel())===null||t===void 0?void 0:t.replace(/\benter\b/gi,"\u23CE")}},Q2=class{constructor(e,t,r,n,o){this._menuId=t,this._menuService=n,this._contextKeyService=o,this._menuDisposables=new ae,this.element=Te(e,Ae(".suggest-status-bar"));let s=a=>a instanceof na?r.createInstance(dL,a,void 0):void 0;this._leftActions=new Ls(this.element,{actionViewItemProvider:s}),this._rightActions=new Ls(this.element,{actionViewItemProvider:s}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this.element.remove()}show(){let e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{let r=[],n=[];for(let[o,s]of e.getActions())o==="left"?r.push(...s):n.push(...s);this._leftActions.clear(),this._leftActions.push(r),this._rightActions.clear(),this._rightActions.push(n)};this._menuDisposables.add(e.onDidChange(()=>t())),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};Q2=Z0e([cL(2,Ke),cL(3,Ss),cL(4,it)],Q2)});var Od,Z2=M(()=>{Ht();bk();ei();ke();Od=class{constructor(){this._onDidWillResize=new Je,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new Je,this.onDidResize=this._onDidResize.event,this._sashListener=new ae,this._size=new Qt(0,0),this._minSize=new Qt(0,0),this._maxSize=new Qt(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new Cl(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new Cl(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new Cl(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:gk.North}),this._southSash=new Cl(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:gk.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,r=0;this._sashListener.add(ci.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{e===void 0&&(this._onDidWillResize.fire(),e=this._size,t=0,r=0)})),this._sashListener.add(ci.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{e!==void 0&&(e=void 0,t=0,r=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(n=>{e&&(r=n.currentX-n.startX,this.layout(e.height+t,e.width+r),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(n=>{e&&(r=-(n.currentX-n.startX),this.layout(e.height+t,e.width+r),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+r),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+r),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(ci.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(ci.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,r,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=r?3:0,this._westSash.state=n?3:0}layout(e=this.size.height,t=this.size.width){let{height:r,width:n}=this._minSize,{height:o,width:s}=this._maxSize;e=Math.max(r,Math.min(o,e)),t=Math.max(n,Math.min(s,t));let a=new Qt(t,e);Qt.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}}});function Ob(i){return!!i&&!!(i.completion.documentation||i.completion.detail&&i.completion.detail!==i.completion.label)}var J0e,ebe,J2,eC,uL=M(()=>{Ht();N_();Zr();An();ei();Es();ke();kd();Z2();He();Ut();J0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ebe=function(i,e){return function(t,r){e(t,r,i)}};J2=class{constructor(e,t){this._editor=e,this._onDidClose=new Je,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new Je,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new ae,this._renderDisposeable=new ae,this._borderWidth=1,this._size=new Qt(330,0),this.domNode=Ae(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(to,{editor:e}),this._body=Ae(".body"),this._scrollbar=new Cf(this._body,{alwaysConsumeMouseWheel:!0}),Te(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=Te(this._body,Ae(".header")),this._close=Te(this._header,Ae("span"+_t.asCSSSelector(pt.close))),this._close.title=b("details.close","Close"),this._type=Te(this._header,Ae("p.type")),this._docs=Te(this._body,Ae("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(49)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){let e=this._editor.getOptions(),t=e.get(49),r=t.getMassagedFontFamily(),n=e.get(117)||t.fontSize,o=e.get(118)||t.lineHeight,s=t.fontWeight,a=`${n}px`,l=`${o}px`;this.domNode.style.fontSize=a,this.domNode.style.lineHeight=`${o/n}`,this.domNode.style.fontWeight=s,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=r,this._close.style.height=l,this._close.style.width=l}getLayoutInfo(){let e=this._editor.getOption(118)||this._editor.getOption(49).lineHeight,t=this._borderWidth,r=t*2;return{lineHeight:e,borderWidth:t,borderHeight:r,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=b("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 r,n;this._renderDisposeable.clear();let{detail:o,documentation:s}=e.completion;if(t){let a="";a+=`score: ${e.score[0]} +`)}withRange(e){return new i(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 k0e(i,e){return e.getStartPosition().equals(i.getStartPosition())&&e.getEndPosition().isBeforeOrEqual(i.getEndPosition())}function E0e(i,e){if(($a==null?void 0:$a.originalValue)===i&&($a==null?void 0:$a.newValue)===e)return $a==null?void 0:$a.changes;{let t=T$(i,e,!0);if(t){let r=E$(t);if(r>0){let n=T$(i,e,!1);n&&E$(n)5e3||e.length>5e3)return;function r(c){let d=0;for(let u=0,h=c.length;ud&&(d=f)}return d}let n=Math.max(r(i),r(e));function o(c){if(c<0)throw new Error("unexpected");return n+c+1}function s(c){let d=0,u=0,h=new Int32Array(c.length);for(let f=0,m=c.length;fa},{getElements:()=>l}).ComputeDiff(!1).changes}var dh,$a,qA=N(()=>{Qre();Ni();et();N2();vp();dh=class i{constructor(e,t){this.range=e,this.text=t}removeCommonPrefix(e,t){let r=t?this.range.intersectRanges(t):this.range;if(!r)return this;let n=e.getValueInRange(r,1),o=zc(n,this.text),s=mb(this.range.getStartPosition(),gb(n.substring(0,o))),a=this.text.substring(o),l=B.fromPositions(s,this.range.getEndPosition());return new i(l,a)}augments(e){return this.text.startsWith(e.text)&&k0e(this.range,e.range)}computeGhostText(e,t,r,n=0){let o=this.removeCommonPrefix(e);if(o.range.endLineNumber!==o.range.startLineNumber)return;let s=e.getLineContent(o.range.startLineNumber),a=qi(s).length;if(o.range.startColumn-1<=a){let m=qi(o.text).length,g=s.substring(o.range.startColumn-1,a),[w,_]=[o.range.getStartPosition(),o.range.getEndPosition()],E=w.column+g.length<=_.column?w.delta(0,g.length):_,L=B.fromPositions(E,_),A=o.text.startsWith(g)?o.text.substring(g.length):o.text.substring(m);o=new i(L,A)}let c=e.getValueInRange(o.range),d=E0e(c,o.text);if(!d)return;let u=o.range.startLineNumber,h=new Array;if(t==="prefix"){let m=d.filter(g=>g.originalLength===0);if(m.length>1||m.length===1&&m[0].originalStart!==c.length)return}let f=o.text.length-n;for(let m of d){let g=o.range.startColumn+m.originalStart+m.originalLength;if(t==="subwordSmart"&&r&&r.lineNumber===o.range.startLineNumber&&g0)return;if(m.modifiedLength===0)continue;let w=m.modifiedStart+m.modifiedLength,_=Math.max(m.modifiedStart,Math.min(w,f)),E=o.text.substring(m.modifiedStart,_),L=o.text.substring(_,Math.max(m.modifiedStart,w));if(E.length>0){let A=hu(E);h.push(new _p(g,A,!1))}if(L.length>0){let A=hu(L);h.push(new _p(g,A,!0))}}return new Ld(u,h)}}});function A0e(i,e){return new Promise(t=>{let r,n=setTimeout(()=>{r&&r.dispose(),t()},i);e&&(r=e.onCancellationRequested(()=>{clearTimeout(n),r&&r.dispose(),t()}))})}function L0e(i,e,t){return!i||!e?i===e:t(i,e)}function A$(i){return i.startLineNumber===i.endLineNumber?new Ie(1,1+i.endColumn-i.startColumn):new Ie(1+i.endLineNumber-i.startLineNumber,i.endColumn)}var T0e,I$,I0e,j2,KA,$A,GA,W2,L$=N(()=>{ki();pl();ke();wa();di();fn();Hr();Pt();k$();qA();T0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},I$=function(i,e){return function(t,r){e(t,r,i)}},I0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},j2=class extends ce{constructor(e,t,r,n,o){super(),this.textModel=e,this.versionId=t,this._debounceValue=r,this.languageFeaturesService=n,this.languageConfigurationService=o,this._updateOperation=this._register(new Wi),this.inlineCompletions=sg("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=sg("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent(()=>{this._updateOperation.clear()}))}fetch(e,t,r){var n,o;let s=new KA(e,t,this.textModel.getVersionId()),a=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(!((n=this._updateOperation.value)===null||n===void 0)&&n.request.satisfies(s))return this._updateOperation.value.promise;if(!((o=a.get())===null||o===void 0)&&o.request.satisfies(s))return Promise.resolve(!0);let l=!!this._updateOperation.value;this._updateOperation.clear();let c=new zi,d=(()=>I0e(this,void 0,void 0,function*(){if((l||t.triggerKind===pa.Automatic)&&(yield A0e(this._debounceValue.get(this.textModel))),c.token.isCancellationRequested||this.textModel.getVersionId()!==s.versionId)return!1;let f=new Date,m=yield S$(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,c.token,this.languageConfigurationService);if(c.token.isCancellationRequested||this.textModel.getVersionId()!==s.versionId)return!1;let g=new Date;this._debounceValue.update(this.textModel,g.getTime()-f.getTime());let w=new GA(m,s,this.textModel,this.versionId);if(r){let _=r.toInlineCompletion(void 0);r.canBeReused(this.textModel,e)&&!m.has(_)&&w.prepend(r.inlineCompletion,_.range,!0)}return this._updateOperation.clear(),on(_=>{a.set(w,_)}),!0}))(),u=new $A(s,c,d);return this._updateOperation.value=u,d}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()}};j2=T0e([I$(3,Se),I$(4,Ot)],j2);KA=class{constructor(e,t,r){this.position=e,this.context=t,this.versionId=r}satisfies(e){return this.position.equals(e.position)&&L0e(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,(t,r)=>t.equals(r))&&(e.context.triggerKind===pa.Automatic||this.context.triggerKind===pa.Explicit)&&this.versionId===e.versionId}};$A=class{constructor(e,t,r){this.request=e,this.cancellationTokenSource=t,this.promise=r}dispose(){this.cancellationTokenSource.cancel()}},GA=class{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,r,n){this.inlineCompletionProviderResult=e,this.request=t,this.textModel=r,this.versionId=n,this._refCount=1,this._prependedInlineCompletionItems=[],this._rangeVersionIdValue=0,this._rangeVersionId=No(s=>{this.versionId.read(s);let a=!1;for(let l of this._inlineCompletions)a=a||l._updateRange(this.textModel);return a&&this._rangeVersionIdValue++,this._rangeVersionIdValue});let o=r.deltaDecorations([],e.completions.map(s=>({range:s.range,options:{description:"inline-completion-tracking-range"}})));this._inlineCompletions=e.completions.map((s,a)=>new W2(s,o[a],this._rangeVersionId))}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(let e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,r){r&&e.source.addRef();let n=this.textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new W2(e,n,this._rangeVersionId,t)),this._prependedInlineCompletionItems.push(e)}},W2=class{get forwardStable(){var e;return(e=this.inlineCompletion.source.inlineCompletions.enableForwardStability)!==null&&e!==void 0?e:!1}constructor(e,t,r,n){this.inlineCompletion=e,this.decorationId=t,this.rangeVersion=r,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._isValid=!0,this._updatedRange=n!=null?n:e.range}toInlineCompletion(e){return this.inlineCompletion.withRange(this._getUpdatedRange(e))}toSingleTextEdit(e){return new dh(this._getUpdatedRange(e),this.inlineCompletion.insertText)}isVisible(e,t,r){let n=this._toFilterTextReplacement(r).removeCommonPrefix(e);if(!this._isValid||!this.inlineCompletion.range.getStartPosition().equals(this._getUpdatedRange(r).getStartPosition())||t.lineNumber!==n.range.startLineNumber)return!1;let o=e.getValueInRange(n.range,1).toLowerCase(),s=n.text.toLowerCase(),a=Math.max(0,t.column-n.range.startColumn),l=s.substring(0,a),c=s.substring(a),d=o.substring(0,a),u=o.substring(a),h=e.getLineIndentColumn(n.range.startLineNumber);return n.range.startColumn<=h&&(d=d.trimStart(),d.length===0&&(u=u.trimStart()),l=l.trimStart(),l.length===0&&(c=c.trimStart())),l.startsWith(d)&&!!VP(u,c)}canBeReused(e,t){return this._isValid&&this._getUpdatedRange(void 0).containsPosition(t)&&this.isVisible(e,t,void 0)&&!this._isSmallerThanOriginal(void 0)}_toFilterTextReplacement(e){return new dh(this._getUpdatedRange(e),this.inlineCompletion.filterText)}_isSmallerThanOriginal(e){return A$(this._getUpdatedRange(e)).isBefore(A$(this.inlineCompletion.range))}_getUpdatedRange(e){return this.rangeVersion.read(e),this._updatedRange}_updateRange(e){let t=e.getDecorationRange(this.decorationId);return t?this._updatedRange.equalsRange(t)?!1:(this._updatedRange=t,!0):(this._isValid=!1,!0)}}});function D$(){return xp}function wb(i,e,t,r=nc.default,n={triggerKind:0},o=st.None){return yb(this,void 0,void 0,function*(){let s=new mr;t=t.clone();let a=e.getWordAtPosition(t),l=a?new B(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):B.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],u=new le,h=[],f=!1,m=(w,_,E)=>{var L,A,O;let U=!1;if(!_)return U;for(let Y of _.suggestions)if(!r.kindFilter.has(Y.kind)){if(!r.showDeprecated&&(!((L=Y==null?void 0:Y.tags)===null||L===void 0)&&L.includes(1)))continue;Y.range||(Y.range=c),Y.sortText||(Y.sortText=typeof Y.label=="string"?Y.label:Y.label.label),!f&&Y.insertTextRules&&Y.insertTextRules&4&&(f=jo.guessNeedsClipboard(Y.insertText)),d.push(new YA(t,Y,_,w)),U=!0}return Fv(_)&&u.add(_),h.push({providerName:(A=w._debugDisplayName)!==null&&A!==void 0?A:"unknown_provider",elapsedProvider:(O=_.duration)!==null&&O!==void 0?O:-1,elapsedOverall:E.elapsed()}),U},g=(()=>yb(this,void 0,void 0,function*(){if(!xp||r.kindFilter.has(27))return;let w=r.providerItemsToReuse.get(xp);if(w){w.forEach(L=>d.push(L));return}if(r.providerFilter.size>0&&!r.providerFilter.has(xp))return;let _=new mr,E=yield xp.provideCompletionItems(e,t,n,o);m(xp,E,_)}))();for(let w of i.orderedGroups(e)){let _=!1;if(yield Promise.all(w.map(E=>yb(this,void 0,void 0,function*(){if(r.providerItemsToReuse.has(E)){let L=r.providerItemsToReuse.get(E);L.forEach(A=>d.push(A)),_=_||L.length>0;return}if(!(r.providerFilter.size>0&&!r.providerFilter.has(E)))try{let L=new mr,A=yield E.provideCompletionItems(e,t,n,o);_=m(E,A,L)||_}catch(L){Xt(L)}}))),_||o.isCancellationRequested)break}return yield g,o.isCancellationRequested?(u.dispose(),Promise.reject(new Pv)):new XA(d.sort(N0e(r.snippetSortOrder)),f,{entries:h,elapsed:s.elapsed()},u)})}function QA(i,e){if(i.sortTextLow&&e.sortTextLow){if(i.sortTextLowe.sortTextLow)return 1}return i.textLabele.textLabel?1:i.completion.kind-e.completion.kind}function D0e(i,e){if(i.completion.kind!==e.completion.kind){if(i.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return QA(i,e)}function M0e(i,e){if(i.completion.kind!==e.completion.kind){if(i.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return QA(i,e)}function N0e(i){return V2.get(i)}function M$(i,e){var t;(t=i.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}var yb,ct,Ya,YA,nc,xp,XA,V2,Ga,uh=N(()=>{ki();qt();pl();ke();al();zr();Ir();di();et();ra();ch();He();Ji();Vi();wt();Pt();BI();yb=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},ct={Visible:b2,HasFocusedSuggestion:new ht("suggestWidgetHasFocusedSuggestion",!1,b("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new ht("suggestWidgetDetailsVisible",!1,b("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new ht("suggestWidgetMultipleSuggestions",!1,b("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new ht("suggestionMakesTextEdit",!0,b("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new ht("acceptSuggestionOnEnter",!0,b("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new ht("suggestionHasInsertAndReplaceRange",!1,b("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new ht("suggestionInsertMode",void 0,{type:"string",description:b("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new ht("suggestionCanResolve",!1,b("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},Ya=new Me("suggestWidgetStatusBar"),YA=class{constructor(e,t,r,n){var o;this.position=e,this.completion=t,this.container=r,this.provider=n,this.isInvalid=!1,this.score=fl.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:(o=t.label)===null||o===void 0?void 0:o.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,B.isIRange(t.range)?(this.editStart=new Ie(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new Ie(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new Ie(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||B.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new Ie(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new Ie(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new Ie(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||B.spansMultipleLines(t.range.insert)||B.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}resolve(e){return yb(this,void 0,void 0,function*(){if(!this._resolveCache){let t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._resolveDuration=void 0}),r=new mr(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(n=>{Object.assign(this.completion,n),this._resolveDuration=r.elapsed(),t.dispose()},n=>{Yo(n)&&(this._resolveCache=void 0,this._resolveDuration=void 0)})}return this._resolveCache})}},nc=class{constructor(e=2,t=new Set,r=new Set,n=new Map,o=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=r,this.providerItemsToReuse=n,this.showDeprecated=o}};nc.default=new nc;XA=class{constructor(e,t,r,n){this.items=e,this.needsClipboard=t,this.durations=r,this.disposable=n}};V2=new Map;V2.set(0,D0e);V2.set(2,M0e);V2.set(1,QA);Dt.registerCommand("_executeCompletionItemProvider",(i,...e)=>yb(void 0,void 0,void 0,function*(){let[t,r,n,o]=e;Bt(yt.isUri(t)),Bt(Ie.isIPosition(r)),Bt(typeof n=="string"||!n),Bt(typeof o=="number"||!o);let{completionProvider:s}=i.get(Se),a=yield i.get(Cr).createModelReference(t);try{let l={incomplete:!1,suggestions:[]},c=[],d=a.object.textEditorModel.validatePosition(r),u=yield wb(s,a.object.textEditorModel,d,void 0,{triggerCharacter:n!=null?n:void 0,triggerKind:n?1:0});for(let h of u.items)c.length<(o!=null?o:0)&&c.push(h.resolve(st.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>u.disposable.dispose(),100)}}finally{a.dispose()}}));Ga=class{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}}}});var N$=N(()=>{});var R$=N(()=>{N$()});function ZA(i,e=Rc){return YP(i,e)?i.charAt(0).toUpperCase()+i.slice(1):i}var P$=N(()=>{_re();Tn()});var R0e,P0e,mYe,xb,Cb,Sb,kb,Eb,oc,Tb,Ib,O$=N(()=>{P$();tP();Lo();Ni();H0();Hr();ch();He();U_();R0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},P0e=function(i,e){return function(t,r){e(t,r,i)}},mYe=Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,CURRENT_TIMEZONE_OFFSET:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0}),xb=class{constructor(e){this._delegates=e}resolve(e){for(let t of this._delegates){let r=t.resolve(e);if(r!==void 0)return r}}},Cb=class{constructor(e,t,r,n){this._model=e,this._selection=t,this._selectionIdx=r,this._overtypingCapturer=n}resolve(e){let{name:t}=e;if(t==="SELECTION"||t==="TM_SELECTED_TEXT"){let r=this._model.getValueInRange(this._selection)||void 0,n=this._selection.startLineNumber!==this._selection.endLineNumber;if(!r&&this._overtypingCapturer){let o=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);o&&(r=o.value,n=o.multiline)}if(r&&n&&e.snippet){let o=this._model.getLineContent(this._selection.startLineNumber),s=qi(o,0,this._selection.startColumn-1),a=s;e.snippet.walk(c=>c===e?!1:(c instanceof Rr&&(a=qi(hu(c.value).pop())),!0));let l=zc(a,s);r=r.replace(/(\r\n|\r|\n)(.*)/g,(c,d,u)=>`${d}${a.substr(l)}${u}`)}return r}else{if(t==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(t==="TM_CURRENT_WORD"){let r=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return r&&r.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)}}}},Sb=class{constructor(e,t){this._labelService=e,this._model=t}resolve(e){let{name:t}=e;if(t==="TM_FILENAME")return ef(this._model.uri.fsPath);if(t==="TM_FILENAME_BASE"){let r=ef(this._model.uri.fsPath),n=r.lastIndexOf(".");return n<=0?r:r.slice(0,n)}else{if(t==="TM_DIRECTORY")return eP(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(uf(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})}}},kb=class{constructor(e,t,r,n){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=r,this._spread=n}resolve(e){if(e.name!=="CLIPBOARD")return;let t=this._readClipboardText();if(t){if(this._spread){let r=t.split(/\r\n|\n|\r/).filter(n=>!hP(n));if(r.length===this._selectionCount)return r[this._selectionIdx]}return t}}},Eb=class{constructor(e,t,r){this._model=e,this._selection=t,this._languageConfigurationService=r}resolve(e){let{name:t}=e,r=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),n=this._languageConfigurationService.getLanguageConfiguration(r).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}}};Eb=R0e([P0e(2,Ot)],Eb);oc=class i{constructor(){this._date=new Date}resolve(e){let{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 i.dayNames[this._date.getDay()];if(t==="CURRENT_DAY_NAME_SHORT")return i.dayNamesShort[this._date.getDay()];if(t==="CURRENT_MONTH_NAME")return i.monthNames[this._date.getMonth()];if(t==="CURRENT_MONTH_NAME_SHORT")return i.monthNamesShort[this._date.getMonth()];if(t==="CURRENT_SECONDS_UNIX")return String(Math.floor(this._date.getTime()/1e3));if(t==="CURRENT_TIMEZONE_OFFSET"){let r=this._date.getTimezoneOffset(),n=r>0?"-":"+",o=Math.trunc(Math.abs(r/60)),s=o<10?"0"+o:o,a=Math.abs(r)-o*60,l=a<10?"0"+a:a;return n+s+":"+l}}};oc.dayNames=[b("Sunday","Sunday"),b("Monday","Monday"),b("Tuesday","Tuesday"),b("Wednesday","Wednesday"),b("Thursday","Thursday"),b("Friday","Friday"),b("Saturday","Saturday")];oc.dayNamesShort=[b("SundayShort","Sun"),b("MondayShort","Mon"),b("TuesdayShort","Tue"),b("WednesdayShort","Wed"),b("ThursdayShort","Thu"),b("FridayShort","Fri"),b("SaturdayShort","Sat")];oc.monthNames=[b("January","January"),b("February","February"),b("March","March"),b("April","April"),b("May","May"),b("June","June"),b("July","July"),b("August","August"),b("September","September"),b("October","October"),b("November","November"),b("December","December")];oc.monthNamesShort=[b("JanuaryShort","Jan"),b("FebruaryShort","Feb"),b("MarchShort","Mar"),b("AprilShort","Apr"),b("MayShort","May"),b("JuneShort","Jun"),b("JulyShort","Jul"),b("AugustShort","Aug"),b("SeptemberShort","Sep"),b("OctoberShort","Oct"),b("NovemberShort","Nov"),b("DecemberShort","Dec")];Tb=class{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;let t=TF(this._workspaceService.getWorkspace());if(!EF(t)){if(e.name==="WORKSPACE_NAME")return this._resolveWorkspaceName(t);if(e.name==="WORKSPACE_FOLDER")return this._resoveWorkspacePath(t)}}_resolveWorkspaceName(e){if(pk(e))return ef(e.uri.path);let t=ef(e.configPath.path);return t.endsWith(mk)&&(t=t.substr(0,t.length-mk.length-1)),t}_resoveWorkspacePath(e){if(pk(e))return ZA(e.uri.fsPath);let t=ef(e.configPath.path),r=e.configPath.fsPath;return r.endsWith(t)&&(r=r.substr(0,r.length-t.length-1)),r?ZA(r):"/"}},Ib=class{resolve(e){let{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 Td()}}});var O0e,F0e,$s,Ab,F$,Cp,JA=N(()=>{mi();ke();Ni();R$();_a();et();Ar();Hr();Ur();ey();U_();ch();O$();O0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},F0e=function(i,e){return function(t,r){e(t,r,i)}},Ab=class i{constructor(e,t,r){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=r,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=$3(t.placeholders,vo.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;let e=this._editor.getModel();this._editor.changeDecorations(t=>{for(let r of this._snippet.placeholders){let n=this._snippet.offset(r),o=this._snippet.fullLen(r),s=B.fromPositions(e.getPositionAt(this._offset+n),e.getPositionAt(this._offset+n+o)),a=r.isFinalTabstop?i._decor.inactiveFinal:i._decor.inactive,l=t.addDecoration(s,a);this._placeholderDecorations.set(r,l)}})}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){let n=[];for(let o of this._placeholderGroups[this._placeholderGroupsIdx])if(o.transform){let s=this._placeholderDecorations.get(o),a=this._editor.getModel().getDecorationRange(s),l=this._editor.getModel().getValueInRange(a),c=o.transform.resolve(l).split(/\r\n|\r|\n/);for(let d=1;d0&&this._editor.executeEdits("snippet.placeholderTransform",n)}let t=!1;e===!0&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,t=!0);let r=this._editor.getModel().changeDecorations(n=>{let o=new Set,s=[];for(let a of this._placeholderGroups[this._placeholderGroupsIdx]){let l=this._placeholderDecorations.get(a),c=this._editor.getModel().getDecorationRange(l);s.push(new Qe(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(a),n.changeDecorationOptions(l,a.isFinalTabstop?i._decor.activeFinal:i._decor.active),o.add(a);for(let d of this._snippet.enclosingPlaceholders(a)){let u=this._placeholderDecorations.get(d);n.changeDecorationOptions(u,d.isFinalTabstop?i._decor.activeFinal:i._decor.active),o.add(d)}}for(let[a,l]of this._placeholderDecorations)o.has(a)||n.changeDecorationOptions(l,a.isFinalTabstop?i._decor.inactiveFinal:i._decor.inactive);return s});return t?this.move(e):r!=null?r:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof vo){let r=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(r).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){let[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){let e=new Map;for(let t of this._placeholderGroups){let r;for(let n of t){if(n.isFinalTabstop)break;r||(r=[],e.set(n.index,r));let o=this._placeholderDecorations.get(n),s=this._editor.getModel().getDecorationRange(o);if(!s){e.delete(n.index);break}r.push(s)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;let e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!(e!=null&&e.choice))return;let t=this._placeholderDecorations.get(e);if(!t)return;let r=this._editor.getModel().getDecorationRange(t);if(r)return{range:r,choice:e.choice}}get hasChoice(){let e=!1;return this._snippet.walk(t=>(e=t instanceof lh,!e)),e}merge(e){let t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(r=>{for(let n of this._placeholderGroups[this._placeholderGroupsIdx]){let o=e.shift();console.assert(o._offset!==-1),console.assert(!o._placeholderDecorations);let s=o._snippet.placeholderInfo.last.index;for(let l of o._snippet.placeholderInfo.all)l.isFinalTabstop?l.index=n.index+(s+1)/this._nestingLevel:l.index=n.index+l.index/this._nestingLevel;this._snippet.replace(n,o._snippet.children);let a=this._placeholderDecorations.get(n);r.removeDecoration(a),this._placeholderDecorations.delete(n);for(let l of o._snippet.placeholders){let c=o._snippet.offset(l),d=o._snippet.fullLen(l),u=B.fromPositions(t.getPositionAt(o._offset+c),t.getPositionAt(o._offset+c+d)),h=r.addDecoration(u,i._decor.inactive);this._placeholderDecorations.set(l,h)}}this._placeholderGroups=$3(this._snippet.placeholders,vo.compareByIndex)})}};Ab._decor={active:mt.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:mt.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:mt.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:mt.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};F$={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},Cp=$s=class{static adjustWhitespace(e,t,r,n,o){let s=e.getLineContent(t.lineNumber),a=qi(s,0,t.column-1),l;return n.walk(c=>{if(!(c instanceof Rr)||c.parent instanceof lh||o&&!o.has(c))return!0;let d=c.value.split(/\r\n|\r|\n/);if(r){let h=n.offset(c);if(h===0)d[0]=e.normalizeIndentation(d[0]);else{l=l!=null?l:n.toString();let f=l.charCodeAt(h-1);(f===10||f===13)&&(d[0]=e.normalizeIndentation(a+d[0]))}for(let f=1;fA.get(xl)),m=e.invokeWithinContext(A=>new Sb(A.get(Tl),h)),g=()=>a,w=h.getValueInRange($s.adjustSelection(h,e.getSelection(),r,0)),_=h.getValueInRange($s.adjustSelection(h,e.getSelection(),0,n)),E=h.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),L=e.getSelections().map((A,O)=>({selection:A,idx:O})).sort((A,O)=>B.compareRangesUsingStarts(A.selection,O.selection));for(let{selection:A,idx:O}of L){let U=$s.adjustSelection(h,A,r,0),Y=$s.adjustSelection(h,A,0,n);w!==h.getValueInRange(U)&&(U=A),_!==h.getValueInRange(Y)&&(Y=A);let oe=A.setStartPosition(U.startLineNumber,U.startColumn).setEndPosition(Y.endLineNumber,Y.endColumn),te=new jo().parse(t,!0,o),Z=oe.getStartPosition(),ve=$s.adjustWhitespace(h,Z,s||O>0&&E!==h.getLineFirstNonWhitespaceColumn(A.positionLineNumber),te);te.resolveVariables(new xb([m,new kb(g,O,L.length,e.getOption(77)==="spread"),new Cb(h,A,O,l),new Eb(h,A,c),new oc,new Tb(f),new Ib])),d[O]=ii.replace(oe,te.toString()),d[O].identifier={major:O,minor:0},d[O]._isTracked=!0,u[O]=new Ab(e,te,ve)}return{edits:d,snippets:u}}static createEditsAndSnippetsFromEdits(e,t,r,n,o,s,a){if(!e.hasModel()||t.length===0)return{edits:[],snippets:[]};let l=[],c=e.getModel(),d=new jo,u=new wp,h=new xb([e.invokeWithinContext(m=>new Sb(m.get(Tl),c)),new kb(()=>o,0,e.getSelections().length,e.getOption(77)==="spread"),new Cb(c,e.getSelection(),0,s),new Eb(c,e.getSelection(),a),new oc,new Tb(e.invokeWithinContext(m=>m.get(xl))),new Ib]);t=t.sort((m,g)=>B.compareRangesUsingStarts(m.range,g.range));let f=0;for(let m=0;m0){let O=t[m-1].range,U=B.fromPositions(O.getEndPosition(),g.getStartPosition()),Y=new Rr(c.getValueInRange(U));u.appendChild(Y),f+=Y.value.length}let _=d.parseFragment(w,u);$s.adjustWhitespace(c,g.getStartPosition(),!0,u,new Set(_)),u.resolveVariables(h);let E=u.toString(),L=E.slice(f);f=E.length;let A=ii.replace(g,L);A.identifier={major:m,minor:0},A._isTracked=!0,l.push(A)}return d.ensureFinalTabstop(u,r,!0),{edits:l,snippets:[new Ab(e,u,"")]}}constructor(e,t,r=F$,n){this._editor=e,this._template=t,this._options=r,this._languageConfigurationService=n,this._templateMerges=[],this._snippets=[]}dispose(){ji(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;let{edits:e,snippets:t}=typeof this._template=="string"?$s.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):$s.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,r=>{let n=r.filter(o=>!!o.identifier);for(let o=0;oQe.fromPositions(o.range.getEndPosition()))}),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=F$){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);let{edits:r,snippets:n}=$s.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",r,o=>{let s=o.filter(l=>!!l.identifier);for(let l=0;lQe.fromPositions(l.range.getEndPosition()))})}next(){let e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){let e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){let t=[];for(let r of this._snippets){let n=r.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;let e=this._editor.getSelections();if(e.length{o.push(...n.get(s))})}e.sort(B.compareRangesUsingStarts);for(let[r,n]of t){if(n.length!==e.length){t.delete(r);continue}n.sort(B.compareRangesUsingStarts);for(let o=0;o0}};Cp=$s=O0e([F0e(3,Ot)],Cp)});var z0e,q2,Sp,z$,nr,K2,kp=N(()=>{ke();zr();lt();di();ti();Hr();Pt();uh();He();wt();Yv();JA();z0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},q2=function(i,e){return function(t,r){e(t,r,i)}},z$={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},nr=Sp=class{static get(e){return e.getContribution(Sp.ID)}constructor(e,t,r,n,o){this._editor=e,this._logService=t,this._languageFeaturesService=r,this._languageConfigurationService=o,this._snippetListener=new le,this._modelVersionId=-1,this._inSnippet=Sp.InSnippetMode.bindTo(n),this._hasNextTabstop=Sp.HasNextTabstop.bindTo(n),this._hasPrevTabstop=Sp.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=="undefined"?z$:Object.assign(Object.assign({},z$),t))}catch(r){this.cancel(),this._logService.error(r),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 r;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&typeof e!="string"&&this.cancel(),this._session?(Bt(typeof e=="string"),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new Cp(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),!((r=this._session)===null||r===void 0)&&r.hasChoice){let n={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(d,u)=>{if(!this._session||d!==this._editor.getModel()||!Ie.equals(this._editor.getPosition(),u))return;let{activeChoice:h}=this._session;if(!h||h.choice.options.length===0)return;let f=d.getValueInRange(h.range),m=!!h.choice.options.find(w=>w.value===f),g=[];for(let w=0;w{s==null||s.dispose(),a=!1},c=()=>{a||(s=this._languageFeaturesService.completionProvider.register({language:o.getLanguageId(),pattern:o.uri.fsPath,scheme:o.uri.scheme,exclusive:!0},n),this._snippetListener.add(s),a=!0)};this._choiceCompletions={provider:n,enable:c,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}let{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(()=>{M$(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()}};nr.ID="snippetController2";nr.InSnippetMode=new ht("inSnippetMode",!1,b("inSnippetMode","Whether the editor in current in snippet mode"));nr.HasNextTabstop=new ht("hasNextTabstop",!1,b("hasNextTabstop","Whether there is a next tab stop when in snippet mode"));nr.HasPrevTabstop=new ht("hasPrevTabstop",!1,b("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode"));nr=Sp=z0e([q2(1,Hc),q2(2,Se),q2(3,it),q2(4,Ot)],nr);Ue(nr.ID,nr,4);K2=Fi.bindToContribution(nr.get);We(new K2({id:"jumpToNextSnippetPlaceholder",precondition:fe.and(nr.InSnippetMode,nr.HasNextTabstop),handler:i=>i.next(),kbOpts:{weight:100+30,kbExpr:F.editorTextFocus,primary:2}}));We(new K2({id:"jumpToPrevSnippetPlaceholder",precondition:fe.and(nr.InSnippetMode,nr.HasPrevTabstop),handler:i=>i.prev(),kbOpts:{weight:100+30,kbExpr:F.editorTextFocus,primary:1026}}));We(new K2({id:"leaveSnippet",precondition:nr.InSnippetMode,handler:i=>i.cancel(!0),kbOpts:{weight:100+30,kbExpr:F.editorTextFocus,primary:9,secondary:[1033]}}));We(new K2({id:"acceptSnippet",precondition:nr.InSnippetMode,handler:i=>i.finish()}))});var B0e,eL,sc,io,$2,B$=N(()=>{mi();qt();ke();wa();zr();_a();di();et();fn();Hr();N2();L$();vp();kp();Vi();Ut();B0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},eL=function(i,e){return function(t,r){e(t,r,i)}},sc=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};(function(i){i[i.Undo=0]="Undo",i[i.Redo=1]="Redo",i[i.AcceptWord=2]="AcceptWord",i[i.Other=3]="Other"})(io||(io={}));$2=class extends ce{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(e,t,r,n,o,s,a,l,c,d,u,h){super(),this.textModel=e,this.selectedSuggestItem=t,this.cursorPosition=r,this.textModelVersionId=n,this._debounceValue=o,this._suggestPreviewEnabled=s,this._suggestPreviewMode=a,this._inlineSuggestMode=l,this._enabled=c,this._instantiationService=d,this._commandService=u,this._languageConfigurationService=h,this._source=this._register(this._instantiationService.createInstance(j2,this.textModel,this.textModelVersionId,this._debounceValue)),this._isActive=ya("isActive",!1),this._forceUpdate=qF("forceUpdate"),this._selectedInlineCompletionId=ya("selectedInlineCompletionId",void 0),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([io.Redo,io.Undo,io.AcceptWord]),this._fetchInlineCompletions=UF("fetch inline completions",{createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:pa.Automatic}),handleChange:(m,g)=>(m.didChange(this.textModelVersionId)&&this._preserveCurrentCompletionReasons.has(m.change)?g.preserveCurrentCompletion=!0:m.didChange(this._forceUpdate)&&(g.inlineCompletionTriggerKind=m.change),!0)},(m,g)=>{if(this._forceUpdate.read(m),!(this._enabled.read(m)&&this.selectedSuggestItem.read(m)||this._isActive.read(m))){this._source.cancelUpdate();return}this.textModelVersionId.read(m);let _=this.selectedInlineCompletion.get(),E=g.preserveCurrentCompletion||_!=null&&_.forwardStable?_:void 0,L=this._source.suggestWidgetInlineCompletions.get(),A=this.selectedSuggestItem.read(m);if(L&&!A){let Y=this._source.inlineCompletions.get();on(oe=>{Y&&L.request.versionId>Y.request.versionId&&this._source.inlineCompletions.set(L.clone(),oe),this._source.clearSuggestWidgetInlineCompletions(oe)})}let O=this.cursorPosition.read(m),U={triggerKind:g.inlineCompletionTriggerKind,selectedSuggestionInfo:A==null?void 0:A.toSelectedSuggestionInfo()};return this._source.fetch(O,U,E)}),this._filteredInlineCompletionItems=No(m=>{let g=this._source.inlineCompletions.read(m);if(!g)return[];let w=this.cursorPosition.read(m);return g.inlineCompletions.filter(E=>E.isVisible(this.textModel,w,m))}),this.selectedInlineCompletionIndex=No(m=>{let g=this._selectedInlineCompletionId.read(m),w=this._filteredInlineCompletionItems.read(m),_=this._selectedInlineCompletionId===void 0?-1:w.findIndex(E=>E.semanticId===g);return _===-1?(this._selectedInlineCompletionId.set(void 0,void 0),0):_}),this.selectedInlineCompletion=No(m=>{let g=this._filteredInlineCompletionItems.read(m),w=this.selectedInlineCompletionIndex.read(m);return g[w]}),this.lastTriggerKind=this._source.inlineCompletions.map(m=>m==null?void 0:m.request.context.triggerKind),this.inlineCompletionsCount=No(m=>{if(this.lastTriggerKind.read(m)===pa.Explicit)return this._filteredInlineCompletionItems.read(m).length}),this.state=xk({equalityComparer:(m,g)=>!m||!g?m===g:NA(m.ghostText,g.ghostText)&&m.inlineCompletion===g.inlineCompletion&&m.suggestItem===g.suggestItem},m=>{var g;let w=this.textModel,_=this.selectedSuggestItem.read(m);if(_){let E=_.toSingleTextEdit().removeCommonPrefix(w),L=this._computeAugmentedCompletion(E,m);if(!this._suggestPreviewEnabled.read(m)&&!L)return;let O=(g=L==null?void 0:L.edit)!==null&&g!==void 0?g:E,U=L?L.edit.text.length-E.text.length:0,Y=this._suggestPreviewMode.read(m),oe=this.cursorPosition.read(m),te=O.computeGhostText(w,Y,oe,U);return{ghostText:te!=null?te:new Ld(O.range.endLineNumber,[]),inlineCompletion:L==null?void 0:L.completion,suggestItem:_}}else{if(!this._isActive.read(m))return;let E=this.selectedInlineCompletion.read(m);if(!E)return;let L=E.toSingleTextEdit(m),A=this._inlineSuggestMode.read(m),O=this.cursorPosition.read(m),U=L.computeGhostText(w,A,O);return U?{ghostText:U,inlineCompletion:E,suggestItem:void 0}:void 0}}),this.ghostText=xk({equalityComparer:NA},m=>{let g=this.state.read(m);if(g)return g.ghostText}),this._register(KF(this._fetchInlineCompletions,!0));let f;this._register(pn(m=>{var g,w;let _=this.state.read(m),E=_==null?void 0:_.inlineCompletion;if((E==null?void 0:E.semanticId)!==(f==null?void 0:f.semanticId)&&(f=E,E)){let L=E.inlineCompletion,A=L.source;(w=(g=A.provider).handleItemDidShow)===null||w===void 0||w.call(g,A.inlineCompletions,L.sourceInlineCompletion,L.insertText)}}))}trigger(e){return sc(this,void 0,void 0,function*(){this._isActive.set(!0,e),yield this._fetchInlineCompletions.get()})}triggerExplicitly(e){return sc(this,void 0,void 0,function*(){wk(e,t=>{this._isActive.set(!0,t),this._forceUpdate.trigger(t,pa.Explicit)}),yield this._fetchInlineCompletions.get()})}stop(e){wk(e,t=>{this._isActive.set(!1,t),this._source.clear(t)})}_computeAugmentedCompletion(e,t){let r=this.textModel,n=this._source.suggestWidgetInlineCompletions.read(t),o=n?n.inlineCompletions:[this.selectedInlineCompletion.read(t)].filter($9);return NP(o,a=>{let l=a.toSingleTextEdit(t);return l=l.removeCommonPrefix(r,B.fromPositions(l.range.getStartPosition(),e.range.getEndPosition())),l.augments(e)?{edit:l,completion:a}:void 0})}_deltaSelectedInlineCompletionIndex(e){return sc(this,void 0,void 0,function*(){yield this.triggerExplicitly();let t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){let r=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[r].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)})}next(){return sc(this,void 0,void 0,function*(){yield this._deltaSelectedInlineCompletionIndex(1)})}previous(){return sc(this,void 0,void 0,function*(){yield this._deltaSelectedInlineCompletionIndex(-1)})}accept(e){var t;return sc(this,void 0,void 0,function*(){if(e.getModel()!==this.textModel)throw new Im;let r=this.state.get();if(!r||r.ghostText.isEmpty()||!r.inlineCompletion)return;let n=r.inlineCompletion.toInlineCompletion(void 0);e.pushUndoStop(),n.snippetInfo?(e.executeEdits("inlineSuggestion.accept",[ii.replaceMove(n.range,""),...n.additionalTextEdits]),e.setPosition(n.snippetInfo.range.getStartPosition()),(t=nr.get(e))===null||t===void 0||t.insert(n.snippetInfo.snippet,{undoStopBefore:!1})):e.executeEdits("inlineSuggestion.accept",[ii.replaceMove(n.range,n.insertText),...n.additionalTextEdits]),n.command&&n.source.addRef(),on(o=>{this._source.clear(o),this._isActive.set(!1,o)}),n.command&&(yield this._commandService.executeCommand(n.command.id,...n.command.arguments||[]).then(void 0,Xt),n.source.removeRef())})}acceptNextWord(e){return sc(this,void 0,void 0,function*(){yield this._acceptNext(e,(t,r)=>{let n=this.textModel.getLanguageIdAtPosition(t.lineNumber,t.column),o=this._languageConfigurationService.getLanguageConfiguration(n),s=new RegExp(o.wordDefinition.source,o.wordDefinition.flags.replace("g","")),a=r.match(s),l=0;a&&a.index!==void 0?a.index===0?l=a[0].length:l=a.index:l=r.length;let d=/\s+/g.exec(r);return d&&d.index!==void 0&&d.index+d[0].length{let n=r.match(/\n/);return n&&n.index!==void 0?n.index+1:r.length})})}_acceptNext(e,t){return sc(this,void 0,void 0,function*(){if(e.getModel()!==this.textModel)throw new Im;let r=this.state.get();if(!r||r.ghostText.isEmpty()||!r.inlineCompletion)return;let n=r.ghostText,o=r.inlineCompletion.toInlineCompletion(void 0);if(o.snippetInfo||o.filterText!==o.insertText){yield this.accept(e);return}let s=n.parts[0],a=new Ie(n.lineNumber,s.column),l=s.lines.join(` +`),c=t(a,l);if(c===l.length&&n.parts.length===1){this.accept(e);return}let d=l.substring(0,c);this._isAcceptingPartially=!0;try{e.pushUndoStop(),e.executeEdits("inlineSuggestion.accept",[ii.replace(B.fromPositions(a),d)]);let u=gb(d);e.setPosition(mb(a,u))}finally{this._isAcceptingPartially=!1}if(o.source.provider.handlePartialAccept){let u=B.fromPositions(o.range.getStartPosition(),mb(a,gb(d))),h=e.getModel().getValueInRange(u,1);o.source.provider.handlePartialAccept(o.source.inlineCompletions,o.sourceInlineCompletion,h.length)}})}handleSuggestAccepted(e){var t,r;let n=e.toSingleTextEdit().removeCommonPrefix(this.textModel),o=this._computeAugmentedCompletion(n,void 0);if(!o)return;let s=o.completion.inlineCompletion;(r=(t=s.source.provider).handlePartialAccept)===null||r===void 0||r.call(t,s.source.inlineCompletions,s.sourceInlineCompletion,n.text.length)}};$2=B0e([eL(9,Ke),eL(10,_i),eL(11,Ot)],$2)});var H0e,H$,Lb,Db,G2,tL,iL,Mb,Ep,rL=N(()=>{jt();ke();df();Hre();fn();Sr();hl();Ut();wu();H0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},H$=function(i,e){return function(t,r){e(t,r,i)}},Db=class{constructor(e){this.name=e}select(e,t,r){if(r.length===0)return 0;let n=r[0].score[0];for(let o=0;ol&&u.type===r[c].completion.kind&&u.insertText===r[c].completion.insertText&&(l=u.touch,a=c),r[c].completion.preselect&&s===-1)return s=c}return a!==-1?a:s!==-1?s:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();let t=0;for(let[r,n]of e)n.touch=t,n.type=typeof n.type=="number"?n.type:Xm.fromString(n.type),this._cache.set(r,n);this._seq=this._cache.size}},iL=class extends Db{constructor(){super("recentlyUsedByPrefix"),this._trie=kF.forStrings(),this._seq=0}memorize(e,t,r){let{word:n}=e.getWordUntilPosition(t),o=`${e.getLanguageId()}/${n}`;this._trie.set(o,{type:r.completion.kind,insertText:r.completion.insertText,touch:this._seq++})}select(e,t,r){let{word:n}=e.getWordUntilPosition(t);if(!n)return super.select(e,t,r);let o=`${e.getLanguageId()}/${n}`,s=this._trie.get(o);if(s||(s=this._trie.findSubstr(o)),s)for(let a=0;ae.push([r,t])),e.sort((t,r)=>-(t[1].touch-r[1].touch)).forEach((t,r)=>t[1].touch=r),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(let[t,r]of e)r.type=typeof r.type=="number"?r.type:Xm.fromString(r.type),this._trie.set(t,r)}}},Mb=Lb=class{constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new le,this._persistSoon=new ui(()=>this._saveState(),500),this._disposables.add(e.onWillSaveState(r=>{r.reason===B_.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,r){this._withStrategy(e,t).memorize(e,t,r),this._persistSoon.schedule()}select(e,t,r){return this._withStrategy(e,t).select(e,t,r)}_withStrategy(e,t){var r;let n=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if(((r=this._strategy)===null||r===void 0?void 0:r.name)!==n){this._saveState();let o=Lb._strategyCtors.get(n)||G2;this._strategy=new o;try{let a=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,l=this._storageService.get(`${Lb._storagePrefix}/${n}`,a);l&&this._strategy.fromJSON(JSON.parse(l))}catch(s){}}return this._strategy}_saveState(){if(this._strategy){let t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,r=JSON.stringify(this._strategy);this._storageService.store(`${Lb._storagePrefix}/${this._strategy.name}`,r,t,1)}}};Mb._strategyCtors=new Map([["recentlyUsedByPrefix",iL],["recentlyUsed",tL],["first",G2]]);Mb._storagePrefix="suggest/memories";Mb=Lb=H0e([H$(0,Yn),H$(1,Mt)],Mb);Ep=Qr("ISuggestMemories");en(Ep,Mb,1)});var U0e,j0e,nL,Tp,U$=N(()=>{wt();U0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},j0e=function(i,e){return function(t,r){e(t,r,i)}},Tp=nL=class{constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=nL.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration(r=>r.hasChanged(121)&&this._update()),this._update()}dispose(){var e;this._configListener.dispose(),(e=this._selectionListener)===null||e===void 0||e.dispose(),this._ckAtEnd.reset()}_update(){let e=this._editor.getOption(121)==="on";if(this._enabled!==e)if(this._enabled=e,this._enabled){let t=()=>{if(!this._editor.hasModel()){this._ckAtEnd.set(!1);return}let r=this._editor.getModel(),n=this._editor.getSelection(),o=r.getWordAtPosition(n.getStartPosition());if(!o){this._ckAtEnd.set(!1);return}this._ckAtEnd.set(o.endColumn===n.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(t),t()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};Tp.AtEnd=new ht("atEndOfWord",!1);Tp=nL=U0e([j0e(1,it)],Tp)});var W0e,V0e,Nb,Md,j$=N(()=>{wt();W0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},V0e=function(i,e){return function(t,r){e(t,r,i)}},Md=Nb=class{constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=Nb.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},r){if(e.items.length===0){this.reset();return}if(Nb._moveIndex(!0,e,t)===t){this.reset();return}this._acceptNext=r,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)}static _moveIndex(e,t,r){let n=r;for(let o=t.items.length;o>0&&(n=(n+t.items.length+(e?1:-1))%t.items.length,!(n===r||!t.items[n].completion.additionalTextEdits));o--);return n}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=Nb._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};Md.OtherSuggestions=new ht("hasOtherSuggestions",!1);Md=Nb=W0e([V0e(1,it)],Md)});var Y2,W$=N(()=>{mi();ke();K3();Y2=class{constructor(e,t,r,n){this._disposables=new le,this._disposables.add(r.onDidSuggest(o=>{o.completionModel.items.length===0&&this.reset()})),this._disposables.add(r.onDidCancel(o=>{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(o=>{if(this._active&&!t.isFrozen()&&r.state!==0){let s=o.charCodeAt(o.length-1);this._active.acceptCharacters.has(s)&&e.getOption(0)&&n(this._active.item)}}))}_onItem(e){if(!e||!Ki(e.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===e.item)return;let t=new fu;for(let r of e.item.completion.commitCharacters)r.length>0&&t.add(r.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}});var q0e,Nd,oL=N(()=>{j9();di();et();q0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Nd=class i{provideSelectionRanges(e,t){return q0e(this,void 0,void 0,function*(){let r=[];for(let n of t){let o=[];r.push(o);let s=new Map;yield new Promise(a=>i._bracketsRightYield(a,0,e,n,s)),yield new Promise(a=>i._bracketsLeftYield(a,0,e,n,s,o))}return r})}static _bracketsRightYield(e,t,r,n,o){let s=new Map,a=Date.now();for(;;){if(t>=i._maxRounds){e();break}if(!n){e();break}let l=r.bracketPairs.findNextBracket(n);if(!l){e();break}if(Date.now()-a>i._maxDuration){setTimeout(()=>i._bracketsRightYield(e,t+1,r,n,o));break}if(l.bracketInfo.isOpeningBracket){let d=l.bracketInfo.bracketText,u=s.has(d)?s.get(d):0;s.set(d,u+1)}else{let d=l.bracketInfo.getOpeningBrackets()[0].bracketText,u=s.has(d)?s.get(d):0;if(u-=1,s.set(d,Math.max(0,u)),u<0){let h=o.get(d);h||(h=new zv,o.set(d,h)),h.push(l.range)}}n=l.range.getEndPosition()}}static _bracketsLeftYield(e,t,r,n,o,s){let a=new Map,l=Date.now();for(;;){if(t>=i._maxRounds&&o.size===0){e();break}if(!n){e();break}let c=r.bracketPairs.findPrevBracket(n);if(!c){e();break}if(Date.now()-l>i._maxDuration){setTimeout(()=>i._bracketsLeftYield(e,t+1,r,n,o,s));break}if(c.bracketInfo.isOpeningBracket){let u=c.bracketInfo.bracketText,h=a.has(u)?a.get(u):0;if(h-=1,a.set(u,Math.max(0,h)),h<0){let f=o.get(u);if(f){let m=f.shift();f.size===0&&o.delete(u);let g=B.fromPositions(c.range.getEndPosition(),m.getStartPosition()),w=B.fromPositions(c.range.getStartPosition(),m.getEndPosition());s.push({range:g}),s.push({range:w}),i._addBracketLeading(r,w,s)}}}else{let u=c.bracketInfo.getOpeningBrackets()[0].bracketText,h=a.has(u)?a.get(u):0;a.set(u,h+1)}n=c.range.getStartPosition()}}static _addBracketLeading(e,t,r){if(t.startLineNumber===t.endLineNumber)return;let n=t.startLineNumber,o=e.getLineFirstNonWhitespaceColumn(n);o!==0&&o!==t.startColumn&&(r.push({range:B.fromPositions(new Ie(n,o),t.getEndPosition())}),r.push({range:B.fromPositions(new Ie(n,1),t.getEndPosition())}));let s=n-1;if(s>0){let a=e.getLineFirstNonWhitespaceColumn(s);a===t.startColumn&&a!==e.getLineLastNonWhitespaceColumn(s)&&(r.push({range:B.fromPositions(new Ie(s,a),t.getEndPosition())}),r.push({range:B.fromPositions(new Ie(s,1),t.getEndPosition())}))}}};Nd._maxDuration=30;Nd._maxRounds=2});var K0e,Rd,sL=N(()=>{mi();et();oL();K0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Rd=class i{static create(e,t){return K0e(this,void 0,void 0,function*(){if(!t.getOption(116).localityBonus||!t.hasModel())return i.None;let r=t.getModel(),n=t.getPosition();if(!e.canComputeWordRanges(r.uri))return i.None;let[o]=yield new Nd().provideSelectionRanges(r,[n]);if(o.length===0)return i.None;let s=yield e.computeWordRanges(r.uri,o[0].range);if(!s)return i.None;let a=r.getWordUntilPosition(n);return delete s[a.word],new class extends i{distance(l,c){if(!n.equals(t.getPosition()))return 0;if(c.kind===17)return 2<<20;let d=typeof c.label=="string"?c.label:c.label.label,u=s[d];if(LP(u))return 2<<20;let h=pu(u,B.fromPositions(l),B.compareRangesUsingStarts),f=h>=0?u[h]:u[Math.max(0,~h-1)],m=o.length;for(let g of o){if(!B.containsRange(g.range,f))break;m-=1}return m}}})}};Rd.None=new class extends Rd{distance(){return 0}}});var Rb,Ip,aL=N(()=>{mi();pl();Ni();Rb=class{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}},Ip=class i{constructor(e,t,r,n,o,s,a=a_.default,l=void 0){this.clipboardText=l,this._snippetCompareFn=i._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=n,this._options=o,this._refilterKind=1,this._lineContext=r,this._fuzzyScoreOptions=a,s==="top"?this._snippetCompareFn=i._compareCompletionItemsSnippetsUp:s==="bottom"&&(this._snippetCompareFn=i._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){(this._lineContext.leadingLineContent!==e.leadingLineContent||this._lineContext.characterCountDelta!==e.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta0&&r[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;let e=[],{leadingLineContent:t,characterCountDelta:r}=this._lineContext,n="",o="",s=this._refilterKind===1?this._items:this._filteredItems,a=[],l=!this._options.filterGraceful||s.length>2e3?l_:$P;for(let c=0;c=f)d.score=fl.Default;else if(typeof d.completion.filterText=="string"){let g=l(n,o,m,d.completion.filterText,d.filterTextLow,0,this._fuzzyScoreOptions);if(!g)continue;mP(d.completion.filterText,d.textLabel)===0?d.score=g:(d.score=KP(n,o,m,d.textLabel,d.labelLow,0),d.score[0]=g[0])}else{let g=l(n,o,m,d.textLabel,d.labelLow,0,this._fuzzyScoreOptions);if(!g)continue;d.score=g}}d.idx=c,d.distance=this._wordDistance.distance(d.position,d.completion),a.push(d),e.push(d.textLabel.length)}this._filteredItems=a.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?AP(e.length-.85,e,(c,d)=>c-d):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 i._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 i._compareCompletionItems(e,t)}}});function Y0e(i,e,t){if(!e.getContextKeyValue(_r.inlineSuggestionVisible.key))return!0;let r=e.getContextKeyValue(_r.suppressSuggestions.key);return r!==void 0?!r:!i.getOption(61).suppressSuggestions}function X0e(i,e,t){if(!e.getContextKeyValue("inlineSuggestionVisible"))return!0;let r=e.getContextKeyValue(_r.suppressSuggestions.key);return r!==void 0?!r:!i.getOption(61).suppressSuggestions}var $0e,Pd,G0e,lL,ac,X2,V$=N(()=>{jt();ki();qt();ei();ke();Ni();Ar();q_();sL();Zm();Sr();wt();Yv();Bc();aL();uh();Pt();pl();zr();D2();kp();Bre();$0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Pd=function(i,e){return function(t,r){e(t,r,i)}},G0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},ac=class{static shouldAutoTrigger(e){if(!e.hasModel())return!1;let t=e.getModel(),r=e.getPosition();t.tokenization.tokenizeIfCheap(r.lineNumber);let n=t.getWordAtPosition(r);return!(!n||n.endColumn!==r.column&&n.startColumn+1!==r.column||!isNaN(Number(n.word)))}constructor(e,t,r){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=r}};X2=lL=class{constructor(e,t,r,n,o,s,a,l,c){this._editor=e,this._editorWorkerService=t,this._clipboardService=r,this._telemetryService=n,this._logService=o,this._contextKeyService=s,this._configurationService=a,this._languageFeaturesService=l,this._envService=c,this._toDispose=new le,this._triggerCharacterListener=new le,this._triggerQuickSuggest=new aa,this._triggerState=void 0,this._completionDisposables=new le,this._onDidCancel=new Je,this._onDidTrigger=new Je,this._onDidSuggest=new Je,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new Qe(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 d=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{d=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{d=!1,this._onCompositionEnd()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(u=>{d||this._onCursorChange(u)})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{!d&&this._triggerState!==void 0&&this._refilterCompletionItems()})),this._updateTriggerCharacters()}dispose(){ji(this._triggerCharacterListener),ji([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(89)||!this._editor.hasModel()||!this._editor.getOption(119))return;let e=new Map;for(let r of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(let n of r.triggerCharacters||[]){let o=e.get(n);o||(o=new Set,o.add(D$()),e.set(n,o)),o.add(r)}let t=r=>{var n;if(!X0e(this._editor,this._contextKeyService,this._configurationService)||ac.shouldAutoTrigger(this._editor))return;if(!r){let a=this._editor.getPosition();r=this._editor.getModel().getLineContent(a.lineNumber).substr(0,a.column-1)}let o="";vP(r.charCodeAt(r.length-1))?bP(r.charCodeAt(r.length-2))&&(o=r.substr(r.length-2)):o=r.charAt(r.length-1);let s=e.get(o);if(s){let a=new Map;if(this._completionModel)for(let[l,c]of this._completionModel.getItemsByProvider())s.has(l)||a.set(l,c);this.trigger({auto:!0,triggerKind:1,triggerCharacter:o,retrigger:!!this._completionModel,clipboardText:(n=this._completionModel)===null||n===void 0?void 0:n.clipboardText,completionOptions:{providerFilter:s,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;let 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;Ga.isAllOff(this._editor.getOption(87))||this._editor.getOption(116).snippetsPreventQuickSuggestions&&(!((e=nr.get(this._editor))===null||e===void 0)&&e.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(this._triggerState!==void 0||!ac.shouldAutoTrigger(this._editor)||!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;let t=this._editor.getModel(),r=this._editor.getPosition(),n=this._editor.getOption(87);if(!Ga.isAllOff(n)){if(!Ga.isAllOn(n)){t.tokenization.tokenizeIfCheap(r.lineNumber);let o=t.tokenization.getLineTokens(r.lineNumber),s=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(r.column-1-1,0)));if(Ga.valueFor(n,s)!=="on")return}Y0e(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(t)&&this.trigger({auto:!0})}},this._editor.getOption(88)))}_refilterCompletionItems(){Bt(this._editor.hasModel()),Bt(this._triggerState!==void 0);let e=this._editor.getModel(),t=this._editor.getPosition(),r=new ac(e,t,Object.assign(Object.assign({},this._triggerState),{refilter:!0}));this._onNewContext(r)}trigger(e){var t,r,n,o,s,a;if(!this._editor.hasModel())return;let l=this._editor.getModel(),c=new ac(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=c;let d={triggerKind:(r=e.triggerKind)!==null&&r!==void 0?r:0};e.triggerCharacter&&(d={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new zi;let u=this._editor.getOption(110),h=1;switch(u){case"top":h=0;break;case"bottom":h=2;break}let{itemKind:f,showDeprecated:m}=lL._createSuggestFilter(this._editor),g=new nc(h,(o=(n=e.completionOptions)===null||n===void 0?void 0:n.kindFilter)!==null&&o!==void 0?o:f,(s=e.completionOptions)===null||s===void 0?void 0:s.providerFilter,(a=e.completionOptions)===null||a===void 0?void 0:a.providerItemsToReuse,m),w=Rd.create(this._editorWorkerService,this._editor),_=wb(this._languageFeaturesService.completionProvider,l,this._editor.getPosition(),g,d,this._requestToken.token);Promise.all([_,w]).then(([E,L])=>G0e(this,void 0,void 0,function*(){var A;if((A=this._requestToken)===null||A===void 0||A.dispose(),!this._editor.hasModel())return;let O=e==null?void 0:e.clipboardText;if(!O&&E.needsClipboard&&(O=yield this._clipboardService.readText()),this._triggerState===void 0)return;let U=this._editor.getModel(),Y=new ac(U,this._editor.getPosition(),e),oe=Object.assign(Object.assign({},a_.default),{firstMatchCanBeWeak:!this._editor.getOption(116).matchOnWordStartOnly});if(this._completionModel=new Ip(E.items,this._context.column,{leadingLineContent:Y.leadingLineContent,characterCountDelta:Y.column-this._context.column},L,this._editor.getOption(116),this._editor.getOption(110),oe,O),this._completionDisposables.add(E.disposable),this._onNewContext(Y),this._reportDurationsTelemetry(E.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(let te of E.items)te.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${te.provider._debugDisplayName}`,te.completion)})).catch(ft)}_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){let t=new Set;e.getOption(110)==="none"&&t.add(27);let n=e.getOption(116);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(qi(e.leadingLineContent)!==qi(this._context.leadingLineContent)){this.cancel();return}if(e.columnthis._context.leadingWord.startColumn){if(ac.shouldAutoTrigger(this._editor)&&this._context){let r=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:r}})}return}if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&e.leadingWord.word.length!==0){let t=new Map,r=new Set;for(let[n,o]of this._completionModel.getItemsByProvider())o.length>0&&o[0].container.incomplete?r.add(n):t.set(n,o);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:r,providerItemsToReuse:t}})}else{let t=this._completionModel.lineContext,r=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},this._completionModel.items.length===0){let n=ac.shouldAutoTrigger(this._editor);if(!this._context){this.cancel();return}if(n&&this._context.leadingWord.endColumn0,r&&e.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:r})}}}}};X2=lL=$0e([Pd(1,kl),Pd(2,As),Pd(3,Ln),Pd(4,Hc),Pd(5,it),Pd(6,Mt),Pd(7,Se),Pd(8,SF)],X2)});var Pb,q$=N(()=>{ke();Pb=class i{constructor(e,t){this._disposables=new le,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType(()=>{if(this._locked||!e.hasModel())return;let r=e.getSelections(),n=r.length,o=!1;for(let a=0;ai._maxSelectionLength)return;this._lastOvertyped[a]={value:s.getValueInRange(l),multiline:l.startLineNumber!==l.endLineNumber}}})),this._disposables.add(t.onDidTrigger(r=>{this._locked=!0})),this._disposables.add(t.onDidCancel(r=>{this._locked=!1}))}getLastOvertypedInfo(e){if(e>=0&&e{});var $$=N(()=>{K$()});var Q0e,lc,Wo,Ap=N(()=>{ek();In();iz();Vi();wt();Ut();Mo();rn();X_();Hr();Pt();Q0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},lc=function(i,e){return function(t,r){e(t,r,i)}},Wo=class extends tz{constructor(e,t,r,n,o,s,a,l,c,d,u,h,f){super(e,Object.assign(Object.assign({},n.getRawOptions()),{overflowWidgetsDomNode:n.getOverflowWidgetsDomNode()}),r,o,s,a,l,c,d,u,h,f),this._parentEditor=n,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(n.onDidChangeConfiguration(m=>this._onParentConfigurationChanged(m)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){ff(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Wo=Q0e([lc(4,Ke),lc(5,ai),lc(6,_i),lc(7,it),lc(8,br),lc(9,Ri),lc(10,kf),lc(11,Ot),lc(12,Se)],Wo)});var Z0e,cL,dL,Q2,Y$=N(()=>{Ht();ng();ke();He();J_();Ji();wt();Ut();Z0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},cL=function(i,e){return function(t,r){e(t,r,i)}},dL=class i extends Z_{updateLabel(){let e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();this.label&&(this.label.textContent=b({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,i.symbolPrintEnter(e)))}static symbolPrintEnter(e){var t;return(t=e.getLabel())===null||t===void 0?void 0:t.replace(/\benter\b/gi,"\u23CE")}},Q2=class{constructor(e,t,r,n,o){this._menuId=t,this._menuService=n,this._contextKeyService=o,this._menuDisposables=new le,this.element=Te(e,Ae(".suggest-status-bar"));let s=a=>a instanceof na?r.createInstance(dL,a,void 0):void 0;this._leftActions=new Ls(this.element,{actionViewItemProvider:s}),this._rightActions=new Ls(this.element,{actionViewItemProvider:s}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this.element.remove()}show(){let e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{let r=[],n=[];for(let[o,s]of e.getActions())o==="left"?r.push(...s):n.push(...s);this._leftActions.clear(),this._leftActions.push(r),this._rightActions.clear(),this._rightActions.push(n)};this._menuDisposables.add(e.onDidChange(()=>t())),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};Q2=Z0e([cL(2,Ke),cL(3,Ss),cL(4,it)],Q2)});var Od,Z2=N(()=>{Ht();bk();ei();ke();Od=class{constructor(){this._onDidWillResize=new Je,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new Je,this.onDidResize=this._onDidResize.event,this._sashListener=new le,this._size=new Qt(0,0),this._minSize=new Qt(0,0),this._maxSize=new Qt(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new Cl(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new Cl(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new Cl(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:gk.North}),this._southSash=new Cl(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:gk.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,r=0;this._sashListener.add(ci.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{e===void 0&&(this._onDidWillResize.fire(),e=this._size,t=0,r=0)})),this._sashListener.add(ci.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{e!==void 0&&(e=void 0,t=0,r=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(n=>{e&&(r=n.currentX-n.startX,this.layout(e.height+t,e.width+r),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(n=>{e&&(r=-(n.currentX-n.startX),this.layout(e.height+t,e.width+r),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+r),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+r),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(ci.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(ci.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,r,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=r?3:0,this._westSash.state=n?3:0}layout(e=this.size.height,t=this.size.width){let{height:r,width:n}=this._minSize,{height:o,width:s}=this._maxSize;e=Math.max(r,Math.min(o,e)),t=Math.max(n,Math.min(s,t));let a=new Qt(t,e);Qt.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}}});function Ob(i){return!!i&&!!(i.completion.documentation||i.completion.detail&&i.completion.detail!==i.completion.label)}var J0e,ebe,J2,eC,uL=N(()=>{Ht();N_();Zr();An();ei();Es();ke();kd();Z2();He();Ut();J0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ebe=function(i,e){return function(t,r){e(t,r,i)}};J2=class{constructor(e,t){this._editor=e,this._onDidClose=new Je,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new Je,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new le,this._renderDisposeable=new le,this._borderWidth=1,this._size=new Qt(330,0),this.domNode=Ae(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(to,{editor:e}),this._body=Ae(".body"),this._scrollbar=new Cf(this._body,{alwaysConsumeMouseWheel:!0}),Te(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=Te(this._body,Ae(".header")),this._close=Te(this._header,Ae("span"+_t.asCSSSelector(pt.close))),this._close.title=b("details.close","Close"),this._type=Te(this._header,Ae("p.type")),this._docs=Te(this._body,Ae("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(49)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){let e=this._editor.getOptions(),t=e.get(49),r=t.getMassagedFontFamily(),n=e.get(117)||t.fontSize,o=e.get(118)||t.lineHeight,s=t.fontWeight,a=`${n}px`,l=`${o}px`;this.domNode.style.fontSize=a,this.domNode.style.lineHeight=`${o/n}`,this.domNode.style.fontWeight=s,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=r,this._close.style.height=l,this._close.style.width=l}getLayoutInfo(){let e=this._editor.getOption(118)||this._editor.getOption(49).lineHeight,t=this._borderWidth,r=t*2;return{lineHeight:e,borderWidth:t,borderHeight:r,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=b("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 r,n;this._renderDisposeable.clear();let{detail:o,documentation:s}=e.completion;if(t){let a="";a+=`score: ${e.score[0]} `,a+=`prefix: ${(r=e.word)!==null&&r!==void 0?r:"(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("")} -`,s=new $i().appendCodeblock("empty",a),o=`Provider: ${e.provider._debugDisplayName}`}if(!t&&!Ob(e)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),o){let a=o.length>1e5?`${o.substr(0,1e5)}\u2026`:o;this._type.textContent=a,this._type.title=a,un(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(a))}else qn(this._type),this._type.title="",Br(this._type),this.domNode.classList.add("no-type");if(qn(this._docs),typeof s=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=s;else if(s){this._docs.classList.add("markdown-docs"),qn(this._docs);let a=this._markdownRenderer.render(s);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 size(){return this._size}layout(e,t){let r=new Qt(e,t);Qt.equals(r,this._size)||(this._size=r,sP(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}};J2=J0e([ebe(1,Ke)],J2);eC=class{constructor(e,t){this.widget=e,this._editor=t,this._disposables=new ae,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new Od,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let r,n,o=0,s=0;this._disposables.add(this._resizable.onDidWillResize(()=>{r=this._topLeft,n=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(a=>{if(r&&n){this.widget.layout(a.dimension.width,a.dimension.height);let l=!1;a.west&&(s=n.width-a.dimension.width,l=!0),a.north&&(o=n.height-a.dimension.height,l=!0),l&&this._applyTopLeft({top:r.top+o,left:r.left+s})}a.done&&(r=void 0,n=void 0,o=0,s=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 null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",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 r;let n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,(r=this._userSize)!==null&&r!==void 0?r:this.widget.size,t)}_placeAtAnchor(e,t,r){var n;let o=Oc(document.body),s=this.widget.getLayoutInfo(),a=new Qt(220,2*s.lineHeight),l=e.top,c=function(){let I=o.width-(e.left+e.width+s.borderWidth+s.horizontalPadding),N=-s.borderWidth+e.left+e.width,U=new Qt(I,o.height-e.top-s.borderHeight-s.verticalPadding),z=U.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:l,left:N,fit:I-t.width,maxSizeTop:U,maxSizeBottom:z,minSize:a.with(Math.min(I,a.width))}}(),d=function(){let I=e.left-s.borderWidth-s.horizontalPadding,N=Math.max(s.horizontalPadding,e.left-t.width-s.borderWidth),U=new Qt(I,o.height-e.top-s.borderHeight-s.verticalPadding),z=U.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:l,left:N,fit:I-t.width,maxSizeTop:U,maxSizeBottom:z,minSize:a.with(Math.min(I,a.width))}}(),u=function(){let I=e.left,N=-s.borderWidth+e.top+e.height,U=new Qt(e.width-s.borderHeight,o.height-e.top-e.height-s.verticalPadding);return{top:N,left:I,fit:U.height-t.height,maxSizeBottom:U,maxSizeTop:U,minSize:a.with(U.width)}}(),h=[c,d,u],f=(n=h.find(I=>I.fit>=0))!==null&&n!==void 0?n:h.sort((I,N)=>N.fit-I.fit)[0],m=e.top+e.height-s.borderHeight,g,w=t.height,_=Math.max(f.maxSizeTop.height,f.maxSizeBottom.height);w>_&&(w=_);let E;r?w<=f.maxSizeTop.height?(g=!0,E=f.maxSizeTop):(g=!1,E=f.maxSizeBottom):w<=f.maxSizeBottom.height?(g=!1,E=f.maxSizeBottom):(g=!0,E=f.maxSizeTop),this._applyTopLeft({left:f.left,top:g?f.top:m-w}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!g,f===c,g,f!==c),this._resizable.minSize=f.minSize,this._resizable.maxSize=E,this._resizable.layout(w,Math.min(E.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this.getDomNode().style.left=`${this._topLeft.left}px`,this.getDomNode().style.top=`${this._topLeft.top}px`}}});var Gs,hL=M(()=>{(function(i){i[i.FILE=0]="FILE",i[i.FOLDER=1]="FOLDER",i[i.ROOT_FOLDER=2]="ROOT_FOLDER"})(Gs||(Gs={}))});function Fb(i,e,t,r){let n=r===Gs.ROOT_FOLDER?["rootfolder-icon"]:r===Gs.FOLDER?["folder-icon"]:["file-icon"];if(t){let o;if(t.scheme===Eo.data)o=Bm.parseMetaData(t).get(Bm.META_DATA_LABEL);else{let s=t.path.match(tbe);s?(o=tC(s[2].toLowerCase()),s[1]&&n.push(`${tC(s[1].toLowerCase())}-name-dir-icon`)):o=tC(t.authority.toLowerCase())}if(r===Gs.FOLDER)n.push(`${o}-name-folder-icon`);else{if(o){if(n.push(`${o}-name-file-icon`),n.push("name-file-icon"),o.length<=255){let a=o.split(".");for(let l=1;l{Dm();Lo();Q3();hL();tbe=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/});function mL(i){return`suggest-aria-id:${i}`}function pL(i){return i.replace(/\r\n|\r|\n/g,"")}var rbe,fL,Fd,nbe,obe,iC,Q$=M(()=>{Ht();nz();Zr();An();ei();pl();ke();Ir();fn();X$();Xo();es();He();hL();Sl();rn();uL();rbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},fL=function(i,e){return function(t,r){e(t,r,i)}};nbe=Pi("suggest-more-info",pt.chevronRight,b("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),obe=new(Fd=class{extract(e,t){if(e.textLabel.match(Fd._regexStrict))return t[0]=e.textLabel,!0;if(e.completion.detail&&e.completion.detail.match(Fd._regexStrict))return t[0]=e.completion.detail,!0;if(typeof e.completion.documentation=="string"){let r=Fd._regexRelaxed.exec(e.completion.documentation);if(r&&(r.index===0||r.index+r[0].length===e.completion.documentation.length))return t[0]=r[0],!0}return!1}},Fd._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*\))/,Fd._regexStrict=new RegExp(`^${Fd._regexRelaxed.source}$`,"i"),Fd),iC=class{constructor(e,t,r,n){this._editor=e,this._modelService=t,this._languageService=r,this._themeService=n,this._onDidToggleDetails=new Je,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){let t=new ae,r=e;r.classList.add("show-file-icons");let n=Te(e,Ae(".icon")),o=Te(n,Ae("span.colorspan")),s=Te(e,Ae(".contents")),a=Te(s,Ae(".main")),l=Te(a,Ae(".icon-label.codicon")),c=Te(a,Ae("span.left")),d=Te(a,Ae("span.right")),u=new iy(c,{supportHighlights:!0,supportIcons:!0});t.add(u);let h=Te(c,Ae("span.signature-label")),f=Te(c,Ae("span.qualifier-label")),m=Te(d,Ae("span.details-label")),g=Te(d,Ae("span.readMore"+_t.asCSSSelector(nbe)));g.title=b("readMore","Read More");let w=()=>{let _=this._editor.getOptions(),E=_.get(49),I=E.getMassagedFontFamily(),N=E.fontFeatureSettings,U=_.get(117)||E.fontSize,z=_.get(118)||E.lineHeight,Y=E.fontWeight,le=E.letterSpacing,re=`${U}px`,Z=`${z}px`,ye=`${le}px`;r.style.fontSize=re,r.style.fontWeight=Y,r.style.letterSpacing=ye,a.style.fontFamily=I,a.style.fontFeatureSettings=N,a.style.lineHeight=Z,n.style.height=Z,n.style.width=Z,g.style.height=Z,g.style.width=Z};return w(),t.add(this._editor.onDidChangeConfiguration(_=>{(_.hasChanged(49)||_.hasChanged(117)||_.hasChanged(118))&&w()})),{root:r,left:c,right:d,icon:n,colorspan:o,iconLabel:u,iconContainer:l,parametersLabel:h,qualifierLabel:f,detailsLabel:m,readMore:g,disposables:t}}renderElement(e,t,r){let{completion:n}=e;r.root.id=mL(t),r.colorspan.style.backgroundColor="";let o={labelEscapeNewLines:!0,matches:gu(e.score)},s=[];if(n.kind===19&&obe.extract(e,s))r.icon.className="icon customcolor",r.iconContainer.className="icon hide",r.colorspan.style.backgroundColor=s[0];else if(n.kind===20&&this._themeService.getFileIconTheme().hasFileIcons){r.icon.className="icon hide",r.iconContainer.className="icon hide";let a=Fb(this._modelService,this._languageService,yt.from({scheme:"fake",path:e.textLabel}),Gs.FILE),l=Fb(this._modelService,this._languageService,yt.from({scheme:"fake",path:n.detail}),Gs.FILE);o.extraClasses=a.length>l.length?a:l}else n.kind===23&&this._themeService.getFileIconTheme().hasFolderIcons?(r.icon.className="icon hide",r.iconContainer.className="icon hide",o.extraClasses=[Fb(this._modelService,this._languageService,yt.from({scheme:"fake",path:e.textLabel}),Gs.FOLDER),Fb(this._modelService,this._languageService,yt.from({scheme:"fake",path:n.detail}),Gs.FOLDER)].flat()):(r.icon.className="icon hide",r.iconContainer.className="",r.iconContainer.classList.add("suggest-icon",..._t.asClassNameArray(Xm.toIcon(n.kind))));n.tags&&n.tags.indexOf(1)>=0&&(o.extraClasses=(o.extraClasses||[]).concat(["deprecated"]),o.matches=[]),r.iconLabel.setLabel(e.textLabel,void 0,o),typeof n.label=="string"?(r.parametersLabel.textContent="",r.detailsLabel.textContent=pL(n.detail||""),r.root.classList.add("string-label")):(r.parametersLabel.textContent=pL(n.label.detail||""),r.detailsLabel.textContent=pL(n.label.description||""),r.root.classList.remove("string-label")),this._editor.getOption(116).showInlineDetails?un(r.detailsLabel):Br(r.detailsLabel),Ob(e)?(r.right.classList.add("can-expand-details"),un(r.readMore),r.readMore.onmousedown=a=>{a.stopPropagation(),a.preventDefault()},r.readMore.onclick=a=>{a.stopPropagation(),a.preventDefault(),this._onDidToggleDetails.fire()}):(r.right.classList.remove("can-expand-details"),Br(r.readMore),r.readMore.onmousedown=null,r.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};iC=rbe([fL(1,Di),fL(2,er),fL(3,br)],iC)});var sbe,rC,abe,Lp,nC,lbe,gL,Dp,bL,Z$=M(()=>{Ht();D0();mF();jt();qt();ei();ke();Fre();Ni();$$();Ap();Y$();Lx();He();wt();Ut();wu();tn();ok();rn();Z2();uh();uL();Q$();O_();Io();sbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},rC=function(i,e){return function(t,r){e(t,r,i)}},abe=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};je("editorSuggestWidget.background",{dark:bl,light:bl,hcDark:bl,hcLight:bl},b("editorSuggestWidgetBackground","Background color of the suggest widget."));je("editorSuggestWidget.border",{dark:vu,light:vu,hcDark:vu,hcLight:vu},b("editorSuggestWidgetBorder","Border color of the suggest widget."));nC=je("editorSuggestWidget.foreground",{dark:ha,light:ha,hcDark:ha,hcLight:ha},b("editorSuggestWidgetForeground","Foreground color of the suggest widget."));je("editorSuggestWidget.selectedForeground",{dark:qm,light:qm,hcDark:qm,hcLight:qm},b("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget."));je("editorSuggestWidget.selectedIconForeground",{dark:Km,light:Km,hcDark:Km,hcLight:Km},b("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));lbe=je("editorSuggestWidget.selectedBackground",{dark:$m,light:$m,hcDark:$m,hcLight:$m},b("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));je("editorSuggestWidget.highlightForeground",{dark:fa,light:fa,hcDark:fa,hcLight:fa},b("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget."));je("editorSuggestWidget.focusHighlightForeground",{dark:Vm,light:Vm,hcDark:Vm,hcLight:Vm},b("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused."));je("editorSuggestWidgetStatus.foreground",{dark:Nn(nC,.5),light:Nn(nC,.5),hcDark:Nn(nC,.5),hcLight:Nn(nC,.5)},b("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));gL=class{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof Wo}`}restore(){var e;let t=(e=this._service.get(this._key,0))!==null&&e!==void 0?e:"";try{let r=JSON.parse(t);if(Qt.is(r))return Qt.lift(r)}catch(r){}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}},Dp=Lp=class{constructor(e,t,r,n,o){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new Wi,this._pendingShowDetails=new Wi,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new aa,this._disposables=new ae,this._onDidSelect=new M3,this._onDidFocus=new M3,this._onDidHide=new Je,this._onDidShow=new Je,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new Je,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new Od,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new bL(this,e),this._persistedSize=new gL(t,e);class s{constructor(f,m,g=!1,w=!1){this.persistedSize=f,this.currentSize=m,this.persistHeight=g,this.persistWidth=w}}let a;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),a=new s(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(h=>{var f,m,g,w;if(this._resize(h.dimension.width,h.dimension.height),a&&(a.persistHeight=a.persistHeight||!!h.north||!!h.south,a.persistWidth=a.persistWidth||!!h.east||!!h.west),!!h.done){if(a){let{itemHeight:_,defaultSize:E}=this.getLayoutInfo(),I=Math.round(_/2),{width:N,height:U}=this.element.size;(!a.persistHeight||Math.abs(a.currentSize.height-U)<=I)&&(U=(m=(f=a.persistedSize)===null||f===void 0?void 0:f.height)!==null&&m!==void 0?m:E.height),(!a.persistWidth||Math.abs(a.currentSize.width-N)<=I)&&(N=(w=(g=a.persistedSize)===null||g===void 0?void 0:g.width)!==null&&w!==void 0?w:E.width),this._persistedSize.store(new Qt(N,U))}this._contentWidget.unlockPreference(),a=void 0}})),this._messageElement=Te(this.element.domNode,Ae(".message")),this._listElement=Te(this.element.domNode,Ae(".tree"));let l=o.createInstance(J2,this.editor);l.onDidClose(this.toggleDetails,this,this._disposables),this._details=new eC(l,this.editor);let c=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(116).showIcons);c();let d=o.createInstance(iC,this.editor);this._disposables.add(d),this._disposables.add(d.onDidToggleDetails(()=>this.toggleDetails())),this._list=new R_("SuggestWidget",this._listElement,{getHeight:h=>this.getLayoutInfo().itemHeight,getTemplateId:h=>"suggestion"},[d],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>b("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:h=>{let f=h.textLabel;if(typeof h.completion.label!="string"){let{detail:_,description:E}=h.completion.label;_&&E?f=b("label.full","{0} {1}, {2}",f,_,E):_?f=b("label.detail","{0} {1}",f,_):E&&(f=b("label.desc","{0}, {1}",f,E))}if(!h.isResolved||!this._isDetailsVisible())return f;let{documentation:m,detail:g}=h.completion,w=nf("{0}{1}",g||"",m?typeof m=="string"?m:m.value:"");return b("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",f,w)}}}),this._list.style(wF({listInactiveFocusBackground:lbe,listInactiveFocusOutline:ua})),this._status=o.createInstance(Q2,this.element.domNode,Ya);let u=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(116).showStatusBar);u(),this._disposables.add(n.onDidColorThemeChange(h=>this._onThemeChange(h))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown(h=>this._onListMouseDownOrTap(h))),this._disposables.add(this._list.onTap(h=>this._onListMouseDownOrTap(h))),this._disposables.add(this._list.onDidChangeSelection(h=>this._onListSelection(h))),this._disposables.add(this._list.onDidChangeFocus(h=>this._onListFocus(h))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(h=>{h.hasChanged(116)&&(u(),c())})),this._ctxSuggestWidgetVisible=ct.Visible.bindTo(r),this._ctxSuggestWidgetDetailsVisible=ct.DetailsVisible.bindTo(r),this._ctxSuggestWidgetMultipleSuggestions=ct.MultipleSuggestions.bindTo(r),this._ctxSuggestWidgetHasFocusedSuggestion=ct.HasFocusedSuggestion.bindTo(r),this._disposables.add(To(this._details.widget.domNode,"keydown",h=>{this._onDetailsKeydown.fire(h)})),this._disposables.add(this.editor.onMouseDown(h=>this._onEditorMouseDown(h)))}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=="undefined"||typeof e.index=="undefined"||(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){let r=this._completionModel;r&&(this._onDidSelect.fire({item:e,index:t,model:r}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=_u(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);let r=e.elements[0],n=e.indexes[0];r!==this._focusedItem&&((t=this._currentSuggestionDetails)===null||t===void 0||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=r,this._list.reveal(n),this._currentSuggestionDetails=Jt(o=>abe(this,void 0,void 0,function*(){let s=ml(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250),a=o.onCancellationRequested(()=>s.dispose()),l=yield r.resolve(o);return s.dispose(),a.dispose(),l})),this._currentSuggestionDetails.then(()=>{n>=this._list.length||r!==this._list.element(n)||(this._ignoreFocusEvents=!0,this._list.splice(n,1,[r]),this._list.setFocus([n]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:mL(n)}))}).catch(ft)),this._onDidFocus.fire({item:r,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:Br(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=Lp.LOADING_MESSAGE,Br(this._listElement,this._status.element),un(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,uu(Lp.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=Lp.NO_SUGGESTIONS_MESSAGE,Br(this._listElement,this._status.element),un(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,uu(Lp.NO_SUGGESTIONS_MESSAGE);break;case 3:Br(this._messageElement),un(this._listElement,this._status.element),this._show();break;case 4:Br(this._messageElement),un(this._listElement,this._status.element),this._show();break;case 5:Br(this._messageElement),un(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=ml(()=>this._setState(1),t)))}showSuggestions(e,t,r,n,o){var s,a;if(this._contentWidget.setPosition(this.editor.getPosition()),(s=this._loadingTimeout)===null||s===void 0||s.dispose(),(a=this._currentSuggestionDetails)===null||a===void 0||a.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),r&&this._state!==2&&this._state!==0){this._setState(4);return}let l=this._completionModel.items.length,c=l===0;if(this._ctxSuggestWidgetMultipleSuggestions.set(l>1),c){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(r?4:3),this._list.reveal(t,0),this._list.setFocus(o?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=P3(()=>{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")):(Ob(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=P3(()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")})}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();let t=this._persistedSize.restore(),r=Math.ceil(this.getLayoutInfo().itemHeight*4.3);t&&t.heightc&&(l=c);let d=this._completionModel?this._completionModel.stats.pLabelLen*s.typicalHalfwidthCharacterWidth:l,u=s.statusBarHeight+this._list.contentHeight+s.borderHeight,h=s.itemHeight+s.statusBarHeight,f=Zi(this.editor.getDomNode()),m=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),g=f.top+m.top+m.height,w=Math.min(o.height-g-s.verticalPadding,u),_=f.top+m.top-s.verticalPadding,E=Math.min(_,u),I=Math.min(Math.max(E,w)+s.borderHeight,u);a===((t=this._cappedHeight)===null||t===void 0?void 0:t.capped)&&(a=this._cappedHeight.wanted),aI&&(a=I);let N=150;a>w||this._forceRenderingAbove&&_>N?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),I=E):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),I=w),this.element.preferredSize=new Qt(d,s.defaultSize.height),this.element.maxSize=new Qt(c,I),this.element.minSize=new Qt(220,h),this._cappedHeight=a===u?{wanted:(n=(r=this._cappedHeight)===null||r===void 0?void 0:r.wanted)!==null&&n!==void 0?n:e.height,capped:a}:void 0}this._resize(l,a)}_resize(e,t){let{width:r,height:n}=this.element.maxSize;e=Math.min(r,e),t=Math.min(n,t);let{statusBarHeight:o}=this.getLayoutInfo();this._list.layout(t-o,e),this._listElement.style.height=`${t-o}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(){let e=this.editor.getOption(49),t=fF(this.editor.getOption(118)||e.lineHeight,8,1e3),r=!this.editor.getOption(116).showStatusBar||this._state===2||this._state===1?0:t,n=this._details.widget.borderWidth,o=2*n;return{itemHeight:t,statusBarHeight:r,borderWidth:n,borderHeight:o,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new Qt(430,r+12*t+o)}}_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}};Dp.LOADING_MESSAGE=b("suggestWidget.loading","Loading...");Dp.NO_SUGGESTIONS_MESSAGE=b("suggestWidget.noSuggestions","No suggestions.");Dp=Lp=sbe([rC(1,Yn),rC(2,it),rC(3,br),rC(4,Ke)],Dp);bL=class{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(){let{height:e,width:t}=this._widget.element.size,{borderWidth:r,horizontalPadding:n}=this._widget.getLayoutInfo();return new Qt(t+2*r+n,e+2*r)}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 cbe,Mp,vL,dbe,_L,Vo,yL,zb,_o,vn,oC=M(()=>{Io();mi();jt();ki();qt();ei();sre();ke();Tn();al();zr();z_();lt();_a();di();et();ti();kp();ch();rL();U$();He();Vi();wt();Ut();Yv();uh();j$();W$();V$();q$();Z$();Bc();Lo();CF();cbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Mp=function(i,e){return function(t,r){e(t,r,i)}},dbe=!1,_L=class{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){let n=e.getOffsetAt(t),o=e.getPositionAt(n+1);this._marker=e.deltaDecorations([],[{range:B.fromPositions(t,o),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){let t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}else return this._model.getLineMaxColumn(e.lineNumber)-e.column}},Vo=vL=class{static get(e){return e.getContribution(vL.ID)}constructor(e,t,r,n,o,s,a){this._memoryService=t,this._commandService=r,this._contextKeyService=n,this._instantiationService=o,this._logService=s,this._telemetryService=a,this._lineSuffix=new Wi,this._toDispose=new ae,this._selectors=new yL(u=>u.priority),this._onWillInsertSuggestItem=new Je,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=e,this.model=o.createInstance(X2,this.editor),this._selectors.register({priority:0,select:(u,h,f)=>this._memoryService.select(u,h,f)});let l=ct.InsertMode.bindTo(n);l.set(e.getOption(116).insertMode),this._toDispose.add(this.model.onDidTrigger(()=>l.set(e.getOption(116).insertMode))),this.widget=this._toDispose.add(new h_(()=>{let u=this._instantiationService.createInstance(Dp,this.editor);this._toDispose.add(u),this._toDispose.add(u.onDidSelect(w=>this._insertSuggestion(w,0),this));let h=new Y2(this.editor,u,this.model,w=>this._insertSuggestion(w,2));this._toDispose.add(h);let f=ct.MakesTextEdit.bindTo(this._contextKeyService),m=ct.HasInsertAndReplaceRange.bindTo(this._contextKeyService),g=ct.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(ri(()=>{f.reset(),m.reset(),g.reset()})),this._toDispose.add(u.onDidFocus(({item:w})=>{let _=this.editor.getPosition(),E=w.editStart.column,I=_.column,N=!0;this.editor.getOption(1)==="smart"&&this.model.state===2&&!w.completion.additionalTextEdits&&!(w.completion.insertTextRules&4)&&I-E===w.completion.insertText.length&&(N=this.editor.getModel().getValueInRange({startLineNumber:_.lineNumber,startColumn:E,endLineNumber:_.lineNumber,endColumn:I})!==w.completion.insertText),f.set(N),m.set(!Ie.equals(w.editInsertEnd,w.editReplaceEnd)),g.set(!!w.provider.resolveCompletionItem||!!w.completion.documentation||w.completion.detail!==w.completion.label)})),this._toDispose.add(u.onDetailsKeyDown(w=>{if(w.toKeyCodeChord().equals(new R3(!0,!1,!1,!1,33))||En&&w.toKeyCodeChord().equals(new R3(!1,!1,!1,!0,33))){w.stopPropagation();return}w.toKeyCodeChord().isModifierKey()||this.editor.focus()})),u})),this._overtypingCapturer=this._toDispose.add(new h_(()=>this._toDispose.add(new Pb(this.editor,this.model)))),this._alternatives=this._toDispose.add(new h_(()=>this._toDispose.add(new Md(this.editor,this._contextKeyService)))),this._toDispose.add(o.createInstance(Tp,e)),this._toDispose.add(this.model.onDidTrigger(u=>{this.widget.value.showTriggered(u.auto,u.shy?250:50),this._lineSuffix.value=new _L(this.editor.getModel(),u.position)})),this._toDispose.add(this.model.onDidSuggest(u=>{if(u.triggerOptions.shy)return;let h=-1;for(let m of this._selectors.itemsOrderedByPriorityDesc)if(h=m.select(this.editor.getModel(),this.editor.getPosition(),u.completionModel.items),h!==-1)break;h===-1&&(h=0);let f=!1;if(u.triggerOptions.auto){let m=this.editor.getOption(116);m.selectionMode==="never"||m.selectionMode==="always"?f=m.selectionMode==="never":m.selectionMode==="whenTriggerCharacter"?f=u.triggerOptions.triggerKind!==1:m.selectionMode==="whenQuickSuggestion"&&(f=u.triggerOptions.triggerKind===1&&!u.triggerOptions.refilter)}this.widget.value.showSuggestions(u.completionModel,h,u.isFrozen,u.triggerOptions.auto,f)})),this._toDispose.add(this.model.onDidCancel(u=>{u.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{dbe||(this.model.cancel(),this.model.clear())}));let c=ct.AcceptSuggestionsOnEnter.bindTo(n),d=()=>{let u=this.editor.getOption(1);c.set(u==="on"||u==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>d())),d()}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;let r=nr.get(this.editor);if(!r)return;this._onWillInsertSuggestItem.fire({item:e.item});let n=this.editor.getModel(),o=n.getAlternativeVersionId(),{item:s}=e,a=[],l=new zi;t&1||this.editor.pushUndoStop();let c=this.getOverwriteInfo(s,!!(t&8));this._memoryService.memorize(n,this.editor.getPosition(),s);let d=s.isResolved,u=-1,h=-1;if(Array.isArray(s.completion.additionalTextEdits)){this.model.cancel();let m=va.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",s.completion.additionalTextEdits.map(g=>ii.replaceMove(B.lift(g.range),g.text))),m.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!d){let m=new mr,g,w=n.onDidChangeContent(N=>{if(N.isFlush){l.cancel(),w.dispose();return}for(let U of N.changes){let z=B.getEndPosition(U.range);(!g||Ie.isBefore(z,g))&&(g=z)}}),_=t;t|=2;let E=!1,I=this.editor.onWillType(()=>{I.dispose(),E=!0,_&2||this.editor.pushUndoStop()});a.push(s.resolve(l.token).then(()=>{if(!s.completion.additionalTextEdits||l.token.isCancellationRequested)return;if(g&&s.completion.additionalTextEdits.some(U=>Ie.isBefore(g,B.getStartPosition(U.range))))return!1;E&&this.editor.pushUndoStop();let N=va.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",s.completion.additionalTextEdits.map(U=>ii.replaceMove(B.lift(U.range),U.text))),N.restoreRelativeVerticalPositionOfCursor(this.editor),(E||!(_&2))&&this.editor.pushUndoStop(),!0}).then(N=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",m.elapsed(),N),h=N===!0?1:N===!1?0:-2}).finally(()=>{w.dispose(),I.dispose()}))}let{insertText:f}=s.completion;if(s.completion.insertTextRules&4||(f=jo.escape(f)),this.model.cancel(),r.insert(f,{overwriteBefore:c.overwriteBefore,overwriteAfter:c.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(s.completion.insertTextRules&1),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),t&2||this.editor.pushUndoStop(),s.completion.command)if(s.completion.command.id===zb.id)this.model.trigger({auto:!0,retrigger:!0});else{let m=new mr;a.push(this._commandService.executeCommand(s.completion.command.id,...s.completion.command.arguments?[...s.completion.command.arguments]:[]).catch(g=>{s.completion.extensionId?Xt(g):ft(g)}).finally(()=>{u=m.elapsed()}))}t&4&&this._alternatives.value.set(e,m=>{for(l.cancel();n.canUndo();){o!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(m,3|(t&8?8:0));break}}),this._alertCompletionItem(s),Promise.all(a).finally(()=>{this._reportSuggestionAcceptedTelemetry(s,n,d,u,h),this.model.clear(),l.dispose()})}_reportSuggestionAcceptedTelemetry(e,t,r,n,o){var s,a,l;Math.floor(Math.random()*100)!==0&&this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:(a=(s=e.extensionId)===null||s===void 0?void 0:s.value)!==null&&a!==void 0?a:"unknown",providerId:(l=e.provider._debugDisplayName)!==null&&l!==void 0?l:"unknown",kind:e.completion.kind,basenameHash:H_(Dn(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:ZP(t.uri),resolveInfo:e.provider.resolveCompletionItem?r?1:0:-1,resolveDuration:e.resolveDuration,commandDuration:n,additionalEditsAsync:o})}getOverwriteInfo(e,t){Bt(this.editor.hasModel());let r=this.editor.getOption(116).insertMode==="replace";t&&(r=!r);let n=e.position.column-e.editStart.column,o=(r?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,s=this.editor.getPosition().column-e.position.column,a=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:n+s,overwriteAfter:o+a}}_alertCompletionItem(e){if(Ki(e.completion.additionalTextEdits)){let t=b("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);ar(t)}}triggerSuggest(e,t,r){this.editor.hasModel()&&(this.model.trigger({auto:t!=null?t:!1,completionOptions:{providerFilter:e,kindFilter:r?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;let t=this.editor.getPosition(),r=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=o=>{if(o.completion.insertTextRules&4||o.completion.additionalTextEdits)return!0;let s=this.editor.getPosition(),a=o.editStart.column,l=s.column;return l-a!==o.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:s.lineNumber,startColumn:a,endLineNumber:s.lineNumber,endColumn:l})!==o.completion.insertText};ci.once(this.model.onDidTrigger)(o=>{let s=[];ci.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{ji(s),r()},void 0,s),this.model.onDidSuggest(({completionModel:a})=>{if(ji(s),a.items.length===0){r();return}let l=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),a.items),c=a.items[l];if(!n(c)){r();return}this.editor.pushUndoStop(),this._insertSuggestion({index:l,item:c,model:a},7)},void 0,s)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){let r=this.widget.value.getFocusedItem(),n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(r,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)}};Vo.ID="editor.contrib.suggestController";Vo=vL=cbe([Mp(1,Ep),Mp(2,_i),Mp(3,it),Mp(4,Ke),Mp(5,Hc),Mp(6,Ln)],Vo);yL=class{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,r)=>this.prioritySelector(r)-this.prioritySelector(t)),{dispose:()=>{let t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}},zb=class i extends de{constructor(){super({id:i.id,label:b("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:fe.and(O.writable,O.hasCompletionItemProvider,ct.Visible.toNegated()),kbOpts:{kbExpr:O.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,r){let n=Vo.get(t);if(!n)return;let o;r&&typeof r=="object"&&r.auto===!0&&(o=!0),n.triggerSuggest(void 0,o,void 0)}};zb.id="editor.action.triggerSuggest";Ue(Vo.ID,Vo,2);ee(zb);_o=100+90,vn=Fi.bindToContribution(Vo.get);We(new vn({id:"acceptSelectedSuggestion",precondition:fe.and(ct.Visible,ct.HasFocusedSuggestion),handler(i){i.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:fe.and(ct.Visible,O.textInputFocus),weight:_o},{primary:3,kbExpr:fe.and(ct.Visible,O.textInputFocus,ct.AcceptSuggestionsOnEnter,ct.MakesTextEdit),weight:_o}],menuOpts:[{menuId:Ya,title:b("accept.insert","Insert"),group:"left",order:1,when:ct.HasInsertAndReplaceRange.toNegated()},{menuId:Ya,title:b("accept.insert","Insert"),group:"left",order:1,when:fe.and(ct.HasInsertAndReplaceRange,ct.InsertMode.isEqualTo("insert"))},{menuId:Ya,title:b("accept.replace","Replace"),group:"left",order:1,when:fe.and(ct.HasInsertAndReplaceRange,ct.InsertMode.isEqualTo("replace"))}]}));We(new vn({id:"acceptAlternativeSelectedSuggestion",precondition:fe.and(ct.Visible,O.textInputFocus,ct.HasFocusedSuggestion),kbOpts:{weight:_o,kbExpr:O.textInputFocus,primary:1027,secondary:[1026]},handler(i){i.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:Ya,group:"left",order:2,when:fe.and(ct.HasInsertAndReplaceRange,ct.InsertMode.isEqualTo("insert")),title:b("accept.replace","Replace")},{menuId:Ya,group:"left",order:2,when:fe.and(ct.HasInsertAndReplaceRange,ct.InsertMode.isEqualTo("replace")),title:b("accept.insert","Insert")}]}));Dt.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion");We(new vn({id:"hideSuggestWidget",precondition:ct.Visible,handler:i=>i.cancelSuggestWidget(),kbOpts:{weight:_o,kbExpr:O.textInputFocus,primary:9,secondary:[1033]}}));We(new vn({id:"selectNextSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectNextSuggestion(),kbOpts:{weight:_o,kbExpr:O.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}}));We(new vn({id:"selectNextPageSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectNextPageSuggestion(),kbOpts:{weight:_o,kbExpr:O.textInputFocus,primary:12,secondary:[2060]}}));We(new vn({id:"selectLastSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectLastSuggestion()}));We(new vn({id:"selectPrevSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectPrevSuggestion(),kbOpts:{weight:_o,kbExpr:O.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}}));We(new vn({id:"selectPrevPageSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectPrevPageSuggestion(),kbOpts:{weight:_o,kbExpr:O.textInputFocus,primary:11,secondary:[2059]}}));We(new vn({id:"selectFirstSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectFirstSuggestion()}));We(new vn({id:"focusSuggestion",precondition:fe.and(ct.Visible,ct.HasFocusedSuggestion.negate()),handler:i=>i.focusSuggestion(),kbOpts:{weight:_o,kbExpr:O.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}}));We(new vn({id:"focusAndAcceptSuggestion",precondition:fe.and(ct.Visible,ct.HasFocusedSuggestion.negate()),handler:i=>{i.focusSuggestion(),i.acceptSelectedSuggestion(!0,!1)}}));We(new vn({id:"toggleSuggestionDetails",precondition:fe.and(ct.Visible,ct.HasFocusedSuggestion),handler:i=>i.toggleSuggestionDetails(),kbOpts:{weight:_o,kbExpr:O.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:Ya,group:"right",order:1,when:fe.and(ct.DetailsVisible,ct.CanResolve),title:b("detail.more","show less")},{menuId:Ya,group:"right",order:1,when:fe.and(ct.DetailsVisible.toNegated(),ct.CanResolve),title:b("detail.less","show more")}]}));We(new vn({id:"toggleExplainMode",precondition:ct.Visible,handler:i=>i.toggleExplainMode(),kbOpts:{weight:100,primary:2138}}));We(new vn({id:"toggleSuggestionFocus",precondition:ct.Visible,handler:i=>i.toggleSuggestionFocus(),kbOpts:{weight:_o,kbExpr:O.textInputFocus,primary:2570,mac:{primary:778}}}));We(new vn({id:"insertBestCompletion",precondition:fe.and(O.textInputFocus,fe.equals("config.editor.tabCompletion","on"),Tp.AtEnd,ct.Visible.toNegated(),Md.OtherSuggestions.toNegated(),nr.InSnippetMode.toNegated()),handler:(i,e)=>{i.triggerSuggestAndAcceptBest(Hv(e)?Object.assign({fallback:"tab"},e):{fallback:"tab"})},kbOpts:{weight:_o,primary:2}}));We(new vn({id:"insertNextSuggestion",precondition:fe.and(O.textInputFocus,fe.equals("config.editor.tabCompletion","on"),Md.OtherSuggestions,ct.Visible.toNegated(),nr.InSnippetMode.toNegated()),handler:i=>i.acceptNextSuggestion(),kbOpts:{weight:_o,kbExpr:O.textInputFocus,primary:2}}));We(new vn({id:"insertPrevSuggestion",precondition:fe.and(O.textInputFocus,fe.equals("config.editor.tabCompletion","on"),Md.OtherSuggestions,ct.Visible.toNegated(),nr.InSnippetMode.toNegated()),handler:i=>i.acceptPrevSuggestion(),kbOpts:{weight:_o,kbExpr:O.textInputFocus,primary:1026}}));ee(class extends de{constructor(){super({id:"editor.action.resetSuggestSize",label:b("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(i,e){var t;(t=Vo.get(e))===null||t===void 0||t.resetWidgetSize()}})});function ube(i,e){return i===e?!0:!i||!e?!1:i.equals(e)}var sC,Bb,J$=M(()=>{ei();ke();di();et();fn();ch();JA();oC();wa();qA();mi();sC=class extends ce{get selectedItem(){return this._selectedItem}constructor(e,t,r,n){super(),this.editor=e,this.suggestControllerPreselector=t,this.checkModelVersion=r,this.onWillAccept=n,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._selectedItem=ya("suggestWidgetInlineCompletionProvider.selectedItem",void 0),this._register(e.onKeyDown(s=>{s.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(s=>{s.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));let o=Vo.get(this.editor);if(o){this._register(o.registerSelector({priority:100,select:(l,c,d)=>{var u;on(_=>this.checkModelVersion(_));let h=this.editor.getModel();if(!h)return-1;let f=(u=this.suggestControllerPreselector())===null||u===void 0?void 0:u.removeCommonPrefix(h);if(!f)return-1;let m=Ie.lift(c),g=d.map((_,E)=>{let N=Bb.fromSuggestion(o,h,m,_,this.isShiftKeyPressed).toSingleTextEdit().removeCommonPrefix(h),U=f.augments(N);return{index:E,valid:U,prefixLength:N.text.length,suggestItem:_}}).filter(_=>_&&_.valid&&_.prefixLength>0),w=OP(g,RP(_=>_.prefixLength,PP));return w?w.index:-1}}));let s=!1,a=()=>{s||(s=!0,this._register(o.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(o.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.update(!1)})),this._register(o.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(ci.once(o.model.onDidTrigger)(l=>{a()})),this._register(o.onWillInsertSuggestItem(l=>{let c=this.editor.getPosition(),d=this.editor.getModel();if(!c||!d)return;let u=Bb.fromSuggestion(o,d,c,l.item,this.isShiftKeyPressed);this.onWillAccept(u)}))}this.update(this._isActive)}update(e){let t=this.getSuggestItemInfo();(this._isActive!==e||!ube(this._currentSuggestItemInfo,t))&&(this._isActive=e,this._currentSuggestItemInfo=t,on(r=>{this.checkModelVersion(r),this._selectedItem.set(this._isActive?this._currentSuggestItemInfo:void 0,r)}))}getSuggestItemInfo(){let e=Vo.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;let t=e.widget.value.getFocusedItem(),r=this.editor.getPosition(),n=this.editor.getModel();if(!(!t||!r||!n))return Bb.fromSuggestion(e,n,r,t.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){let e=Vo.get(this.editor);e==null||e.stopForceRenderingAbove()}forceRenderingAbove(){let e=Vo.get(this.editor);e==null||e.forceRenderingAbove()}},Bb=class i{static fromSuggestion(e,t,r,n,o){let{insertText:s}=n.completion,a=!1;if(n.completion.insertTextRules&4){let c=new jo().parse(s);c.children.length<100&&Cp.adjustWhitespace(t,r,!0,c),s=c.toString(),a=!0}let l=e.getOverwriteInfo(n,o);return new i(B.fromPositions(r.delta(0,-l.overwriteBefore),r.delta(0,Math.max(l.overwriteAfter,0))),s,n.completion.kind,a)}constructor(e,t,r,n){this.range=e,this.insertText=t,this.completionItemKind=r,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 UO(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new dh(this.range,this.insertText)}}});var hbe,zd,wL,_n,aC=M(()=>{Io();ei();ke();wa();s_();di();Ds();Pt();L2();f$();D2();B2();B$();J$();He();rne();Vi();Sr();wt();Ut();jr();hbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},zd=function(i,e){return function(t,r){e(t,r,i)}},_n=wL=class extends ce{static get(e){return e.getContribution(wL.ID)}constructor(e,t,r,n,o,s,a,l,c){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=r,this.configurationService=n,this.commandService=o,this.debounceService=s,this.languageFeaturesService=a,this.audioCueService=l,this._keybindingService=c,this.model=sg("inlineCompletionModel",void 0),this.textModelVersionId=ya("textModelVersionId",-1),this.cursorPosition=ya("cursorPosition",new Ie(1,1)),this.suggestWidgetAdaptor=this._register(new sC(this.editor,()=>{var h,f;return(f=(h=this.model.get())===null||h===void 0?void 0:h.selectedInlineCompletion.get())===null||f===void 0?void 0:f.toSingleTextEdit(void 0)},h=>this.updateObservables(h,io.Other),h=>{on(f=>{var m;this.updateObservables(f,io.Other),(m=this.model.get())===null||m===void 0||m.handleSuggestAccepted(h)})})),this._enabled=El(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(61).enabled),this.ghostTextWidget=this._register(this.instantiationService.createInstance(R2,this.editor,{ghostText:this.model.map((h,f)=>h==null?void 0:h.ghostText.read(f)),minReservedLineCount:$_(0),targetTextModel:this.model.map(h=>h==null?void 0:h.textModel)})),this._debounceValue=this.debounceService.for(this.languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._register(new _r(this.contextKeyService,this.model)),this._register(ci.runAndSubscribe(e.onDidChangeModel,()=>on(h=>{this.model.set(void 0,h),this.updateObservables(h,io.Other);let f=e.getModel();if(f){let m=t.createInstance($2,f,this.suggestWidgetAdaptor.selectedItem,this.cursorPosition,this.textModelVersionId,this._debounceValue,El(e.onDidChangeConfiguration,()=>e.getOption(116).preview),El(e.onDidChangeConfiguration,()=>e.getOption(116).previewMode),El(e.onDidChangeConfiguration,()=>e.getOption(61).mode),this._enabled);this.model.set(m,h)}})));let d=h=>{var f;return h.isUndoing?io.Undo:h.isRedoing?io.Redo:!((f=this.model.get())===null||f===void 0)&&f.isAcceptingPartially?io.AcceptWord:io.Other};this._register(e.onDidChangeModelContent(h=>on(f=>this.updateObservables(f,d(h))))),this._register(e.onDidChangeCursorPosition(h=>on(f=>{var m;this.updateObservables(f,io.Other),(h.reason===3||h.source==="api")&&((m=this.model.get())===null||m===void 0||m.stop(f))}))),this._register(e.onDidType(()=>on(h=>{var f;this.updateObservables(h,io.Other),this._enabled.get()&&((f=this.model.get())===null||f===void 0||f.trigger(h))}))),this._register(this.commandService.onDidExecuteCommand(h=>{new Set([cf.Tab.id,cf.DeleteLeft.id,cf.DeleteRight.id,T2,"acceptSelectedSuggestion"]).has(h.commandId)&&e.hasTextFocus()&&this._enabled.get()&&on(m=>{var g;(g=this.model.get())===null||g===void 0||g.trigger(m)})})),this._register(this.editor.onDidBlurEditorWidget(()=>{this.contextKeyService.getContextKeyValue("accessibleViewIsShown")||this.configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(61).keepOnBlur||qs.dropDownVisible||on(h=>{var f;(f=this.model.get())===null||f===void 0||f.stop(h)})})),this._register(pn(h=>{var f;let m=(f=this.model.read(h))===null||f===void 0?void 0:f.state.read(h);m!=null&&m.suggestItem?m.ghostText.lineCount>=2&&this.suggestWidgetAdaptor.forceRenderingAbove():this.suggestWidgetAdaptor.stopForceRenderingAbove()})),this._register(ri(()=>{this.suggestWidgetAdaptor.stopForceRenderingAbove()}));let u;this._register(pn(h=>{let f=this.model.read(h),m=f==null?void 0:f.state.read(h);if(!f||!m||!m.inlineCompletion){u=void 0;return}if(m.inlineCompletion.semanticId!==u){u=m.inlineCompletion.semanticId;let g=f.textModel.getLineContent(m.ghostText.lineNumber);this.audioCueService.playAudioCue(sz.inlineSuggestion).then(()=>{this.editor.getOption(7)&&this.provideScreenReaderUpdate(m.ghostText.renderForScreenReader(g))})}})),this._register(new z2(this.editor,this.model,this.instantiationService)),this._register(this.configurationService.onDidChangeConfiguration(h=>{h.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this.configurationService.getValue("accessibility.verbosity.inlineCompletions")})})),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this.configurationService.getValue("accessibility.verbosity.inlineCompletions")})}provideScreenReaderUpdate(e){let t=this.contextKeyService.getContextKeyValue("accessibleViewIsShown"),r=this._keybindingService.lookupKeybinding("editor.action.accessibleView"),n;!t&&r&&this.editor.getOption(146)&&(n=b("showAccessibleViewHint","Inspect this in the accessible view ({0})",r.getAriaLabel())),n?ar(e+", "+n):ar(e)}updateObservables(e,t){var r,n;let o=this.editor.getModel();this.textModelVersionId.set((r=o==null?void 0:o.getVersionId())!==null&&r!==void 0?r:-1,e,t),this.cursorPosition.set((n=this.editor.getPosition())!==null&&n!==void 0?n:new Ie(1,1),e)}shouldShowHoverAt(e){var t;let r=(t=this.model.get())===null||t===void 0?void 0:t.ghostText.get();return r?r.parts.some(n=>e.containsPosition(new Ie(r.lineNumber,n.column))):!1}shouldShowHoverAtViewZone(e){return this.ghostTextWidget.ownsViewZone(e)}};_n.ID="editor.contrib.inlineCompletionsController";_n=wL=hbe([zd(1,Ke),zd(2,it),zd(3,Mt),zd(4,_i),zd(5,lr),zd(6,Se),zd(7,oz),zd(8,Kt)],_n)});var Bd,Hb,Ub,lC,cC,dC,uC,jb,Wb,eG=M(()=>{wa();lt();ti();L2();D2();aC();uh();He();Ji();Sr();wt();Bd=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Hb=class i extends de{constructor(){super({id:i.ID,label:b("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:fe.and(O.writable,_r.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);(r=n==null?void 0:n.model.get())===null||r===void 0||r.next()})}};Hb.ID=A2;Ub=class i extends de{constructor(){super({id:i.ID,label:b("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:fe.and(O.writable,_r.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);(r=n==null?void 0:n.model.get())===null||r===void 0||r.previous()})}};Ub.ID=I2;lC=class extends de{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:b("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:O.writable})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);(r=n==null?void 0:n.model.get())===null||r===void 0||r.triggerExplicitly()})}},cC=class extends de{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:b("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:fe.and(O.writable,_r.inlineSuggestionVisible),kbOpts:{weight:100+1,primary:2065,kbExpr:fe.and(O.writable,_r.inlineSuggestionVisible)},menuOpts:[{menuId:Me.InlineSuggestionToolbar,title:b("acceptWord","Accept Word"),group:"primary",order:2}]})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);yield(r=n==null?void 0:n.model.get())===null||r===void 0?void 0:r.acceptNextWord(n.editor)})}},dC=class extends de{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:b("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:fe.and(O.writable,_r.inlineSuggestionVisible),kbOpts:{weight:100+1},menuOpts:[{menuId:Me.InlineSuggestionToolbar,title:b("acceptLine","Accept Line"),group:"secondary",order:2}]})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);yield(r=n==null?void 0:n.model.get())===null||r===void 0?void 0:r.acceptNextLine(n.editor)})}},uC=class extends de{constructor(){super({id:T2,label:b("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:_r.inlineSuggestionVisible,menuOpts:[{menuId:Me.InlineSuggestionToolbar,title:b("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:fe.and(_r.inlineSuggestionVisible,O.tabMovesFocus.toNegated(),_r.inlineSuggestionHasIndentationLessThanTabSize,ct.Visible.toNegated(),O.hoverFocused.toNegated())}})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);n&&((r=n.model.get())===null||r===void 0||r.accept(n.editor),n.editor.focus())})}},jb=class i extends de{constructor(){super({id:i.ID,label:b("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:_r.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}run(e,t){return Bd(this,void 0,void 0,function*(){let r=_n.get(t);on(n=>{var o;(o=r==null?void 0:r.model.get())===null||o===void 0||o.stop(n)})})}};jb.ID="editor.action.inlineSuggest.hide";Wb=class i extends Jo{constructor(){super({id:i.ID,title:b("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:Me.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:fe.equals("config.editor.inlineSuggest.showToolbar","always")})}run(e,t){return Bd(this,void 0,void 0,function*(){let r=e.get(Mt),o=r.getValue("editor.inlineSuggest.showToolbar")==="always"?"onHover":"always";r.updateValue("editor.inlineSuggest.showToolbar",o)})}};Wb.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar"});var fbe,Vb,xL,hC,tG=M(()=>{Ht();Es();ke();wa();et();es();rc();aC();B2();kd();He();X_();Ut();is();Bc();fbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vb=function(i,e){return function(t,r){e(t,r,i)}},xL=class{constructor(e,t,r){this.owner=e,this.range=t,this.controller=r}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},hC=class{constructor(e,t,r,n,o,s){this._editor=e,this._languageService=t,this._openerService=r,this.accessibilityService=n,this._instantiationService=o,this._telemetryService=s,this.hoverOrdinal=4}suggestHoverAnchor(e){let t=_n.get(this._editor);if(!t)return null;let r=e.target;if(r.type===8){let n=r.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new Ad(1e3,this,B.fromPositions(this._editor.getModel().validatePosition(n.positionBefore||n.position)),e.event.posx,e.event.posy,!1)}return r.type===7&&t.shouldShowHoverAt(r.range)?new Ad(1e3,this,r.range,e.event.posx,e.event.posy,!1):r.type===6&&r.detail.mightBeForeignElement&&t.shouldShowHoverAt(r.range)?new Ad(1e3,this,r.range,e.event.posx,e.event.posy,!1):null}computeSync(e,t){if(this._editor.getOption(61).showToolbar==="always")return[];let r=_n.get(this._editor);return r&&r.shouldShowHoverAt(e.range)?[new xL(this,e.range,r)]:[]}renderHoverParts(e,t){let r=new ae,n=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(7)&&this.renderScreenReaderText(e,n,r);let o=n.controller.model.get(),s=this._instantiationService.createInstance(qs,this._editor,!1,$_(null),o.selectedInlineCompletionIndex,o.inlineCompletionsCount,o.selectedInlineCompletion.map(a=>{var l;return(l=a==null?void 0:a.inlineCompletion.source.inlineCompletions.commands)!==null&&l!==void 0?l:[]}));return e.fragment.appendChild(s.getDomNode()),o.triggerExplicitly(),r.add(s),r}renderScreenReaderText(e,t,r){let n=Ae,o=n("div.hover-row.markdown-hover"),s=Te(o,n("div.hover-contents",{"aria-live":"assertive"})),a=r.add(new to({editor:this._editor},this._languageService,this._openerService)),l=c=>{r.add(a.onDidRenderAsync(()=>{s.className="hover-contents code-hover-contents",e.onContentsChanged()}));let d=b("inlineSuggestionFollows","Suggestion:"),u=r.add(a.render(new $i().appendText(d).appendCodeblock("text",c)));s.replaceChildren(u.element)};r.add(pn(c=>{var d;let u=(d=t.controller.model.read(c))===null||d===void 0?void 0:d.ghostText.read(c);if(u){let h=this._editor.getModel().getLineContent(u.lineNumber);l(u.renderForScreenReader(h))}else du(s)})),e.fragment.appendChild(o)}};hC=fbe([Vb(1,er),Vb(2,tr),Vb(3,kf),Vb(4,Ke),Vb(5,Ln)],hC)});var CL=M(()=>{lt();rc();eG();tG();aC();Ji();Ue(_n.ID,_n,3);ee(lC);ee(Hb);ee(Ub);ee(cC);ee(dC);ee(uC);ee(jb);Si(Wb);Uo.register(hC)});var iG=M(()=>{});var rG=M(()=>{iG()});var nG=M(()=>{});var oG=M(()=>{nG()});var sG,pbe,mbe,SL,kL,fC,pC,aG=M(()=>{Ht();bk();ca();cF();ke();ek();oG();et();Ur();sG=new vt(new Ts(0,122,204)),pbe={showArrow:!0,showFrame:!0,className:"",frameColor:sG,arrowColor:sG,keepEditorSelection:!1},mbe="vs.editor.contrib.zoneWidget",SL=class{constructor(e,t,r,n,o,s,a,l){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=r,this.heightInLines=n,this.showInHiddenAreas=a,this.ordinal=l,this._onDomNodeTop=o,this._onComputedHeight=s}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}},kL=class{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}},fC=class i{constructor(e){this._editor=e,this._ruleName=i._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),O3(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(){O3(this._ruleName),cP(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:B.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}};fC._IdGenerator=new aF(".arrow-decoration-");pC=class{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new ae,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=rO(t),ff(this.options,pbe,!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(r=>{let n=this._getWidth(r);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(r)+"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 fC(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){let e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){let 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){let r=e-this._decoratingElementsHeight();this.container.style.height=`${r}px`;let n=this.editor.getLayoutInfo();this._doLayout(r,this._getWidth(n))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){let e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){let r=B.isIRange(e)?B.lift(e):B.fromPositions(e);this._isShowing=!0,this._showImpl(r,t),this._isShowing=!1,this._positionMarkerId.set([{range:r,options:mt.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(){let e=this.editor.getOption(65),t=0;if(this.options.showArrow){let r=Math.round(e/3);t+=2*r}if(this.options.showFrame){let r=Math.round(e/9);t+=2*r}return t}_showImpl(e,t){let r=e.getStartPosition(),n=this.editor.getLayoutInfo(),o=this._getWidth(n);this.domNode.style.width=`${o}px`,this.domNode.style.left=this._getLeft(n)+"px";let s=document.createElement("div");s.style.overflow="hidden";let a=this.editor.getOption(65);if(!this.options.allowUnlimitedHeight){let h=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,h)}let l=0,c=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(a/3),this._arrow.height=l,this._arrow.show(r)),this.options.showFrame&&(c=Math.round(a/9)),this.editor.changeViewZones(h=>{this._viewZone&&h.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new SL(s,r.lineNumber,r.column,t,f=>this._onViewZoneTop(f),f=>this._onViewZoneHeight(f),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=h.addZone(this._viewZone),this._overlayWidget=new kL(mbe+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){let h=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=h+"px",this.container.style.borderBottomWidth=h+"px"}let d=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=d+"px",this.container.style.overflow="hidden"),this._doLayout(d,o),this.options.keepEditorSelection||this.editor.setSelection(e);let u=this.editor.getModel();if(u){let h=u.validateRange(new B(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(h,h.startLineNumber===u.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 Cl(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){let r=(t.currentY-e.startY)/this.editor.getOption(65),n=r<0?Math.ceil(r):Math.floor(r),o=e.heightInLines+n;o>5&&o<35&&this._relayout(o)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){let e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}});function dG(i){let e=i.get(ai).getFocusedCodeEditor();return e instanceof Wo?e.getParentEditor():e}var lG,cG,EL,Pr,qb,gbe,Np,uG,mC,gC,hG,fG,Att,Ltt,Dtt,Mtt,Hd,Ntt,Rtt,Ptt,Ott,Ftt,hh=M(()=>{Ht();ng();Fc();Zr();An();ca();ei();ek();rG();lt();In();Ap();aG();He();J_();wt();hl();Ut();tn();lG=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},cG=function(i,e){return function(t,r){e(t,r,i)}},EL=Qr("IPeekViewService");en(EL,class{constructor(){this._widgets=new Map}addExclusiveWidget(i,e){let t=this._widgets.get(i);t&&(t.listener.dispose(),t.widget.dispose());let r=()=>{let n=this._widgets.get(i);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(i))};this._widgets.set(i,{widget:e,listener:e.onDidClose(r)})}},1);(function(i){i.inPeekEditor=new ht("inReferenceSearchEditor",!0,b("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),i.notInPeekEditor=i.inPeekEditor.toNegated()})(Pr||(Pr={}));qb=class{constructor(e,t){e instanceof Wo&&Pr.inPeekEditor.bindTo(t)}dispose(){}};qb.ID="editor.contrib.referenceController";qb=lG([cG(1,it)],qb);Ue(qb.ID,qb,0);gbe={headerBackgroundColor:vt.white,primaryHeadingColor:vt.fromHex("#333333"),secondaryHeadingColor:vt.fromHex("#6c6c6cb3")},Np=class extends pC{constructor(e,t,r){super(e,t),this.instantiationService=r,this._onDidClose=new Je,this.onDidClose=this._onDidClose.event,ff(this.options,gbe,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){let 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();let 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=Ae(".head"),this._bodyElement=Ae(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=Ae(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),To(this._titleElement,"click",o=>this._onTitleClick(o))),Te(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=Ae("span.filename"),this._secondaryHeading=Ae("span.dirname"),this._metaHeading=Ae("span.meta"),Te(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);let r=Ae(".peekview-actions");Te(this._headElement,r);let n=this._getActionBarOptions();this._actionbarWidget=new Ls(r,n),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new Qo("peekview.close",b("label.close","Close"),_t.asClassName(pt.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:YF.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:qn(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,un(this._metaHeading)):Br(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}let r=Math.ceil(this.editor.getOption(65)*1.2),n=Math.round(e-(r+2));this._doLayoutHead(r,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`)}};Np=lG([cG(2,Ke)],Np);uG=je("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:vt.black,hcLight:vt.white},b("peekViewTitleBackground","Background color of the peek view title area.")),mC=je("peekViewTitleLabel.foreground",{dark:vt.white,light:vt.black,hcDark:vt.white,hcLight:ha},b("peekViewTitleForeground","Color of the peek view title.")),gC=je("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},b("peekViewTitleInfoForeground","Color of the peek view title info.")),hG=je("peekView.border",{dark:jm,light:jm,hcDark:ts,hcLight:ts},b("peekViewBorder","Color of the peek view borders and arrow.")),fG=je("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:vt.black,hcLight:vt.white},b("peekViewResultsBackground","Background color of the peek view result list.")),Att=je("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:vt.white,hcLight:ha},b("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),Ltt=je("peekViewResult.fileForeground",{dark:vt.white,light:"#1E1E1E",hcDark:vt.white,hcLight:ha},b("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Dtt=je("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},b("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),Mtt=je("peekViewResult.selectionForeground",{dark:vt.white,light:"#6C6C6C",hcDark:vt.white,hcLight:ha},b("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),Hd=je("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:vt.black,hcLight:vt.white},b("peekViewEditorBackground","Background color of the peek view editor.")),Ntt=je("peekViewEditorGutter.background",{dark:Hd,light:Hd,hcDark:Hd,hcLight:Hd},b("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Rtt=je("peekViewEditorStickyScroll.background",{dark:Hd,light:Hd,hcDark:Hd,hcLight:Hd},b("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),Ptt=je("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},b("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Ott=je("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},b("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Ftt=je("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:ua,hcLight:ua},b("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))});var vbe,qo,TL,cc,Hn,Rp=M(()=>{qt();ei();cF();ke();df();Lo();Ni();et();He();vbe=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},qo=class{constructor(e,t,r,n){this.isProviderFirst=e,this.parent=t,this.link=r,this._rangeCallback=n,this.id=lF.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;let t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?b({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,Dn(this.uri),this.range.startLineNumber,this.range.startColumn):b("aria.oneReference","in {0} on line {1} at column {2}",Dn(this.uri),this.range.startLineNumber,this.range.startColumn)}},TL=class{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){let r=this._modelReference.object.textEditorModel;if(!r)return;let{startLineNumber:n,startColumn:o,endLineNumber:s,endColumn:a}=e,l=r.getWordUntilPosition({lineNumber:n,column:o-t}),c=new B(n,l.startColumn,n,o),d=new B(s,a,s,1073741824),u=r.getValueInRange(c).replace(/^\s+/,""),h=r.getValueInRange(e),f=r.getValueInRange(d).replace(/\s+$/,"");return{value:u+h+f,highlight:{start:u.length,end:u.length+h.length}}}},cc=class{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new HP}dispose(){ji(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){let e=this.children.length;return e===1?b("aria.fileReferences.1","1 symbol in {0}, full path {1}",Dn(this.uri),this.uri.fsPath):b("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Dn(this.uri),this.uri.fsPath)}resolve(e){return vbe(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(let t of this.children)if(!this._previews.has(t.uri))try{let r=yield e.createModelReference(t.uri);this._previews.set(t.uri,new TL(r))}catch(r){ft(r)}return this})}},Hn=class i{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new Je,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;let[r]=e;e.sort(i._compareReferences);let n;for(let o of e)if((!n||!J3.isEqual(n.uri,o.uri,!0))&&(n=new cc(this,o.uri),this.groups.push(n)),n.children.length===0||i._compareReferences(o,n.children[n.children.length-1])!==0){let s=new qo(r===o,n,o,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(s),n.children.push(s)}}dispose(){ji(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new i(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?b("aria.result.0","No results found"):this.references.length===1?b("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?b("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):b("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){let{parent:r}=e,n=r.children.indexOf(e),o=r.children.length,s=r.parent.groups.length;return s===1||t&&n+10?(t?n=(n+1)%o:n=(n+o-1)%o,r.children[n]):(n=r.parent.groups.indexOf(r),t?(n=(n+1)%s,r.parent.groups[n].children[0]):(n=(n+s-1)%s,r.parent.groups[n].children[r.parent.groups[n].children.length-1]))}nearestReference(e,t){let r=this.references.map((n,o)=>({idx:o,prefixLen:zc(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,o)=>n.prefixLen>o.prefixLen?-1:n.prefixLeno.offsetDist?1:0)[0];if(r)return this.references[r.idx]}referenceAt(e,t){for(let r of this.references)if(r.uri.toString()===e.toString()&&B.containsPosition(r.range,t))return r}firstReference(){for(let e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return J3.compare(e.uri,t.uri)||B.compareRangesUsingStarts(e.range,t.range)}}});var pG=M(()=>{});var mG=M(()=>{pG()});var xC,CC,IL,bC,vC,_C,yC,AL,Pp,LL,Op,wC,gG=M(()=>{Ht();one();ine();nz();pl();ke();Lo();ra();He();Ut();jr();ey();O_();Rp();xC=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},CC=function(i,e){return function(t,r){e(t,r,i)}},bC=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof Hn||e instanceof cc}getChildren(e){if(e instanceof Hn)return e.groups;if(e instanceof cc)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};bC=xC([CC(0,Cr)],bC);vC=class{getHeight(){return 23}getTemplateId(e){return e instanceof cc?Pp.id:Op.id}},_C=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof qo){let r=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(r)return r.value}return Dn(e.uri)}};_C=xC([CC(0,Kt)],_C);yC=class{getId(e){return e instanceof qo?e.id:e.uri}},AL=class extends ce{constructor(e,t){super(),this._labelService=t;let r=document.createElement("div");r.classList.add("reference-file"),this.file=this._register(new iy(r,{supportHighlights:!0})),this.badge=new uz(Te(r,Ae(".count")),{},_F),e.appendChild(r)}set(e,t){let r=uf(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(r,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});let n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(b("referencesCount","{0} references",n)):this.badge.setTitleFormat(b("referenceCount","{0} reference",n))}};AL=xC([CC(1,Tl)],AL);Pp=IL=class{constructor(e){this._instantiationService=e,this.templateId=IL.id}renderTemplate(e){return this._instantiationService.createInstance(AL,e)}renderElement(e,t,r){r.set(e.element,gu(e.filterData))}disposeTemplate(e){e.dispose()}};Pp.id="FileReferencesRenderer";Pp=IL=xC([CC(0,Ke)],Pp);LL=class{constructor(e){this.label=new rz(e)}set(e,t){var r;let n=(r=e.parent.getPreview(e))===null||r===void 0?void 0:r.preview(e.range);if(!n||!n.value)this.label.set(`${Dn(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{let{value:o,highlight:s}=n;t&&!fl.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(o,gu(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(o,[s]))}}},Op=class i{constructor(){this.templateId=i.id}renderTemplate(e){return new LL(e)}renderElement(e,t,r){r.set(e.element,e.filterData)}disposeTemplate(){}};Op.id="OneReferenceRenderer";wC=class{getWidgetAriaLabel(){return b("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}});var _be,dc,bG,SC,kC,DL,EC,vG=M(()=>{Ht();nne();ca();ei();ke();Dm();Lo();mG();Ap();et();Ur();Hr();Q3();es();ra();gG();hh();He();Ut();jr();ey();dz();rn();Dre();Rp();_be=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},dc=function(i,e){return function(t,r){e(t,r,i)}},bG=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},SC=class i{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new ae,this._callOnModelChange=new ae,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();let e=this._editor.getModel();if(e){for(let 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()));let t=[],r=[];for(let n=0,o=e.children.length;n{let o=n.deltaDecorations([],t);for(let s=0;s{o.equals(9)&&(this._keybindingService.dispatchEvent(o,o.target),o.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(DL,"ReferencesWidget",this._treeContainer,new vC,[this._instantiationService.createInstance(Pp),this._instantiationService.createInstance(Op)],this._instantiationService.createInstance(bC),r),this._splitView.addView({onDidChange:ci.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:o=>{this._preview.layout({height:this._dim.height,width:o})}},Ik.Distribute),this._splitView.addView({onDidChange:ci.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:o=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${o}px`,this._tree.layout(this._dim.height,o)}},Ik.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));let n=(o,s)=>{o instanceof qo&&(s==="show"&&this._revealReference(o,!1),this._onDidSelectReference.fire({element:o,kind:s,source:"tree"}))};this._tree.onDidOpen(o=>{o.sideBySide?n(o.element,"side"):o.editorOptions.pinned?n(o.element,"goto"):n(o.element,"show")}),Br(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Qt(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=b("noResults","No results"),un(this._messageContainer),Promise.resolve(void 0)):(Br(this._messageContainer),this._decorationsManager=new SC(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=>{let{event:t,target:r}=e;if(t.detail!==2)return;let n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:r.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),un(this._treeContainer),un(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(){let[e]=this._tree.getFocus();if(e instanceof qo)return e;if(e instanceof cc&&e.children.length>0)return e.children[0]}revealReference(e){return bG(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return bG(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==Eo.inMemory?this.setTitle(QP(e.uri),this._uriLabel.getUriLabel(uf(e.uri))):this.setTitle(b("peekView.alternateTitle","References"));let r=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));let n=yield r;if(!this._model){n.dispose();return}ji(this._previewModelReference);let o=n.object;if(o){let s=this._preview.getModel()===o.textEditorModel?0:1,a=B.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(o.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,s)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};EC=_be([dc(3,br),dc(4,Cr),dc(5,Ke),dc(6,EL),dc(7,Tl),dc(8,XO),dc(9,Kt),dc(10,er),dc(11,Ot)],EC)});function ph(i,e){let t=dG(i);if(!t)return;let r=Xa.get(t);r&&e(r)}var ybe,Fp,_G,TC,fh,Xa,ML=M(()=>{jt();qt();ll();ke();In();di();et();hh();He();Vi();Sr();wt();Ut();j3();dz();Mo();wu();Rp();vG();ybe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Fp=function(i,e){return function(t,r){e(t,r,i)}},_G=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},fh=new ht("referenceSearchVisible",!1,b("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'")),Xa=TC=class{static get(e){return e.getContribution(TC.ID)}constructor(e,t,r,n,o,s,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=o,this._instantiationService=s,this._storageService=a,this._configurationService=l,this._disposables=new ae,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=fh.bindTo(r)}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,r){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=r,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));let o="peekViewLayout",s=kC.fromJSON(this._storageService.get(o,0,"{}"));this._widget=this._instantiationService.createInstance(EC,this._editor,this._defaultTreeKeyboardSupport,s),this._widget.setTitle(b("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(o,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{let{element:c,kind:d}=l;if(c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":r?this._gotoReference(c,!0):this.openReference(c,!1,!0);break}}));let a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.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(b("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));let d=this._editor.getModel().uri,u=new Ie(e.startLineNumber,e.startColumn),h=this._model.nearestReference(d,u);if(h)return this._widget.setSelection(h).then(()=>{this._widget&&this._editor.getOption(85)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return _G(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;let t=this._widget.position;if(!t)return;let r=this._model.nearestReference(this._editor.getModel().uri,t);if(!r)return;let n=this._model.nextOrPreviousReference(r,e),o=this._editor.hasTextFocus(),s=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n,!1),o?this._editor.focus():this._widget&&s&&this._widget.focusOnPreviewEditor()})}revealReference(e){return _G(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,r;(t=this._widget)===null||t===void 0||t.dispose(),(r=this._model)===null||r===void 0||r.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 r;(r=this._widget)===null||r===void 0||r.hide(),this._ignoreModelChangeEvent=!0;let n=B.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then(o=>{var s;if(this._ignoreModelChangeEvent=!1,!o||!this._widget){this.closeWidget();return}if(this._editor===o)this._widget.show(n),this._widget.focusOnReferenceTree();else{let a=TC.get(o),l=this._model.clone();this.closeWidget(),o.focus(),a==null||a.toggleWidget(n,Jt(c=>Promise.resolve(l)),(s=this._peekMode)!==null&&s!==void 0?s:!1)}},o=>{this._ignoreModelChangeEvent=!1,ft(o)})}openReference(e,t,r){t||this.closeWidget();let{uri:n,range:o}=e;this._editorService.openCodeEditor({resource:n,options:{selection:o,selectionSource:"code.jump",pinned:r}},this._editor,t)}};Xa.ID="editor.contrib.referencesController";Xa=TC=ybe([Fp(2,it),Fp(3,ai),Fp(4,Ri),Fp(5,Ke),Fp(6,Yn),Fp(7,Mt)],Xa);Ao.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:gi(2089,60),when:fe.or(fh,Pr.inPeekEditor),handler(i){ph(i,e=>{e.changeFocusBetweenPreviewAndReferences()})}});Ao.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:fe.or(fh,Pr.inPeekEditor),handler(i){ph(i,e=>{e.goToNextOrPreviousReference(!0)})}});Ao.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:fe.or(fh,Pr.inPeekEditor),handler(i){ph(i,e=>{e.goToNextOrPreviousReference(!1)})}});Dt.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");Dt.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");Dt.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");Dt.registerCommand("closeReferenceSearch",i=>ph(i,e=>e.closeWidget()));Ao.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:fe.and(Pr.inPeekEditor,fe.not("config.editor.stablePeek"))});Ao.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:fe.and(fh,fe.not("config.editor.stablePeek"))});Ao.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:fe.and(fh,Lk,Dk.negate(),Mk.negate()),handler(i){var e;let r=(e=i.get(ry).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(r)&&r[0]instanceof qo&&ph(i,n=>n.revealReference(r[0]))}});Ao.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:fe.and(fh,Lk,Dk.negate(),Mk.negate()),handler(i){var e;let r=(e=i.get(ry).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(r)&&r[0]instanceof qo&&ph(i,n=>n.openReference(r[0],!0,!0))}});Dt.registerCommand("openReference",i=>{var e;let r=(e=i.get(ry).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(r)&&r[0]instanceof qo&&ph(i,n=>n.openReference(r[0],!1,!0))})});var yG,Kb,PL,$b,NL,RL,wG=M(()=>{ei();ke();Lo();lt();In();et();He();wt();hl();Ut();jr();j3();Mo();yG=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Kb=function(i,e){return function(t,r){e(t,r,i)}},PL=new ht("hasSymbols",!1,b("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),$b=Qr("ISymbolNavigationService"),NL=class{constructor(e,t,r,n){this._editorService=t,this._notificationService=r,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=PL.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){let 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();let r=new RL(this._editorService),n=r.onDidChange(o=>{if(this._ignoreEditorChange)return;let s=this._editorService.getActiveCodeEditor();if(!s)return;let a=s.getModel(),l=s.getPosition();if(!a||!l)return;let c=!1,d=!1;for(let u of t.references)if(c_(u.uri,a.uri))c=!0,d=d||B.containsPosition(u.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=D3(r,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;let t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:B.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();let t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),r=t?b("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):b("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(r)}};NL=yG([Kb(0,it),Kb(1,ai),Kb(2,Ri),Kb(3,Kt)],NL);en($b,NL,1);We(new class extends Fi{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:PL,kbOpts:{weight:100,primary:70}})}runEditorCommand(i,e){return i.get($b).revealNext(e)}});Ao.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:PL,primary:9,handler(i){i.get($b).reset()}});RL=class{constructor(e){this._listener=new Map,this._disposables=new ae,this._onDidChange=new Je,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(),ji(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,D3(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)}};RL=yG([Kb(0,ai)],RL)});function Gb(i,e,t,r){return OL(this,void 0,void 0,function*(){let o=t.ordered(i).map(a=>Promise.resolve(r(a,i,e)).then(void 0,l=>{Xt(l)})),s=yield Promise.all(o);return hn(s.flat())})}function mh(i,e,t,r){return Gb(e,t,i,(n,o,s)=>n.provideDefinition(o,s,r))}function FL(i,e,t,r){return Gb(e,t,i,(n,o,s)=>n.provideDeclaration(o,s,r))}function zL(i,e,t,r){return Gb(e,t,i,(n,o,s)=>n.provideImplementation(o,s,r))}function BL(i,e,t,r){return Gb(e,t,i,(n,o,s)=>n.provideTypeDefinition(o,s,r))}function Yb(i,e,t,r,n){return Gb(e,t,i,(o,s,a)=>OL(this,void 0,void 0,function*(){let l=yield o.provideReferences(s,a,{includeDeclaration:!0},n);if(!r||!l||l.length!==2)return l;let c=yield o.provideReferences(s,a,{includeDeclaration:!1},n);return c&&c.length===1?c:l}))}function Xb(i){return OL(this,void 0,void 0,function*(){let e=yield i(),t=new Hn(e,""),r=t.references.map(n=>n.link);return t.dispose(),r})}var OL,IC=M(()=>{mi();ki();qt();lt();Pt();Rp();OL=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};$n("_executeDefinitionProvider",(i,e,t)=>{let r=i.get(Se),n=mh(r.definitionProvider,e,t,st.None);return Xb(()=>n)});$n("_executeTypeDefinitionProvider",(i,e,t)=>{let r=i.get(Se),n=BL(r.typeDefinitionProvider,e,t,st.None);return Xb(()=>n)});$n("_executeDeclarationProvider",(i,e,t)=>{let r=i.get(Se),n=FL(r.declarationProvider,e,t,st.None);return Xb(()=>n)});$n("_executeReferenceProvider",(i,e,t)=>{let r=i.get(Se),n=Yb(r.referenceProvider,e,t,!1,st.None);return Xb(()=>n)});$n("_executeImplementationProvider",(i,e,t)=>{let r=i.get(Se),n=zL(r.implementationProvider,e,t,st.None);return Xb(()=>n)})});var ps,Qb,Zb,Jb,AC,LC,DC,MC,NC,gh,ms,uc,RC,PC,OC,FC,HL,e1=M(()=>{Io();jt();ll();zr();Ir();yu();_k();lt();In();Ap();di();et();ti();fn();ML();Rp();wG();M0();hh();He();Ji();Vi();wt();Ut();Mo();$c();IC();Pt();Jh();lz();ps=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};Zo.appendMenuItem(Me.EditorContext,{submenu:Me.EditorContextPeek,title:b("peek.submenu","Peek"),group:"navigation",order:100});gh=class i{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof i||Ie.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}},ms=class i extends oa{static all(){return i._allSymbolNavigationCommands.values()}static _patchConfig(e){let t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(let r of kn.wrap(t.menu))(r.id===Me.EditorContext||r.id===Me.EditorContextPeek)&&(r.when=fe.and(e.precondition,r.when));return t}constructor(e,t){super(i._patchConfig(t)),this.configuration=e,i._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,r,n){if(!t.hasModel())return Promise.resolve(void 0);let o=e.get(Ri),s=e.get(ai),a=e.get(vl),l=e.get($b),c=e.get(Se),d=e.get(Ke),u=t.getModel(),h=t.getPosition(),f=gh.is(r)?r:new gh(u,h),m=new ga(t,5),g=Vc(this._getLocationModel(c,f.model,f.position,m.token),m.token).then(w=>ps(this,void 0,void 0,function*(){var _;if(!w||m.token.isCancellationRequested)return;ar(w.ariaMessage);let E;if(w.referenceAt(u.uri,h)){let N=this._getAlternativeCommand(t);!i._activeAlternativeCommands.has(N)&&i._allSymbolNavigationCommands.has(N)&&(E=i._allSymbolNavigationCommands.get(N))}let I=w.references.length;if(I===0){if(!this.configuration.muteMessage){let N=u.getWordAtPosition(h);(_=qr.get(t))===null||_===void 0||_.showMessage(this._getNoResultFoundMessage(N),h)}}else if(I===1&&E)i._activeAlternativeCommands.add(this.desc.id),d.invokeFunction(N=>E.runEditorCommand(N,t,r,n).finally(()=>{i._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(s,l,t,w,n)}),w=>{o.error(w)}).finally(()=>{m.dispose()});return a.showWhile(g,250),g}_onResult(e,t,r,n,o){return ps(this,void 0,void 0,function*(){let s=this._getGoToPreference(r);if(!(r instanceof Wo)&&(this.configuration.openInPeek||s==="peek"&&n.references.length>1))this._openInPeek(r,n,o);else{let a=n.firstReference(),l=n.references.length>1&&s==="gotoAndPeek",c=yield this._openReference(r,e,a,this.configuration.openToSide,!l);l&&c?this._openInPeek(c,n,o):n.dispose(),s==="goto"&&t.put(a)}})}_openReference(e,t,r,n,o){return ps(this,void 0,void 0,function*(){let s;if(jO(r)&&(s=r.targetSelectionRange),s||(s=r.range),!s)return;let a=yield t.openCodeEditor({resource:r.uri,options:{selection:B.collapseToStart(s),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(a){if(o){let l=a.getModel(),c=a.createDecorationsCollection([{range:s,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&c.clear()},350)}return a}})}_openInPeek(e,t,r){let n=Xa.get(e);n&&e.hasModel()?n.toggleWidget(r!=null?r:e.getSelection(),Jt(o=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}};ms._allSymbolNavigationCommands=new Map;ms._activeAlternativeCommands=new Set;uc=class extends ms{_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield mh(e.definitionProvider,t,r,n),b("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?b("noResultWord","No definition found for '{0}'",e.word):b("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(57).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(57).multipleDefinitions}};Si((Qb=class extends uc{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qb.id,title:{value:b("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:b({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:fe.and(O.hasDefinitionProvider,O.isInWalkThroughSnippet.toNegated()),keybinding:[{when:O.editorTextFocus,primary:70,weight:100},{when:fe.and(O.editorTextFocus,Ak),primary:2118,weight:100}],menu:[{id:Me.EditorContext,group:"navigation",order:1.1},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),Dt.registerCommandAlias("editor.action.goToDeclaration",Qb.id)}},Qb.id="editor.action.revealDefinition",Qb));Si((Zb=class extends uc{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:Zb.id,title:{value:b("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:fe.and(O.hasDefinitionProvider,O.isInWalkThroughSnippet.toNegated()),keybinding:[{when:O.editorTextFocus,primary:gi(2089,70),weight:100},{when:fe.and(O.editorTextFocus,Ak),primary:gi(2089,2118),weight:100}]}),Dt.registerCommandAlias("editor.action.openDeclarationToTheSide",Zb.id)}},Zb.id="editor.action.revealDefinitionAside",Zb));Si((Jb=class extends uc{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Jb.id,title:{value:b("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:fe.and(O.hasDefinitionProvider,Pr.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),keybinding:{when:O.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:Me.EditorContextPeek,group:"peek",order:2}}),Dt.registerCommandAlias("editor.action.previewDeclaration",Jb.id)}},Jb.id="editor.action.peekDefinition",Jb));RC=class extends ms{_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield FL(e.declarationProvider,t,r,n),b("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?b("decl.noResultWord","No declaration found for '{0}'",e.word):b("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(57).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(57).multipleDeclarations}};Si((AC=class extends RC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:AC.id,title:{value:b("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:b({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:fe.and(O.hasDeclarationProvider,O.isInWalkThroughSnippet.toNegated()),menu:[{id:Me.EditorContext,group:"navigation",order:1.3},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?b("decl.noResultWord","No declaration found for '{0}'",e.word):b("decl.generic.noResults","No declaration found")}},AC.id="editor.action.revealDeclaration",AC));Si(class extends RC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:b("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:fe.and(O.hasDeclarationProvider,Pr.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),menu:{id:Me.EditorContextPeek,group:"peek",order:3}})}});PC=class extends ms{_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield BL(e.typeDefinitionProvider,t,r,n),b("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?b("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):b("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(57).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(57).multipleTypeDefinitions}};Si((LC=class extends PC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:LC.ID,title:{value:b("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:b({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:fe.and(O.hasTypeDefinitionProvider,O.isInWalkThroughSnippet.toNegated()),keybinding:{when:O.editorTextFocus,primary:0,weight:100},menu:[{id:Me.EditorContext,group:"navigation",order:1.4},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},LC.ID="editor.action.goToTypeDefinition",LC));Si((DC=class extends PC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:DC.ID,title:{value:b("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:fe.and(O.hasTypeDefinitionProvider,Pr.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),menu:{id:Me.EditorContextPeek,group:"peek",order:4}})}},DC.ID="editor.action.peekTypeDefinition",DC));OC=class extends ms{_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield zL(e.implementationProvider,t,r,n),b("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?b("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):b("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(57).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(57).multipleImplementations}};Si((MC=class extends OC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:MC.ID,title:{value:b("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:b({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:fe.and(O.hasImplementationProvider,O.isInWalkThroughSnippet.toNegated()),keybinding:{when:O.editorTextFocus,primary:2118,weight:100},menu:[{id:Me.EditorContext,group:"navigation",order:1.45},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},MC.ID="editor.action.goToImplementation",MC));Si((NC=class extends OC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:NC.ID,title:{value:b("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:fe.and(O.hasImplementationProvider,Pr.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),keybinding:{when:O.editorTextFocus,primary:3142,weight:100},menu:{id:Me.EditorContextPeek,group:"peek",order:5}})}},NC.ID="editor.action.peekImplementation",NC));FC=class extends ms{_getNoResultFoundMessage(e){return e?b("references.no","No references found for '{0}'",e.word):b("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(57).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(57).multipleReferences}};Si(class extends FC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:b("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:b({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:fe.and(O.hasReferenceProvider,Pr.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),keybinding:{when:O.editorTextFocus,primary:1094,weight:100},menu:[{id:Me.EditorContext,group:"navigation",order:1.45},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield Yb(e.referenceProvider,t,r,!0,n),b("ref.title","References"))})}});Si(class extends FC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:b("references.action.label","Peek References"),original:"Peek References"},precondition:fe.and(O.hasReferenceProvider,Pr.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),menu:{id:Me.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield Yb(e.referenceProvider,t,r,!1,n),b("ref.title","References"))})}});HL=class extends ms{constructor(e,t,r){super(e,{id:"editor.action.goToLocation",title:{value:b("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:fe.and(Pr.notInPeekEditor,O.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=r}_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(this._references,b("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&b("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(57).multipleReferences}_getAlternativeCommand(){return""}};Dt.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:yt},{name:"position",description:"The position at which to start",constraint:Ie.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:(i,e,t,r,n,o,s)=>ps(void 0,void 0,void 0,function*(){Bt(yt.isUri(e)),Bt(Ie.isIPosition(t)),Bt(Array.isArray(r)),Bt(typeof n=="undefined"||typeof n=="string"),Bt(typeof s=="undefined"||typeof s=="boolean");let a=i.get(ai),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(vk(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{let d=new class extends HL{_getNoResultFoundMessage(u){return o||super._getNoResultFoundMessage(u)}}({muteMessage:!o,openInPeek:!!s,openToSide:!1},r,n);c.get(Ke).invokeFunction(d.run.bind(d),l)})})});Dt.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:yt},{name:"position",description:"The position at which to start",constraint:Ie.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:(i,e,t,r,n)=>ps(void 0,void 0,void 0,function*(){i.get(_i).executeCommand("editor.action.goToLocations",e,t,r,n,void 0,!0)})});Dt.registerCommand({id:"editor.action.findReferences",handler:(i,e,t)=>{Bt(yt.isUri(e)),Bt(Ie.isIPosition(t));let r=i.get(Se),n=i.get(ai);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(o=>{if(!vk(o)||!o.hasModel())return;let s=Xa.get(o);if(!s)return;let a=Jt(c=>Yb(r.referenceProvider,o.getModel(),Ie.lift(t),!1,c).then(d=>new Hn(d,b("ref.title","References")))),l=new B(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(s.toggleWidget(l,a,!1))})}});Dt.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")});var xG=M(()=>{});var CG=M(()=>{xG()});function UL(i,e){return!!i[e]}function SG(i){return i==="altKey"?En?new zp(57,"metaKey",6,"altKey"):new zp(5,"ctrlKey",6,"altKey"):En?new zp(6,"altKey",57,"metaKey"):new zp(6,"altKey",5,"ctrlKey")}var t1,zC,zp,Qa,i1=M(()=>{ei();ke();Tn();t1=class{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=UL(e.event,t.triggerModifier),this.hasSideBySideModifier=UL(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}},zC=class{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=UL(e,t.triggerModifier)}},zp=class{constructor(e,t,r,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=r,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}};Qa=class extends ce{constructor(e,t){var r;super(),this._onMouseMoveOrRelevantKeyDown=this._register(new Je),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new Je),this.onExecute=this._onExecute.event,this._onCancel=this._register(new Je),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=(r=t==null?void 0:t.extractLineNumberFromMouseEvent)!==null&&r!==void 0?r:n=>n.target.position?n.target.position.lineNumber:0,this._opts=SG(this._editor.getOption(76)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(n=>{if(n.hasChanged(76)){let o=SG(this._editor.getOption(76));if(this._opts.equals(o))return;this._opts=o,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(n=>this._onEditorMouseMove(new t1(n,this._opts)))),this._register(this._editor.onMouseDown(n=>this._onEditorMouseDown(new t1(n,this._opts)))),this._register(this._editor.onMouseUp(n=>this._onEditorMouseUp(new t1(n,this._opts)))),this._register(this._editor.onKeyDown(n=>this._onEditorKeyDown(new zC(n,this._opts)))),this._register(this._editor.onKeyUp(n=>this._onEditorKeyUp(new zC(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){let 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()}}});var wbe,jL,kG,r1,Ud,BC=M(()=>{jt();qt();Es();ke();CG();yu();lt();et();es();ra();i1();hh();He();wt();e1();IC();Pt();Ur();wbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},jL=function(i,e){return function(t,r){e(t,r,i)}},kG=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Ud=r1=class{constructor(e,t,r,n){this.textModelResolverService=t,this.languageService=r,this.languageFeaturesService=n,this.toUnhook=new ae,this.toUnhookForKeyboard=new ae,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();let o=new Qa(e);this.toUnhook.add(o),this.toUnhook.add(o.onMouseMoveOrRelevantKeyDown(([s,a])=>{this.startFindDefinitionFromMouse(s,a!=null?a:void 0)})),this.toUnhook.add(o.onExecute(s=>{this.isEnabled(s)&&this.gotoDefinition(s.target.position,s.hasSideBySideModifier).catch(a=>{ft(a)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(o.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(r1.ID)}startFindDefinitionFromCursor(e){return kG(this,void 0,void 0,function*(){yield 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}let r=e.target.position;this.startFindDefinition(r)}startFindDefinition(e){var t;return kG(this,void 0,void 0,function*(){this.toUnhookForKeyboard.clear();let r=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!r){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===r.startColumn&&this.currentWordAtPosition.endColumn===r.endColumn&&this.currentWordAtPosition.word===r.word)return;this.currentWordAtPosition=r;let n=new T_(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Jt(a=>this.findDefinition(e,a));let o;try{o=yield this.previousPromise}catch(a){ft(a);return}if(!o||!o.length||!n.validate(this.editor)){this.removeLinkDecorations();return}let s=o[0].originSelectionRange?B.lift(o[0].originSelectionRange):new B(e.lineNumber,r.startColumn,e.lineNumber,r.endColumn);if(o.length>1){let a=s;for(let{originSelectionRange:l}of o)l&&(a=B.plusRange(a,l));this.addDecoration(a,new $i().appendText(b("multipleResults","Click to show {0} definitions.",o.length)))}else{let a=o[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}let{object:{textEditorModel:c}}=l,{startLineNumber:d}=a.range;if(d<1||d>c.getLineCount()){l.dispose();return}let u=this.getPreviewValue(c,d,a),h=this.languageService.guessLanguageIdByFilepathOrFirstLine(c.uri);this.addDecoration(s,u?new $i().appendCodeblock(h||"",u):void 0),l.dispose()})}})}getPreviewValue(e,t,r){let n=r.range;return n.endLineNumber-n.startLineNumber>=r1.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,r){let o=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{let n=!t&&this.editor.getOption(86)&&!this.isInPeekEditor(r);return new uc({openToSide:t,openInPeek:n,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(r)})}isInPeekEditor(e){let t=e.get(it);return Pr.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};Ud.ID="editor.contrib.gotodefinitionatposition";Ud.MAX_SOURCE_PREVIEW_LINES=8;Ud=r1=wbe([jL(1,Cr),jL(2,er),jL(3,Se)],Ud);Ue(Ud.ID,Ud,2)});var EG,HC,UC,WL,qL,VL,TG=M(()=>{mi();ei();ke();j9();Ni();Ir();et();hl();Ut();F_();Sr();EG=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},HC=function(i,e){return function(t,r){e(t,r,i)}},UC=class{constructor(e,t,r){this.marker=e,this.index=t,this.total=r}},WL=class{constructor(e,t,r){this._markerService=t,this._configService=r,this._onDidChange=new Je,this.onDidChange=this._onDidChange.event,this._dispoables=new ae,this._markers=[],this._nextIdx=-1,yt.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);let n=this._configService.getValue("problems.sortOrder"),o=(a,l)=>{let c=z3(a.resource.toString(),l.resource.toString());return c===0&&(n==="position"?c=B.compareRangesUsingStarts(a,l)||Lr.compare(a.severity,l.severity):c=Lr.compare(a.severity,l.severity)||B.compareRangesUsingStarts(a,l)),c},s=()=>{this._markers=this._markerService.read({resource:yt.isUri(e)?e:void 0,severities:Lr.Error|Lr.Warning|Lr.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(o)};s(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(s(),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(){let e=this._markers[this._nextIdx];return e&&new UC(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,r){let n=!1,o=this._markers.findIndex(s=>s.resource.toString()===e.uri.toString());o<0&&(o=pu(this._markers,{resource:e.uri},(s,a)=>z3(s.resource.toString(),a.resource.toString())),o<0&&(o=~o));for(let s=o;sn.resource.toString()===e.toString());if(!(r<0)){for(;r{});var AG=M(()=>{IG()});var LG=M(()=>{});var DG=M(()=>{LG()});var jC,MG=M(()=>{DG();Zr();An();Nre();(function(i){function e(t){switch(t){case ig.Ignore:return"severity-ignore "+_t.asClassName(pt.info);case ig.Info:return _t.asClassName(pt.info);case ig.Warning:return _t.asClassName(pt.warning);case ig.Error:return _t.asClassName(pt.error);default:return""}}i.className=e})(jC||(jC={}))});var xbe,Bp,KL,$L,bh,NG,RG,PG,GL,Cbe,WC,Sbe,YL,kbe,Ebe,OG=M(()=>{Ht();N_();mi();ca();ei();ke();Lo();Ni();AG();et();hh();He();J_();Ji();wt();Ut();ey();F_();is();MG();tn();rn();xbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Bp=function(i,e){return function(t,r){e(t,r,i)}},$L=class{constructor(e,t,r,n,o){this._openerService=n,this._labelService=o,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new ae,this._editor=t;let s=document.createElement("div");s.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),s.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),s.appendChild(this._relatedBlock),this._disposables.add(To(this._relatedBlock,"click",a=>{a.preventDefault();let l=this._relatedDiagnostics.get(a.target);l&&r(l)})),this._scrollable=new pF(s,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{s.style.left=`-${a.scrollLeft}px`,s.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){ji(this._disposables)}update(e){let{source:t,message:r,relatedInformation:n,code:o}=e,s=((t==null?void 0:t.length)||0)+2;o&&(typeof o=="string"?s+=o.length:s+=o.value.length);let a=hu(r);this._lines=a.length,this._longestLineLength=0;for(let h of a)this._longestLineLength=Math.max(h.length+s,this._longestLineLength);qn(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(let h of a)l=document.createElement("div"),l.innerText=h,h===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||o){let h=document.createElement("span");if(h.classList.add("details"),l.appendChild(h),t){let f=document.createElement("span");f.innerText=t,f.classList.add("source"),h.appendChild(f)}if(o)if(typeof o=="string"){let f=document.createElement("span");f.innerText=`(${o})`,f.classList.add("code"),h.appendChild(f)}else{this._codeLink=Ae("a.code-link"),this._codeLink.setAttribute("href",`${o.target.toString()}`),this._codeLink.onclick=m=>{this._openerService.open(o.target,{allowCommands:!0}),m.preventDefault(),m.stopPropagation()};let f=Te(this._codeLink,Ae("span"));f.innerText=o.value,h.appendChild(this._codeLink)}}if(qn(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Ki(n)){let h=this._relatedBlock.appendChild(document.createElement("div"));h.style.paddingTop=`${Math.floor(this._editor.getOption(65)*.66)}px`,this._lines+=1;for(let f of n){let m=document.createElement("div"),g=document.createElement("a");g.classList.add("filename"),g.innerText=`${this._labelService.getUriBasenameLabel(f.resource)}(${f.startLineNumber}, ${f.startColumn}): `,g.title=this._labelService.getUriLabel(f.resource),this._relatedDiagnostics.set(g,f);let w=document.createElement("span");w.innerText=f.message,m.appendChild(g),m.appendChild(w),this._lines+=1,h.appendChild(m)}}let c=this._editor.getOption(49),d=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),u=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:u})}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 Lr.Error:t=b("Error","Error");break;case Lr.Warning:t=b("Warning","Warning");break;case Lr.Info:t=b("Info","Info");break;case Lr.Hint:t=b("Hint","Hint");break}let r=b("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn),n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(r=`${n.getLineContent(e.startLineNumber)}, ${r}`),r}},bh=KL=class extends Np{constructor(e,t,r,n,o,s,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},o),this._themeService=t,this._openerService=r,this._menuService=n,this._contextKeyService=s,this._labelService=a,this._callOnDispose=new ae,this._onDidSelectRelatedInformation=new Je,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=Lr.Warning,this._backgroundColor=vt.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Ebe);let t=GL,r=Cbe;this._severity===Lr.Warning?(t=WC,r=Sbe):this._severity===Lr.Info&&(t=YL,r=kbe);let n=e.getColor(t),o=e.getColor(r);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:o,primaryHeadingColor:e.getColor(mC),secondaryHeadingColor:e.getColor(gC)})}_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()));let t=[],r=this._menuService.createMenu(KL.TitleMenu,this._contextKeyService);Q_(r,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),r.dispose()}_fillTitleIcon(e){this._icon=Te(e,Ae(""))}_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 $L(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,r){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());let n=B.lift(e),o=this.editor.getPosition(),s=o&&n.containsPosition(o)?o:n.getStartPosition();super.show(s,this.computeRequiredHeight());let a=this.editor.getModel();if(a){let l=r>1?b("problems","{0} of {1} problems",t,r):b("change","{0} of {1} problem",t,r);this.setTitle(Dn(a.uri),l)}this._icon.className=`codicon ${jC.className(Lr.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(s,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()}};bh.TitleMenu=new Me("gotoErrorTitleMenu");bh=KL=xbe([Bp(1,br),Bp(2,tr),Bp(3,Ss),Bp(4,Ke),Bp(5,it),Bp(6,Tl)],bh);NG=__(mO,gO),RG=__(bO,vO),PG=__(jm,_O),GL=je("editorMarkerNavigationError.background",{dark:NG,light:NG,hcDark:ts,hcLight:ts},b("editorMarkerNavigationError","Editor marker navigation widget error color.")),Cbe=je("editorMarkerNavigationError.headerBackground",{dark:Nn(GL,.1),light:Nn(GL,.1),hcDark:null,hcLight:null},b("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),WC=je("editorMarkerNavigationWarning.background",{dark:RG,light:RG,hcDark:ts,hcLight:ts},b("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Sbe=je("editorMarkerNavigationWarning.headerBackground",{dark:Nn(WC,.1),light:Nn(WC,.1),hcDark:"#0C141F",hcLight:Nn(WC,.2)},b("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),YL=je("editorMarkerNavigationInfo.background",{dark:PG,light:PG,hcDark:ts,hcLight:ts},b("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),kbe=je("editorMarkerNavigationInfo.headerBackground",{dark:Nn(YL,.1),light:Nn(YL,.1),hcDark:null,hcLight:null},b("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Ebe=je("editorMarkerNavigation.background",{dark:Wm,light:Wm,hcDark:Wm,hcLight:Wm},b("editorMarkerNavigationBackground","Editor marker navigation widget background."))});var Tbe,VC,FG,n1,hc,Hp,vh,o1,XL,QL,zG,Ibe,qC=M(()=>{Zr();ke();lt();In();di();et();ti();TG();He();Ji();wt();Ut();Sl();OG();Tbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},VC=function(i,e){return function(t,r){e(t,r,i)}},FG=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},hc=n1=class{static get(e){return e.getContribution(n1.ID)}constructor(e,t,r,n,o){this._markerNavigationService=t,this._contextKeyService=r,this._editorService=n,this._instantiationService=o,this._sessionDispoables=new ae,this._editor=e,this._widgetVisible=zG.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(bh,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(r=>{var n,o,s;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!B.containsPosition((o=this._model)===null||o===void 0?void 0:o.selected.marker,r.position))&&((s=this._model)===null||s===void 0||s.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;let r=this._model.find(this._editor.getModel().uri,this._widget.position);r?this._widget.updateMarker(r.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(r=>{this._editorService.openCodeEditor({resource:r.resource,options:{pinned:!0,revealIfOpened:!0,selection:B.lift(r).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()){let t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new Ie(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var r,n;return FG(this,void 0,void 0,function*(){if(this._editor.hasModel()){let o=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(o.move(e,this._editor.getModel(),this._editor.getPosition()),!o.selected)return;if(o.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();let s=yield this._editorService.openCodeEditor({resource:o.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:o.selected.marker}},this._editor);s&&((r=n1.get(s))===null||r===void 0||r.close(),(n=n1.get(s))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(o.selected.marker,o.selected.index,o.selected.total)}})}};hc.ID="editor.contrib.markerController";hc=n1=Tbe([VC(1,qL),VC(2,it),VC(3,ai),VC(4,Ke)],hc);Hp=class extends de{constructor(e,t,r){super(r),this._next=e,this._multiFile=t}run(e,t){var r;return FG(this,void 0,void 0,function*(){t.hasModel()&&((r=hc.get(t))===null||r===void 0||r.nagivate(this._next,this._multiFile))})}},vh=class i extends Hp{constructor(){super(!0,!1,{id:i.ID,label:i.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:578,weight:100},menuOpts:{menuId:bh.TitleMenu,title:i.LABEL,icon:Pi("marker-navigation-next",pt.arrowDown,b("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}};vh.ID="editor.action.marker.next";vh.LABEL=b("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");o1=class i extends Hp{constructor(){super(!1,!1,{id:i.ID,label:i.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:1602,weight:100},menuOpts:{menuId:bh.TitleMenu,title:i.LABEL,icon:Pi("marker-navigation-previous",pt.arrowUp,b("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}};o1.ID="editor.action.marker.prev";o1.LABEL=b("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");XL=class extends Hp{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:b("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:O.focus,primary:66,weight:100},menuOpts:{menuId:Me.MenubarGoMenu,title:b({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}},QL=class extends Hp{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:b("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:O.focus,primary:1090,weight:100},menuOpts:{menuId:Me.MenubarGoMenu,title:b({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}};Ue(hc.ID,hc,4);ee(vh);ee(o1);ee(XL);ee(QL);zG=new ht("markersNavigationVisible",!1),Ibe=Fi.bindToContribution(hc.get);We(new Ibe({id:"closeMarkersNavigation",precondition:zG,handler:i=>i.close(),kbOpts:{weight:100+50,kbExpr:O.focus,primary:9,secondary:[1033]}}))});var BG=M(()=>{});var HG=M(()=>{BG()});function UG(i,e){return i&&e?b("acessibleViewHint","Inspect this in the accessible view with {0}.",e):i?b("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}var KC,Up,$C,ZL=M(()=>{Ht();Z9();N_();ke();HG();He();KC=Ae,Up=class extends ce{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Cf(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}},$C=class i extends ce{static render(e,t,r){return new i(e,t,r)}constructor(e,t,r){super(),this.actionContainer=Te(e,KC("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=Te(this.actionContainer,KC("a.action")),this.action.setAttribute("role","button"),t.iconClass&&Te(this.action,KC(`span.icon.${t.iconClass}`));let n=Te(this.action,KC("span"));n.textContent=r?`${t.label} (${r})`:t.label,this._register(Lt(this.actionContainer,bi.CLICK,o=>{o.stopPropagation(),o.preventDefault(),t.run(this.actionContainer)})),this._register(Lt(this.actionContainer,bi.KEY_DOWN,o=>{let s=new Wv(o);(s.equals(3)||s.equals(10))&&(o.stopPropagation(),o.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}});var Abe,Lbe,JL,jp,e8=M(()=>{jt();qt();ei();ke();Abe=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Lbe=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=i[o]&&function(s){return new Promise(function(a,l){s=i[o](s),n(a,l,s.done,s.value)})}}function n(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}},JL=class{constructor(e,t,r){this.value=e,this.isComplete=t,this.hasLoadingMessage=r}},jp=class extends ce{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new Je),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new ui(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new ui(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new ui(()=>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(59).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=iO(e=>this._computer.computeAsync(e)),Abe(this,void 0,void 0,function*(){var e,t,r,n;try{try{for(var o=!0,s=Lbe(this._asyncIterable),a;a=yield s.next(),e=a.done,!e;o=!0){n=a.value,o=!1;let l=n;l&&(this._result.push(l),this._fireResult())}}catch(l){t={error:l}}finally{try{!o&&!e&&(r=s.return)&&(yield r.call(s))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(l){ft(l)}})):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;let e=this._state===0,t=this._state===4;this._onResult.fire(new JL(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)}}});var Dbe,Mbe,GC,jG=M(()=>{Z2();ke();di();Ht();Dbe=30,Mbe=24,GC=class extends ce{constructor(e,t=new Qt(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new Od),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=Qt.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize(r=>{this._resize(new Qt(r.dimension.width,r.dimension.height)),r.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?Ie.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){let t=this._editor.getDomNode(),r=this._editor.getScrolledVisiblePosition(e);return!t||!r?void 0:Zi(t).top+r.top-Dbe}_availableVerticalSpaceBelow(e){let t=this._editor.getDomNode(),r=this._editor.getScrolledVisiblePosition(e);if(!t||!r)return;let n=Zi(t),o=Oc(document.body),s=n.top+r.top+r.height;return o.height-s-Mbe}_findPositionPreference(e,t){var r,n;let o=Math.min((r=this._availableVerticalSpaceBelow(t))!==null&&r!==void 0?r:1/0,e),s=Math.min((n=this._availableVerticalSpaceAbove(t))!==null&&n!==void 0?n:1/0,e),a=Math.min(Math.max(s,o),e),l=Math.min(e,a),c;return this._editor.getOption(59).above?c=l<=s?1:2:c=l<=o?2:1,c===1?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),c}_resize(e){this._resizableNode.layout(e.height,e.width)}}});function qG(i,e,t,r,n,o){let s=t+n/2,a=r+o/2,l=Math.max(Math.abs(i-s)-n/2,0),c=Math.max(Math.abs(e-a)-o/2,0);return Math.sqrt(l*l+c*c)}var o8,_h,YC,Za,WG,s1,XC,i8,r8,VG,t8,Nbe,fc,a1,n8,s8=M(()=>{Ht();ZL();mi();ke();di();et();Ur();fn();e8();rc();Ut();jr();jt();ti();wt();jG();Sr();X_();o8=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_h=function(i,e){return function(t,r){e(t,r,i)}},WG=Ae,s1=YC=class extends ce{constructor(e,t,r){super(),this._editor=e,this._instantiationService=t,this._keybindingService=r,this._currentResult=null,this._widget=this._register(this._instantiationService.createInstance(fc,this._editor)),this._participants=[];for(let n of Uo.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,o)=>n.hoverOrdinal-o.hoverOrdinal),this._computer=new n8(this._editor,this._participants),this._hoverOperation=this._register(new jp(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{if(!this._computer.anchor)return;let o=n.hasLoadingMessage?this._addLoadingMessage(n.value):n.value;this._withResult(new XC(this._computer.anchor,o,n.isComplete))})),this._register(To(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(_f.onDidChange(()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)}))}get widget(){return this._widget}maybeShowAt(e){if(this._widget.isResizing)return!0;let t=[];for(let n of this._participants)if(n.suggestHoverAnchor){let o=n.suggestHoverAnchor(e);o&&t.push(o)}let r=e.target;if(r.type===6&&t.push(new bp(0,r.range,e.event.posx,e.event.posy)),r.type===7){let n=this._editor.getOption(49).typicalHalfwidthCharacterWidth/2;!r.detail.isAfterLines&&typeof r.detail.horizontalDistanceToText=="number"&&r.detail.horizontalDistanceToTexto.priority-n.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,r,n){this._startShowingOrUpdateHover(new bp(0,e,void 0,void 0),t,r,n,null)}_startShowingOrUpdateHover(e,t,r,n,o){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,r,n,!1),!0):!1:this._editor.getOption(59).sticky&&o&&this._widget.isMouseGettingCloser(o.event.posx,o.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,r,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,r,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,r,n,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,r,n,o){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=r,this._computer.insistOnKeepingHoverVisible=o,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())}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}containsNode(e){return e?this._widget.getDomNode().contains(e):!1}_addLoadingMessage(e){if(this._computer.anchor){for(let t of this._participants)if(t.createLoadingMessage){let r=t.createLoadingMessage(this._computer.anchor);if(r)return e.slice(0).concat([r])}}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){let{showAtPosition:r,showAtSecondaryPosition:n,highlightRange:o}=YC.computeHoverRanges(this._editor,e.range,t),s=new ae,a=s.add(new a1(this._keybindingService)),l=document.createDocumentFragment(),c=null,d={fragment:l,statusBar:a,setColorPicker:h=>c=h,onContentsChanged:()=>this._widget.onContentsChanged(),setMinimumDimensions:h=>this._widget.setMinimumDimensions(h),hide:()=>this.hide()};for(let h of this._participants){let f=t.filter(m=>m.owner===h);f.length>0&&s.add(h.renderHoverParts(d,f))}let u=t.some(h=>h.isBeforeContent);if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(o){let h=this._editor.createDecorationsCollection();h.set([{range:o,options:YC._DECORATION_OPTIONS}]),s.add(ri(()=>{h.clear()}))}this._widget.showAt(l,new r8(c,r,n,this._editor.getOption(59).above,this._computer.shouldFocus,this._computer.source,u,e.initialMousePosX,e.initialMousePosY,s))}else s.dispose()}static computeHoverRanges(e,t,r){let n=1;if(e.hasModel()){let c=e._getViewModel(),d=c.coordinatesConverter,u=d.convertModelRangeToViewRange(t),h=new Ie(u.startLineNumber,c.getLineMinColumn(u.startLineNumber));n=d.convertViewPositionToModelPosition(h).column}let o=t.startLineNumber,s=t.startColumn,a=r[0].range,l=null;for(let c of r)a=B.plusRange(a,c.range),c.range.startLineNumber===o&&c.range.endLineNumber===o&&(s=Math.max(Math.min(s,c.range.startColumn),n)),c.forceShowAtRange&&(l=c.range);return{showAtPosition:l?l.getStartPosition():new Ie(o,t.startColumn),showAtSecondaryPosition:l?l.getStartPosition():new Ie(o,s),highlightRange:a}}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()}};s1._DECORATION_OPTIONS=mt.register({description:"content-hover-highlight",className:"hoverHighlight"});s1=YC=o8([_h(1,Ke),_h(2,Kt)],s1);XC=class{constructor(e,t,r){this.anchor=e,this.messages=t,this.isComplete=r}filter(e){let t=this.messages.filter(r=>r.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new i8(this,this.anchor,t,this.isComplete)}},i8=class extends XC{constructor(e,t,r,n){super(t,r,n),this.original=e}filter(e){return this.original.filter(e)}},r8=class{constructor(e,t,r,n,o,s,a,l,c,d){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=r,this.preferAbove=n,this.stoleFocus=o,this.source=s,this.isBeforeContent=a,this.initialMousePosX=l,this.initialMousePosY=c,this.disposables=d,this.closestMouseDistance=void 0}},VG=30,t8=10,Nbe=6,fc=Za=class extends GC{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,r,n,o){let s=e.getOption(65)+8,a=150,l=new Qt(a,s);super(e,l),this._configurationService=r,this._accessibilityService=n,this._keybindingService=o,this._hover=this._register(new Up),this._minimumSize=l,this._hoverVisibleKey=O.hoverVisible.bindTo(t),this._hoverFocusedKey=O.hoverFocused.bindTo(t),Te(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(d=>{d.hasChanged(49)&&this._updateFont()}));let c=this._register(xs(this._resizableNode.domNode));this._register(c.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(c.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setHoverData(void 0),this._layout(),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 Za.ID}static _applyDimensions(e,t,r){let n=typeof t=="number"?`${t}px`:t,o=typeof r=="number"?`${r}px`:r;e.style.width=n,e.style.height=o}_setContentsDomNodeDimensions(e,t){let r=this._hover.contentsDomNode;return Za._applyDimensions(r,e,t)}_setContainerDomNodeDimensions(e,t){let r=this._hover.containerDomNode;return Za._applyDimensions(r,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,r){let n=typeof t=="number"?`${t}px`:t,o=typeof r=="number"?`${r}px`:r;e.style.maxWidth=n,e.style.maxHeight=o}_setHoverWidgetMaxDimensions(e,t){Za._applyMaxDimensions(this._hover.contentsDomNode,e,t),Za._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth",typeof e=="number"?`${e}px`:e),this._layoutContentWidget()}_hasHorizontalScrollbar(){let e=this._hover.scrollbar.getScrollDimensions();return e.scrollWidth>e.width}_adjustContentsBottomPadding(){let e=this._hover.contentsDomNode,t=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;e.style.paddingBottom!==t&&(e.style.paddingBottom=t)}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");let t=e.width,r=e.height;this._setHoverWidgetDimensions(t,r),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._setContentsDomNodeDimensions(t,r-t8))}_updateResizableNodeMaxDimensions(){var e,t;let r=(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 Qt(r,n),this._setHoverWidgetMaxDimensions(r,n)}_resize(e){var t,r;Za._lastDimensions=new Qt(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),(r=(t=this._visibleData)===null||t===void 0?void 0:t.colorPicker)===null||r===void 0||r.layout()}_findAvailableSpaceVertically(){var e;let 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(){let e=this._findAvailableSpaceVertically();if(!e)return;let t=Nbe;return Array.from(this._hover.contentsDomNode.children).forEach(r=>{t+=r.clientHeight}),this._hasHorizontalScrollbar()&&(t+=t8),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");let 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;let e=this._isHoverTextOverflowing(),t=typeof this._contentWidth=="undefined"?0:this._contentWidth-2;return e||this._hover.containerDomNode.clientWidththis._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)}_layout(){let{fontSize:e,lineHeight:t}=this._editor.getOption(49),r=this._hover.contentsDomNode;r.style.fontSize=`${e}px`,r.style.lineHeight=`${t/e}`,this._updateMaxDimensions()}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_updateContent(e){let t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){let e=Math.max(this._editor.getLayoutInfo().height/4,250,Za._lastDimensions.height),t=Math.max(this._editor.getLayoutInfo().width*.66,500,Za._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 r,n,o,s;if(!this._editor||!this._editor.hasModel())return;this._render(e,t);let a=Mm(this._hover.containerDomNode),l=t.showAtPosition;this._positionPreference=(r=this._findPositionPreference(a,l))!==null&&r!==void 0?r:1,this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(n=t.colorPicker)===null||n===void 0||n.layout();let c=UG(this._configurationService.getValue("accessibility.verbosity.hover")===!0&&this._accessibilityService.isScreenReaderOptimized(),(s=(o=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))===null||o===void 0?void 0:o.getAriaLabel())!==null&&s!==void 0?s:"");c&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+c)}hide(){if(!this._visibleData)return;let e=this._visibleData.stoleFocus||this._hoverFocusedKey.get();this._setHoverData(void 0),this._resizableNode.maxSize=new Qt(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){let e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}_adjustHoverHeightForScrollbar(e){var t;let r=this._hover.containerDomNode,n=this._hover.contentsDomNode,o=(t=this._findMaximumRenderingHeight())!==null&&t!==void 0?t:1/0;this._setContainerDomNodeDimensions(Kn(r),Math.min(o,e)),this._setContentsDomNodeDimensions(Kn(n),Math.min(o,e-t8))}setMinimumDimensions(e){this._minimumSize=new Qt(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){let e=typeof this._contentWidth=="undefined"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new Qt(e,this._minimumSize.height)}onContentsChanged(){var e;this._removeConstraintsRenderNormally();let t=this._hover.containerDomNode,r=Mm(t),n=Kn(t);if(this._resizableNode.layout(r,n),this._setHoverWidgetDimensions(n,r),r=Mm(t),n=Kn(t),this._contentWidth=n,this._updateMinimumWidth(),this._resizableNode.layout(r,n),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._adjustHoverHeightForScrollbar(r)),!((e=this._visibleData)===null||e===void 0)&&e.showAtPosition){let o=Mm(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(o,this._visibleData.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(49);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(49);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){let e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-VG})}scrollRight(){let e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+VG})}pageUp(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){let 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})}};fc.ID="editor.contrib.resizableContentHoverWidget";fc._lastDimensions=new Qt(0,0);fc=Za=o8([_h(1,it),_h(2,Mt),_h(3,kf),_h(4,Kt)],fc);a1=class extends ce{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=WG("div.hover-row.status-bar"),this.actionsElement=Te(this.hoverElement,WG("div.actions"))}addAction(e){let t=this._keybindingService.lookupKeybinding(e.commandId),r=t?t.getLabel():null;return this._hasContent=!0,this._register($C.render(this.actionsElement,e,r))}append(e){let t=Te(this.actionsElement,e);return this._hasContent=!0,t}};a1=o8([_h(0,Kt)],a1);n8=class i{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[];let r=e.getModel(),n=t.range.startLineNumber;if(n>r.getLineCount())return[];let o=r.getLineMaxColumn(n);return e.getLineDecorations(n).filter(s=>{if(s.options.isWholeLine)return!0;let a=s.range.startLineNumber===n?s.range.startColumn:1,l=s.range.endLineNumber===n?s.range.endColumn:o;if(s.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){let t=this._anchor;if(!this._editor.hasModel()||!t)return Mn.EMPTY;let r=i._getLineDecorations(this._editor,t);return Mn.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,r,e):Mn.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];let e=i._getLineDecorations(this._editor,this._anchor),t=[];for(let r of this._participants)t=t.concat(r.computeSync(this._anchor,e));return hn(t)}}});var KG,yh,a8,$G=M(()=>{Ht();mi();Es();ke();kd();e8();ZL();KG=Ae,yh=class i extends ce{constructor(e,t,r){super(),this._renderDisposeables=this._register(new ae),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new Up),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new to({editor:this._editor},t,r)),this._computer=new a8(this._editor),this._hoverOperation=this._register(new jp(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(49)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return i.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))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,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();let r=document.createDocumentFragment();for(let n of t){let o=KG("div.hover-row.markdown-hover"),s=Te(o,KG("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));s.appendChild(a.element),r.appendChild(o)}this._updateContents(r),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));let t=this._editor.getLayoutInfo(),r=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),o=this._editor.getOption(65),s=this._hover.containerDomNode.clientHeight,a=r-n-(s-o)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}};yh.ID="editor.contrib.modesGlyphHoverWidget";a8=class{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){let e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),r=[];if(!t)return r;for(let n of t){if(!n.options.glyphMarginClassName)continue;let o=n.options.glyphMarginHoverMessage;!o||Wc(o)||r.push(...t_(o).map(e))}return r}}});function Pbe(i,e,t,r,n){return Rbe(this,void 0,void 0,function*(){try{let o=yield Promise.resolve(i.provideHover(t,r,n));if(o&&Fbe(o))return new l8(i,o,e)}catch(o){Xt(o)}})}function l1(i,e,t,r){let o=i.ordered(e).map((s,a)=>Pbe(s,a,e,t,r));return Mn.fromPromises(o).coalesce()}function Obe(i,e,t,r){return l1(i,e,t,r).map(n=>n.hover).toPromise()}function Fbe(i){let e=typeof i.range!="undefined",t=typeof i.contents!="undefined"&&i.contents&&i.contents.length>0;return e&&t}var Rbe,l8,c8=M(()=>{jt();ki();qt();lt();Pt();Rbe=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},l8=class{constructor(e,t,r){this.provider=e,this.hover=t,this.ordinal=r}};$n("_executeHoverProvider",(i,e,t)=>{let r=i.get(Se);return Obe(r.hoverProvider,e,t,st.None)})});function d8(i,e,t,r,n){e.sort((s,a)=>s.ordinal-a.ordinal);let o=new ae;for(let s of e)for(let a of s.contents){if(Wc(a))continue;let l=GG("div.hover-row.markdown-hover"),c=Te(l,GG("div.hover-contents")),d=o.add(new to({editor:t},r,n));o.add(d.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",i.onContentsChanged()}));let u=o.add(d.render(a));c.appendChild(u.element),i.fragment.appendChild(l)}return o}var zbe,QC,GG,ro,Wp,ZC=M(()=>{Ht();mi();jt();Es();ke();kd();di();et();es();c8();He();Sr();is();Pt();zbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},QC=function(i,e){return function(t,r){e(t,r,i)}},GG=Ae,ro=class{constructor(e,t,r,n,o){this.owner=e,this.range=t,this.contents=r,this.isBeforeContent=n,this.ordinal=o}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},Wp=class{constructor(e,t,r,n,o){this._editor=e,this._languageService=t,this._openerService=r,this._configurationService=n,this._languageFeaturesService=o,this.hoverOrdinal=3}createLoadingMessage(e){return new ro(this,e.range,[new $i().appendText(b("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];let r=this._editor.getModel(),n=e.range.startLineNumber,o=r.getLineMaxColumn(n),s=[],a=1e3,l=r.getLineLength(n),c=r.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),d=this._editor.getOption(115),u=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c}),h=!1;d>=0&&l>d&&e.range.startColumn>=d&&(h=!0,s.push(new ro(this,e.range,[{value:b("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!h&&typeof u=="number"&&l>=u&&s.push(new ro(this,e.range,[{value:b("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let f=!1;for(let m of t){let g=m.range.startLineNumber===n?m.range.startColumn:1,w=m.range.endLineNumber===n?m.range.endColumn:o,_=m.options.hoverMessage;if(!_||Wc(_))continue;m.options.beforeContentClassName&&(f=!0);let E=new B(e.range.startLineNumber,g,e.range.startLineNumber,w);s.push(new ro(this,E,t_(_),f,a++))}return s}computeAsync(e,t,r){if(!this._editor.hasModel()||e.type!==1)return Mn.EMPTY;let n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return Mn.EMPTY;let o=new Ie(e.range.startLineNumber,e.range.startColumn);return l1(this._languageFeaturesService.hoverProvider,n,o,r).filter(s=>!Wc(s.hover.contents)).map(s=>{let a=s.hover.range?B.lift(s.hover.range):e.range;return new ro(this,a,s.hover.contents,!1,s.ordinal)})}renderHoverParts(e,t){return d8(e,t,this._editor,this._languageService,this._openerService)}};Wp=zbe([QC(1,er),QC(2,tr),QC(3,Mt),QC(4,Se)],Wp)});var Bbe,u8,gs,h8,YG,JC,XG=M(()=>{Ht();mi();jt();qt();ke();Lo();et();Pt();Zre();Ku();Fx();Sd();qC();He();F_();is();$c();Bbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},u8=function(i,e){return function(t,r){e(t,r,i)}},gs=Ae,h8=class{constructor(e,t,r){this.owner=e,this.range=t,this.marker=r}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},YG={type:1,filter:{include:nt.QuickFix},triggerAction:Vr.QuickFixHover},JC=class{constructor(e,t,r,n){this._editor=e,this._markerDecorationsService=t,this._openerService=r,this._languageFeaturesService=n,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];let r=this._editor.getModel(),n=e.range.startLineNumber,o=r.getLineMaxColumn(n),s=[];for(let a of t){let l=a.range.startLineNumber===n?a.range.startColumn:1,c=a.range.endLineNumber===n?a.range.endColumn:o,d=this._markerDecorationsService.getMarker(r.uri,a);if(!d)continue;let u=new B(e.range.startLineNumber,l,e.range.startLineNumber,c);s.push(new h8(this,u,d))}return s}renderHoverParts(e,t){if(!t.length)return ce.None;let r=new ae;t.forEach(o=>e.fragment.appendChild(this.renderMarkerHover(o,r)));let n=t.length===1?t[0]:t.sort((o,s)=>Lr.compare(o.marker.severity,s.marker.severity))[0];return this.renderMarkerStatusbar(e,n,r),r}renderMarkerHover(e,t){let r=gs("div.hover-row"),n=Te(r,gs("div.marker.hover-contents")),{source:o,message:s,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);let c=Te(n,gs("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=s,o||a)if(a&&typeof a!="string"){let d=gs("span");if(o){let m=Te(d,gs("span"));m.innerText=o}let u=Te(d,gs("a.code-link"));u.setAttribute("href",a.target.toString()),t.add(Lt(u,"click",m=>{this._openerService.open(a.target,{allowCommands:!0}),m.preventDefault(),m.stopPropagation()}));let h=Te(u,gs("span"));h.innerText=a.value;let f=Te(n,d);f.style.opacity="0.6",f.style.paddingLeft="6px"}else{let d=Te(n,gs("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=o&&a?`${o}(${a})`:o||`(${a})`}if(Ki(l))for(let{message:d,resource:u,startLineNumber:h,startColumn:f}of l){let m=Te(n,gs("div"));m.style.marginTop="8px";let g=Te(m,gs("a"));g.innerText=`${Dn(u)}(${h}, ${f}): `,g.style.cursor="pointer",t.add(Lt(g,"click",_=>{_.stopPropagation(),_.preventDefault(),this._openerService&&this._openerService.open(u,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:h,startColumn:f}}}).catch(ft)}));let w=Te(m,gs("span"));w.innerText=d,this._editor.applyFontInfo(w)}return r}renderMarkerStatusbar(e,t,r){if((t.marker.severity===Lr.Error||t.marker.severity===Lr.Warning||t.marker.severity===Lr.Info)&&e.statusBar.addAction({label:b("view problem","View Problem"),commandId:vh.ID,run:()=>{var n;e.hide(),(n=hc.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(89)){let n=e.statusBar.append(gs("div"));this.recentMarkerCodeActionsInfo&&(fk.makeKey(this.recentMarkerCodeActionsInfo.marker)===fk.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=b("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);let o=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?ce.None:r.add(ml(()=>n.textContent=b("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=String.fromCharCode(160));let s=this.getCodeActions(t.marker);r.add(ri(()=>s.cancel())),s.then(a=>{if(o.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=b("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;r.add(ri(()=>{l||a.dispose()})),e.statusBar.addAction({label:b("quick fixes","Quick Fix..."),commandId:tp,run:c=>{l=!0;let d=Ha.get(this._editor),u=Zi(c);e.hide(),d==null||d.showCodeActions(YG,a,{x:u.left,y:u.top,width:u.width,height:u.height})}})},ft)}}getCodeActions(e){return Jt(t=>A0(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new B(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),YG,ba.None,t))}};JC=Bbe([u8(1,ZF),u8(2,tr),u8(3,Se)],JC)});var QG=M(()=>{});var ZG=M(()=>{QG()});var Hbe,eS,f8,tS,yn,p8,m8,g8,b8,v8,_8,y8,w8,x8,C8,iS=M(()=>{ll();ke();lt();et();ti();es();BC();s8();$G();Ut();is();tn();rn();rc();ZC();XG();B2();jr();He();ZG();Hbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},eS=function(i,e){return function(t,r){e(t,r,i)}},tS=!1,yn=f8=class{static get(e){return e.getContribution(f8.ID)}constructor(e,t,r,n,o){this._editor=e,this._instantiationService=t,this._openerService=r,this._languageService=n,this._keybindingService=o,this._toUnhook=new ae,this._hoverActivatedByColorDecoratorClick=!1,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(s=>{s.hasChanged(59)&&(this._unhookEvents(),this._hookEvents())})}_hookEvents(){let e=()=>this._hideWidgets(),t=this._editor.getOption(59);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(r=>this._onEditorMouseDown(r))),this._toUnhook.add(this._editor.onMouseUp(r=>this._onEditorMouseUp(r))),this._toUnhook.add(this._editor.onMouseMove(r=>this._onEditorMouseMove(r))),this._toUnhook.add(this._editor.onKeyDown(r=>this._onKeyDown(r)))):(this._toUnhook.add(this._editor.onMouseMove(r=>this._onEditorMouseMove(r))),this._toUnhook.add(this._editor.onKeyDown(r=>this._onKeyDown(r)))),this._toUnhook.add(this._editor.onMouseLeave(r=>this._onEditorMouseLeave(r))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(r=>this._onEditorScrollChanged(r)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){var t;this._isMouseDown=!0;let r=e.target;if(r.type===9&&r.detail===fc.ID){this._hoverClicked=!0;return}r.type===12&&r.detail===yh.ID||(r.type!==12&&(this._hoverClicked=!1),!((t=this._contentWidget)===null||t===void 0)&&t.widget.isResizing||this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t,r;let n=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.widget.isResizing||!((r=this._contentWidget)===null||r===void 0)&&r.containsNode(n)||tS||this._hideWidgets()}_onEditorMouseMove(e){var t,r,n,o,s,a,l,c,d,u,h;let f=e.target;if(!((t=this._contentWidget)===null||t===void 0)&&t.isFocused||!((r=this._contentWidget)===null||r===void 0)&&r.isResizing||this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&f.type===9&&f.detail===fc.ID||this._isHoverSticky&&(!((n=this._contentWidget)===null||n===void 0)&&n.containsNode((o=e.event.browserEvent.view)===null||o===void 0?void 0:o.document.activeElement))&&!(!((a=(s=e.event.browserEvent.view)===null||s===void 0?void 0:s.getSelection())===null||a===void 0)&&a.isCollapsed)||!this._isHoverSticky&&f.type===9&&f.detail===fc.ID&&(!((l=this._contentWidget)===null||l===void 0)&&l.isColorPickerVisible)||this._isHoverSticky&&f.type===12&&f.detail===yh.ID||this._isHoverSticky&&(!((c=this._contentWidget)===null||c===void 0)&&c.isVisibleFromKeyboard))return;let m=(d=f.element)===null||d===void 0?void 0:d.classList.contains("colorpicker-color-decoration"),g=this._editor.getOption(145);if(m&&(g==="click"&&!this._hoverActivatedByColorDecoratorClick||g==="hover"&&!this._isHoverEnabled&&!tS||g==="clickAndHover"&&!this._isHoverEnabled&&!this._hoverActivatedByColorDecoratorClick)||!m&&!this._isHoverEnabled&&!this._hoverActivatedByColorDecoratorClick){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(u=this._glyphWidget)===null||u===void 0||u.hide();return}if(f.type===2&&f.position){(h=this._contentWidget)===null||h===void 0||h.hide(),this._glyphWidget||(this._glyphWidget=new yh(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(f.position.lineNumber);return}tS||this._hideWidgets()}_onKeyDown(e){var t;if(!this._editor.hasModel())return;let r=this._keybindingService.softDispatch(e,this._editor.getDomNode()),n=r.kind===1||r.kind===2&&r.commandId==="editor.action.showHover"&&((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,r;tS||this._isMouseDown&&this._hoverClicked&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible)||qs.dropDownVisible||(this._hoverActivatedByColorDecoratorClick=!1,this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(r=this._contentWidget)===null||r===void 0||r.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(s1,this._editor)),this._contentWidget}showContentHover(e,t,r,n,o=!1){this._hoverActivatedByColorDecoratorClick=o,this._getOrCreateContentWidget().startShowingAtRange(e,t,r,n)}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;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};yn.ID="editor.contrib.hover";yn=f8=Hbe([eS(1,Ke),eS(2,tr),eS(3,er),eS(4,Kt)],yn);p8=class extends de{constructor(){super({id:"editor.action.showHover",label:b({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.","If the hover is already visible, it will take focus."]},"Show or Focus Hover"),description:{description:"Show or Focus Hover",args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if when triggered with the keyboard, the hover should take focus immediately.",type:"boolean",default:!1}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:gi(2089,2087),weight:100}})}run(e,t,r){if(!t.hasModel())return;let n=yn.get(t);if(!n)return;let o=t.getPosition(),s=new B(o.lineNumber,o.column,o.lineNumber,o.column),a=t.getOption(2)===2||!!(r!=null&&r.focus);n.isHoverVisible?n.focus():n.showContentHover(s,1,1,a)}},m8=class extends de{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:b({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})}run(e,t){let r=yn.get(t);if(!r)return;let n=t.getPosition();if(!n)return;let o=new B(n.lineNumber,n.column,n.lineNumber,n.column),s=Ud.get(t);if(!s)return;s.startFindDefinitionFromCursor(n).then(()=>{r.showContentHover(o,1,1,!0)})}},g8=class extends de{constructor(){super({id:"editor.action.scrollUpHover",label:b({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:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:16,weight:100}})}run(e,t){let r=yn.get(t);r&&r.scrollUp()}},b8=class extends de{constructor(){super({id:"editor.action.scrollDownHover",label:b({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:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:18,weight:100}})}run(e,t){let r=yn.get(t);r&&r.scrollDown()}},v8=class extends de{constructor(){super({id:"editor.action.scrollLeftHover",label:b({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:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:15,weight:100}})}run(e,t){let r=yn.get(t);r&&r.scrollLeft()}},_8=class extends de{constructor(){super({id:"editor.action.scrollRightHover",label:b({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:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:17,weight:100}})}run(e,t){let r=yn.get(t);r&&r.scrollRight()}},y8=class extends de{constructor(){super({id:"editor.action.pageUpHover",label:b({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:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:11,secondary:[528],weight:100}})}run(e,t){let r=yn.get(t);r&&r.pageUp()}},w8=class extends de{constructor(){super({id:"editor.action.pageDownHover",label:b({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:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:12,secondary:[530],weight:100}})}run(e,t){let r=yn.get(t);r&&r.pageDown()}},x8=class extends de{constructor(){super({id:"editor.action.goToTopHover",label:b({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:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:14,secondary:[2064],weight:100}})}run(e,t){let r=yn.get(t);r&&r.goToTop()}},C8=class extends de{constructor(){super({id:"editor.action.goToBottomHover",label:b({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:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:13,secondary:[2066],weight:100}})}run(e,t){let r=yn.get(t);r&&r.goToBottom()}};Ue(yn.ID,yn,2);ee(p8);ee(m8);ee(g8);ee(b8);ee(v8);ee(_8);ee(y8);ee(w8);ee(x8);ee(C8);Uo.register(Wp);Uo.register(JC);bf((i,e)=>{let t=i.getColor(AO);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)}; }`))})});function wn(i,e){let t=0;for(let r=0;r{});function eY(i,e,t,r,n){if(i.getLineCount()===1&&i.getLineMaxColumn(1)===1)return[];let o=e.getLanguageConfiguration(i.getLanguageId()).indentationRules;if(!o)return[];for(r=Math.min(r,i.getLineCount());t<=r&&o.unIndentedLinePattern;){let w=i.getLineContent(t);if(!o.unIndentedLinePattern.test(w))break;t++}if(t>r-1)return[];let{tabSize:s,indentSize:a,insertSpaces:l}=i.getOptions(),c=(w,_)=>(_=_||1,jc.shiftIndent(w,w.length+_,s,a,l)),d=(w,_)=>(_=_||1,jc.unshiftIndent(w,w.length+_,s,a,l)),u=[],h,f=i.getLineContent(t),m=f;if(n!=null){h=n;let w=qi(f);m=h+f.substring(w.length),o.decreaseIndentPattern&&o.decreaseIndentPattern.test(m)&&(h=d(h),m=h+f.substring(w.length)),f!==m&&u.push(ii.replaceMove(new Qe(t,1,t,w.length+1),q3(h,a,l)))}else h=qi(f);let g=h;o.increaseIndentPattern&&o.increaseIndentPattern.test(m)?(g=c(g),h=c(h)):o.indentNextLinePattern&&o.indentNextLinePattern.test(m)&&(g=c(g)),t++;for(let w=t;w<=r;w++){let _=i.getLineContent(w),E=qi(_),I=g+_.substring(E.length);o.decreaseIndentPattern&&o.decreaseIndentPattern.test(I)&&(g=d(g),h=d(h)),E!==g&&u.push(ii.replaceMove(new Qe(w,1,w,E.length+1),q3(g,a,l))),!(o.unIndentedLinePattern&&o.unIndentedLinePattern.test(_))&&(o.increaseIndentPattern&&o.increaseIndentPattern.test(I)?(h=c(h),g=h):o.indentNextLinePattern&&o.indentNextLinePattern.test(I)?g=c(g):g=h)}return u}function tY(i,e,t,r){if(i.getLineCount()===1&&i.getLineMaxColumn(1)===1)return;let n="";for(let s=0;s{ke();Ni();lt();Z3();_a();et();Ar();ti();Hr();Xo();S8();He();wl();cre();BP();Ube=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},jbe=function(i,e){return function(t,r){e(t,r,i)}};rS=class i extends de{constructor(){super({id:i.ID,label:b("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:O.writable})}run(e,t){let r=t.getModel();if(!r)return;let n=r.getOptions(),o=t.getSelection();if(!o)return;let s=new I8(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),r.updateOptions({insertSpaces:!0})}};rS.ID="editor.action.indentationToSpaces";nS=class i extends de{constructor(){super({id:i.ID,label:b("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:O.writable})}run(e,t){let r=t.getModel();if(!r)return;let n=r.getOptions(),o=t.getSelection();if(!o)return;let s=new A8(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),r.updateOptions({insertSpaces:!1})}};nS.ID="editor.action.indentationToTabs";c1=class extends de{constructor(e,t,r){super(r),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){let r=e.get(nn),n=e.get(Di),o=t.getModel();if(!o)return;let s=n.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget),a=o.getOptions(),l=[1,2,3,4,5,6,7,8].map(d=>({id:d.toString(),label:d.toString(),description:d===s.tabSize&&d===a.tabSize?b("configuredTabSize","Configured Tab Size"):d===s.tabSize?b("defaultTabSize","Default Tab Size"):d===a.tabSize?b("currentTabSize","Current Tab Size"):void 0})),c=Math.min(o.getOptions().tabSize-1,7);setTimeout(()=>{r.pick(l,{placeHolder:b({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:l[c]}).then(d=>{if(d&&o&&!o.isDisposed()){let u=parseInt(d.label,10);this.displaySizeOnly?o.updateOptions({tabSize:u}):o.updateOptions({tabSize:u,indentSize:u,insertSpaces:this.insertSpaces})}})},50)}},oS=class i extends c1{constructor(){super(!1,!1,{id:i.ID,label:b("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}};oS.ID="editor.action.indentUsingTabs";sS=class i extends c1{constructor(){super(!0,!1,{id:i.ID,label:b("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}};sS.ID="editor.action.indentUsingSpaces";aS=class i extends c1{constructor(){super(!0,!0,{id:i.ID,label:b("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0})}};aS.ID="editor.action.changeTabDisplaySize";lS=class i extends de{constructor(){super({id:i.ID,label:b("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){let r=e.get(Di),n=t.getModel();if(!n)return;let o=r.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(o.insertSpaces,o.tabSize)}};lS.ID="editor.action.detectIndentation";k8=class extends de{constructor(){super({id:"editor.action.reindentlines",label:b("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:O.writable})}run(e,t){let r=e.get(Ot),n=t.getModel();if(!n)return;let o=eY(n,r,1,n.getLineCount());o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}},E8=class extends de{constructor(){super({id:"editor.action.reindentselectedlines",label:b("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:O.writable})}run(e,t){let r=e.get(Ot),n=t.getModel();if(!n)return;let o=t.getSelections();if(o===null)return;let s=[];for(let a of o){let l=a.startLineNumber,c=a.endLineNumber;if(l!==c&&a.endColumn===1&&c--,l===1){if(l===c)continue}else l--;let d=eY(n,r,l,c);s.push(...d)}s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}},T8=class{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(let r of e)r.range&&typeof r.text=="string"&&this._edits.push(r)}getEditOperations(e,t){for(let n of this._edits)t.addEditOperation(B.lift(n.range),n.text);let r=!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?(r=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(r=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),r||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}},d1=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new ae,this.callOnModel=new ae,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(11)<4||this.editor.getOption(54))&&this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)}))}trigger(e){let t=this.editor.getSelections();if(t===null||t.length>1)return;let r=this.editor.getModel();if(!r||!r.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;let n=this.editor.getOption(11),{tabSize:o,indentSize:s,insertSpaces:a}=r.getOptions(),l=[],c={shiftIndent:f=>jc.shiftIndent(f,f.length+1,o,s,a),unshiftIndent:f=>jc.unshiftIndent(f,f.length+1,o,s,a)},d=e.startLineNumber;for(;d<=e.endLineNumber;){if(this.shouldIgnoreLine(r,d)){d++;continue}break}if(d>e.endLineNumber)return;let u=r.getLineContent(d);if(!/\S/.test(u.substring(0,e.startColumn-1))){let f=mu(n,r,r.getLanguageId(),d,c,this._languageConfigurationService);if(f!==null){let m=qi(u),g=wn(f,o),w=wn(m,o);if(g!==w){let _=wh(g,o,a);l.push({range:new B(d,1,d,m.length+1),text:_}),u=_+u.substr(m.length)}else{let _=n_(r,d,this._languageConfigurationService);if(_===0||_===8)return}}}let h=d;for(;dr.tokenization.getLineTokens(g),getLanguageId:()=>r.getLanguageId(),getLanguageIdAtPosition:(g,w)=>r.getLanguageIdAtPosition(g,w)},getLineContent:g=>g===h?u:r.getLineContent(g)},r.getLanguageId(),d+1,c,this._languageConfigurationService);if(m!==null){let g=wn(m,o),w=wn(qi(r.getLineContent(d+1)),o);if(g!==w){let _=g-w;for(let E=d+1;E<=e.endLineNumber;E++){let I=r.getLineContent(E),N=qi(I),z=wn(N,o)+_,Y=wh(z,o,a);Y!==N&&l.push({range:new B(E,1,E,N.length+1),text:Y})}}}}if(l.length>0){this.editor.pushUndoStop();let f=new T8(l,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",f),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);let r=e.getLineFirstNonWhitespaceColumn(t);if(r===0)return!0;let n=e.tokenization.getLineTokens(t);if(n.getCount()>0){let o=n.findTokenIndexAtOffset(r);if(o>=0&&n.getStandardTokenType(o)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};d1.ID="editor.contrib.autoIndentOnPaste";d1=Ube([jbe(1,Ot)],d1);I8=class{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),tY(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}},A8=class{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),tY(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}};Ue(d1.ID,d1,2);ee(rS);ee(nS);ee(oS);ee(sS);ee(aS);ee(lS);ee(k8);ee(E8)});function iY(i){return yt.from({scheme:Eo.command,path:i.id,query:i.arguments&&encodeURIComponent(JSON.stringify(i.arguments))}).toString()}var cS,u1,D8,h1,M8=M(()=>{qt();ke();di();et();Dm();Ir();cS=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},u1=class{constructor(e,t){this.range=e,this.direction=t}},D8=class i{constructor(e,t,r){this.hint=e,this.anchor=t,this.provider=r,this._isResolved=!1}with(e){let t=new i(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}resolve(e){return cS(this,void 0,void 0,function*(){if(typeof this.provider.resolveInlayHint=="function"){if(this._currentResolve)return yield this._currentResolve,e.isCancellationRequested?void 0:this.resolve(e);this._isResolved||(this._currentResolve=this._doResolve(e).finally(()=>this._currentResolve=void 0)),yield this._currentResolve}})}_doResolve(e){var t,r;return cS(this,void 0,void 0,function*(){try{let n=yield Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=(t=n==null?void 0:n.tooltip)!==null&&t!==void 0?t:this.hint.tooltip,this.hint.label=(r=n==null?void 0:n.label)!==null&&r!==void 0?r:this.hint.label,this._isResolved=!0}catch(n){Xt(n),this._isResolved=!1}})}},h1=class i{static create(e,t,r,n){return cS(this,void 0,void 0,function*(){let o=[],s=e.ordered(t).reverse().map(a=>r.map(l=>cS(this,void 0,void 0,function*(){try{let c=yield a.provideInlayHints(t,l,n);c!=null&&c.hints.length&&o.push([c,a])}catch(c){Xt(c)}})));if(yield Promise.all(s.flat()),n.isCancellationRequested||t.isDisposed())throw new Pv;return new i(r,o,t)})}constructor(e,t,r){this._disposables=new ae,this.ranges=e,this.provider=new Set;let n=[];for(let[o,s]of t){this._disposables.add(o),this.provider.add(s);for(let a of o.hints){let l=r.validatePosition(a.position),c="before",d=i._getRangeAtPosition(r,l),u;d.getStartPosition().isBefore(l)?(u=B.fromPositions(d.getStartPosition(),l),c="after"):(u=B.fromPositions(l,d.getEndPosition()),c="before"),n.push(new D8(a,new u1(u,c),s))}}this.items=n.sort((o,s)=>Ie.compare(o.hint.position,s.hint.position))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){let r=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new B(r,n.startColumn,r,n.endColumn);e.tokenization.tokenizeIfCheap(r);let o=e.tokenization.getLineTokens(r),s=t.column-1,a=o.findTokenIndexAtOffset(s),l=o.getStartOffset(a),c=o.getEndOffset(a);return c-l===1&&(l===s&&a>1?(l=o.getStartOffset(a-1),c=o.getEndOffset(a-1)):c===s&&axP(m)?m.command.id:Td()));for(let m of ms.all())h.has(m.desc.id)&&u.push(new Qo(m.desc.id,na.label(m.desc,{renderShortTitle:!0}),void 0,!0,()=>f1(this,void 0,void 0,function*(){let g=yield o.createModelReference(d.uri);try{let w=new gh(g.object.textEditorModel,B.getStartPosition(d.range)),_=r.item.anchor.range;yield l.invokeFunction(m.runEditorCommand.bind(m),e,w,_)}finally{g.dispose()}})));if(r.part.command){let{command:m}=r.part;u.push(new Cs),u.push(new Qo(m.id,m.title,void 0,!0,()=>f1(this,void 0,void 0,function*(){var g;try{yield a.executeCommand(m.id,...(g=m.arguments)!==null&&g!==void 0?g:[])}catch(w){c.notify({severity:wf.Error,source:r.item.provider.displayName,message:w})}})))}let f=e.getOption(125);s.showContextMenu({domForShadowRoot:f&&(n=e.getDomNode())!==null&&n!==void 0?n:void 0,getAnchor:()=>{let m=Zi(t);return{x:m.left,y:m.top+m.height+8}},getActions:()=>u,onHide:()=>{e.focus()},autoSelectFirstItem:!0})})}function dS(i,e,t,r){return f1(this,void 0,void 0,function*(){let o=yield i.get(Cr).createModelReference(r.uri);yield t.invokeWithinContext(s=>f1(this,void 0,void 0,function*(){let a=e.hasSideBySideModifier,l=s.get(it),c=Pr.inPeekEditor.getValue(l),d=!a&&t.getOption(86)&&!c;return new uc({openToSide:a,openInPeek:d,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(s,new gh(o.object.textEditorModel,B.getStartPosition(r.range)),B.lift(r.range))})),o.dispose()})}var f1,N8=M(()=>{Ht();Fc();ki();H0();et();ra();e1();hh();Ji();Vi();wt();yl();Ut();Mo();f1=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})}});function Vbe(i){let e="\xA0";return i.replace(/[ \t]/g,e)}var Wbe,Vp,qp,uS,R8,nY,Kp,P8,pc,F8=M(()=>{Ht();mi();jt();ki();qt();ke();df();zr();Ir();JF();z_();eg();_a();et();fn();qc();Ur();Ds();Pt();ra();i1();M8();N8();Vi();hl();Ut();Mo();tn();rn();Wbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vp=function(i,e){return function(t,r){e(t,r,i)}},qp=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},R8=class i{constructor(){this._entries=new sa(50)}get(e){let t=i._key(e);return this._entries.get(t)}set(e,t){let r=i._key(e);this._entries.set(r,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}},nY=Qr("IInlayHintsCache");en(nY,R8,1);Kp=class{constructor(e,t){this.item=e,this.index=t}get part(){let e=this.item.hint.label;return typeof e=="string"?{label:e}:e[this.index]}},P8=class{constructor(e,t){this.part=e,this.hasTriggerModifier=t}},pc=uS=class{static get(e){var t;return(t=e.getContribution(uS.ID))!==null&&t!==void 0?t:void 0}constructor(e,t,r,n,o,s,a){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=o,this._notificationService=s,this._instaService=a,this._disposables=new ae,this._sessionDisposables=new ae,this._decorationsMetadata=new Map,this._ruleFactory=new ty(this._editor),this._activeRenderMode=0,this._debounceInfo=r.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(138)&&this._update()})),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();let e=this._editor.getOption(138);if(e.enabled==="off")return;let t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;let r=this._inlayHintsCache.get(t);r&&this._updateHintsDecorators([t.getFullModelRange()],r),this._sessionDisposables.add(ri(()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)}));let n,o=new Set,s=new ui(()=>qp(this,void 0,void 0,function*(){let a=Date.now();n==null||n.dispose(!0),n=new zi;let l=t.onWillDispose(()=>n==null?void 0:n.cancel());try{let c=n.token,d=yield h1.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),c);if(s.delay=this._debounceInfo.update(t,Date.now()-a),c.isCancellationRequested){d.dispose();return}for(let u of d.provider)typeof u.onDidChangeInlayHints=="function"&&!o.has(u)&&(o.add(u),this._sessionDisposables.add(u.onDidChangeInlayHints(()=>{s.isScheduled()||s.schedule()})));this._sessionDisposables.add(d),this._updateHintsDecorators(d.ranges,d.items),this._cacheHintsForFastRestore(t)}catch(c){ft(c)}finally{n.dispose(),l.dispose()}}),this._debounceInfo.get(t));if(this._sessionDisposables.add(s),this._sessionDisposables.add(ri(()=>n==null?void 0:n.dispose(!0))),s.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange(a=>{(a.scrollTopChanged||!s.isScheduled())&&s.schedule()})),this._sessionDisposables.add(this._editor.onDidChangeModelContent(a=>{let l=Math.max(s.delay,1250);s.schedule(l)})),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(uP.getInstance().event(c=>{if(!this._editor.hasModel())return;let d=c.altKey&&c.ctrlKey&&!(c.shiftKey||c.metaKey)?l:a;if(d!==this._activeRenderMode){this._activeRenderMode=d;let u=this._editor.getModel(),h=this._copyInlayHintsWithCurrentAnchor(u);this._updateHintsDecorators([u.getFullModelRange()],h),s.schedule(0)}}))}this._sessionDisposables.add(this._installDblClickGesture(()=>s.schedule(0))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){let e=new ae,t=e.add(new Qa(this._editor)),r=new ae;return e.add(r),e.add(t.onMouseMoveOrRelevantKeyDown(n=>{let[o]=n,s=this._getInlayHintLabelPart(o),a=this._editor.getModel();if(!s||!a){r.clear();return}let l=new zi;r.add(ri(()=>l.dispose(!0))),s.item.resolve(l.token),this._activeInlayHintPart=s.part.command||s.part.location?new P8(s,o.hasTriggerModifier):void 0;let c=a.validatePosition(s.item.hint.position).lineNumber,d=new B(c,1,c,a.getLineMaxColumn(c)),u=this._getInlineHintsForRange(d);this._updateHintsDecorators([d],u),r.add(ri(()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([d],u)}))})),e.add(t.onCancel(()=>r.clear())),e.add(t.onExecute(n=>qp(this,void 0,void 0,function*(){let o=this._getInlayHintLabelPart(n);if(o){let s=o.part;s.location?this._instaService.invokeFunction(dS,n,this._editor,s.location):qO.is(s.command)&&(yield this._invokeCommand(s.command,o.item))}}))),e}_getInlineHintsForRange(e){let t=new Set;for(let r of this._decorationsMetadata.values())e.containsRange(r.item.anchor.range)&&t.add(r.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp(t=>qp(this,void 0,void 0,function*(){if(t.event.detail!==2)return;let r=this._getInlayHintLabelPart(t);if(r&&(t.event.preventDefault(),yield r.item.resolve(st.None),Ki(r.item.hint.textEdits))){let n=r.item.hint.textEdits.map(o=>ii.replace(B.lift(o.range),o.text));this._editor.executeEdits("inlayHint.default",n),e()}}))}_installContextMenu(){return this._editor.onContextMenu(e=>qp(this,void 0,void 0,function*(){if(!(e.event.target instanceof HTMLElement))return;let t=this._getInlayHintLabelPart(e);t&&(yield this._instaService.invokeFunction(rY,this._editor,e.event.target,t))}))}_getInlayHintLabelPart(e){var t;if(e.target.type!==6)return;let r=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;if(r instanceof yf&&(r==null?void 0:r.attachedData)instanceof Kp)return r.attachedData}_invokeCommand(e,t){var r;return qp(this,void 0,void 0,function*(){try{yield this._commandService.executeCommand(e.id,...(r=e.arguments)!==null&&r!==void 0?r:[])}catch(n){this._notificationService.notify({severity:wf.Error,source:t.provider.displayName,message:n})}})}_cacheHintsForFastRestore(e){let t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){let t=new Map;for(let[r,n]of this._decorationsMetadata){if(t.has(n.item))continue;let o=e.getDecorationRange(r);if(o){let s=new u1(o,n.item.anchor.direction),a=n.item.with({anchor:s});t.set(n.item,a)}}return Array.from(t.values())}_getHintsRanges(){let t=this._editor.getModel(),r=this._editor.getVisibleRangesPlusViewportAboveBelow(),n=[];for(let o of r.sort(B.compareRangesUsingStarts)){let s=t.validateRange(new B(o.startLineNumber-30,o.startColumn,o.endLineNumber+30,o.endColumn));n.length===0||!B.areIntersectingOrTouching(n[n.length-1],s)?n.push(s):n[n.length-1]=B.plusRange(n[n.length-1],s)}return n}_updateHintsDecorators(e,t){var r,n;let o=[],s=(g,w,_,E,I)=>{let N={content:_,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:w.className,cursorStops:E,attachedData:I};o.push({item:g,classNameRef:w,decoration:{range:g.anchor.range,options:{description:"InlayHint",showIfCollapsed:g.anchor.range.isEmpty(),collapseOnReplaceEdit:!g.anchor.range.isEmpty(),stickiness:0,[g.anchor.direction]:this._activeRenderMode===0?N:void 0}}})},a=(g,w)=>{let _=this._ruleFactory.createClassNameRef({width:`${l/3|0}px`,display:"inline-block"});s(g,_,"\u200A",w?bu.Right:bu.None)},{fontSize:l,fontFamily:c,padding:d,isUniform:u}=this._getLayoutInfo(),h="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(h,c);for(let g of t){g.hint.paddingLeft&&a(g,!1);let w=typeof g.hint.label=="string"?[{label:g.hint.label}]:g.hint.label;for(let _=0;_uS._MAX_DECORATORS)break}let f=[];for(let g of e)for(let{id:w}of(n=this._editor.getDecorationsInRange(g))!==null&&n!==void 0?n:[]){let _=this._decorationsMetadata.get(w);_&&(f.push(w),_.classNameRef.dispose(),this._decorationsMetadata.delete(w))}let m=va.capture(this._editor);this._editor.changeDecorations(g=>{let w=g.deltaDecorations(f,o.map(_=>_.decoration));for(let _=0;_r)&&(o=r);let s=e.fontFamily||n;return{fontSize:o,fontFamily:s,padding:t,isUniform:!t&&s===n&&o===r}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(let e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};pc.ID="editor.contrib.InlayHints";pc._MAX_DECORATORS=1500;pc=uS=Wbe([Vp(1,Se),Vp(2,lr),Vp(3,nY),Vp(4,_i),Vp(5,Ri),Vp(6,Ke)],pc);Dt.registerCommand("_executeInlayHintProvider",(i,...e)=>qp(void 0,void 0,void 0,function*(){let[t,r]=e;Bt(yt.isUri(t)),Bt(B.isIRange(r));let{inlayHintsProvider:n}=i.get(Se),o=yield i.get(Cr).createModelReference(t);try{let s=yield h1.create(n,o.object.textEditorModel,[B.lift(r)],st.None),a=s.items.map(l=>l.hint);return setTimeout(()=>s.dispose(),0),a}finally{o.dispose()}}))});var qbe,p1,oY,Kbe,hS,fS,sY=M(()=>{jt();Es();di();Ur();rc();es();ra();c8();ZC();F8();Sr();is();Pt();He();Tn();M8();mi();qbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},p1=function(i,e){return function(t,r){e(t,r,i)}},oY=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Kbe=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=i[o]&&function(s){return new Promise(function(a,l){s=i[o](s),n(a,l,s.done,s.value)})}}function n(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}},hS=class extends Ad{constructor(e,t,r,n){super(10,t,e.item.anchor.range,r,n,!0),this.part=e}},fS=class extends Wp{constructor(e,t,r,n,o,s){super(e,t,r,n,s),this._resolverService=o,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!pc.get(this._editor)||e.target.type!==6)return null;let n=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;return n instanceof yf&&n.attachedData instanceof Kp?new hS(n.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,r){return e instanceof hS?new Mn(n=>oY(this,void 0,void 0,function*(){var o,s,a,l;let{part:c}=e;if(yield c.item.resolve(r),r.isCancellationRequested)return;let d;typeof c.item.hint.tooltip=="string"?d=new $i().appendText(c.item.hint.tooltip):c.item.hint.tooltip&&(d=c.item.hint.tooltip),d&&n.emitOne(new ro(this,e.range,[d],!1,0)),Ki(c.item.hint.textEdits)&&n.emitOne(new ro(this,e.range,[new $i().appendText(b("hint.dbl","Double-click to insert"))],!1,10001));let u;if(typeof c.part.tooltip=="string"?u=new $i().appendText(c.part.tooltip):c.part.tooltip&&(u=c.part.tooltip),u&&n.emitOne(new ro(this,e.range,[u],!1,1)),c.part.location||c.part.command){let w,E=this._editor.getOption(76)==="altKey"?En?b("links.navigate.kb.meta.mac","cmd + click"):b("links.navigate.kb.meta","ctrl + click"):En?b("links.navigate.kb.alt.mac","option + click"):b("links.navigate.kb.alt","alt + click");c.part.location&&c.part.command?w=new $i().appendText(b("hint.defAndCommand","Go to Definition ({0}), right click for more",E)):c.part.location?w=new $i().appendText(b("hint.def","Go to Definition ({0})",E)):c.part.command&&(w=new $i(`[${b("hint.cmd","Execute Command")}](${iY(c.part.command)} "${c.part.command.title}") (${E})`,{isTrusted:!0})),w&&n.emitOne(new ro(this,e.range,[w],!1,1e4))}let h=yield this._resolveInlayHintLabelPartHover(c,r);try{for(var f=!0,m=Kbe(h),g;g=yield m.next(),o=g.done,!o;f=!0){l=g.value,f=!1;let w=l;n.emitOne(w)}}catch(w){s={error:w}}finally{try{!f&&!o&&(a=m.return)&&(yield a.call(m))}finally{if(s)throw s.error}}})):Mn.EMPTY}_resolveInlayHintLabelPartHover(e,t){return oY(this,void 0,void 0,function*(){if(!e.part.location)return Mn.EMPTY;let{uri:r,range:n}=e.part.location,o=yield this._resolverService.createModelReference(r);try{let s=o.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(s)?l1(this._languageFeaturesService.hoverProvider,s,new Ie(n.startLineNumber,n.startColumn),t).filter(a=>!Wc(a.hover.contents)).map(a=>new ro(this,e.item.anchor.range,a.hover.contents,!1,2+a.ordinal)):Mn.EMPTY}finally{o.dispose()}})}};fS=qbe([p1(1,er),p1(2,tr),p1(3,Mt),p1(4,Cr),p1(5,Se)],fS)});var z8=M(()=>{lt();rc();F8();sY();Ue(pc.ID,pc,1);Uo.register(fS)});var pS,aY=M(()=>{Ar();pS=class{constructor(e,t,r){this._editRange=e,this._originalSelection=t,this._text=r}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new Qe(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new Qe(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)}}});var lY=M(()=>{});var cY=M(()=>{lY()});var U8=Qi(m1=>{jt();qt();yu();lt();et();Ar();ti();Ur();q_();He();aY();cY();var $be=m1&&m1.__decorate||function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Gbe=m1&&m1.__param||function(i,e){return function(t,r){e(t,r,i)}},mS,jd=mS=class{static get(e){return e.getContribution(mS.ID)}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){var r;(r=this.currentRequest)===null||r===void 0||r.cancel();let n=this.editor.getSelection(),o=this.editor.getModel();if(!o||!n)return;let s=n;if(s.startLineNumber!==s.endLineNumber)return;let a=new T_(this.editor,5),l=o.uri;return this.editorWorkerService.canNavigateValueSet(l)?(this.currentRequest=Jt(c=>this.editorWorkerService.navigateValueSet(l,s,t)),this.currentRequest.then(c=>{var d;if(!c||!c.range||!c.value||!a.validate(this.editor))return;let u=B.lift(c.range),h=c.range,f=c.value.length-(s.endColumn-s.startColumn);h={startLineNumber:h.startLineNumber,startColumn:h.startColumn,endLineNumber:h.endLineNumber,endColumn:h.startColumn+c.value.length},f>1&&(s=new Qe(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn+f-1));let m=new pS(u,s,c.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,m),this.editor.pushUndoStop(),this.decorations.set([{range:h,options:mS.DECORATION}]),(d=this.decorationRemover)===null||d===void 0||d.cancel(),this.decorationRemover=hf(350),this.decorationRemover.then(()=>this.decorations.clear()).catch(ft)}).catch(ft)):Promise.resolve(void 0)}};jd.ID="editor.contrib.inPlaceReplaceController";jd.DECORATION=mt.register({description:"in-place-replace",className:"valueSetReplacement"});jd=mS=$be([Gbe(1,kl)],jd);var B8=class extends de{constructor(){super({id:"editor.action.inPlaceReplace.up",label:b("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:O.writable,kbOpts:{kbExpr:O.editorTextFocus,primary:3159,weight:100}})}run(e,t){let r=jd.get(t);return r?r.run(this.id,!1):Promise.resolve(void 0)}},H8=class extends de{constructor(){super({id:"editor.action.inPlaceReplace.down",label:b("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:O.writable,kbOpts:{kbExpr:O.editorTextFocus,primary:3161,weight:100}})}run(e,t){let r=jd.get(t);return r?r.run(this.id,!0):Promise.resolve(void 0)}};Ue(jd.ID,jd,4);ee(B8);ee(H8)});var j8,W8=M(()=>{lt();IP();ti();He();j8=class extends de{constructor(){super({id:"expandLineSelection",label:b("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:O.textInputFocus,primary:2090}})}run(e,t,r){if(r=r||{},!t.hasModel())return;let n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(r.source,3,Fm.expandLineSelection(n,n.getCursorStates())),n.revealPrimaryCursor(r.source,!0)}};ee(j8)});function Ybe(i,e){e.sort((s,a)=>s.lineNumber===a.lineNumber?s.column-a.column:s.lineNumber-a.lineNumber);for(let s=e.length-2;s>=0;s--)e[s].lineNumber===e[s+1].lineNumber&&e.splice(s,1);let t=[],r=0,n=0,o=e.length;for(let s=1,a=i.getLineCount();s<=a;s++){let l=i.getLineContent(s),c=l.length+1,d=0;if(n{Ni();_a();et();gS=class{constructor(e,t){this._selection=e,this._cursors=t,this._selectionId=null}getEditOperations(e,t){let r=Ybe(e,this._cursors);for(let n=0,o=r.length;n{et();Ar();g1=class{constructor(e,t,r){this._selection=e,this._isCopyingDown=t,this._noop=r||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let r=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,r.startLineNumber1e5?`${o.substr(0,1e5)}\u2026`:o;this._type.textContent=a,this._type.title=a,un(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(a))}else qn(this._type),this._type.title="",Br(this._type),this.domNode.classList.add("no-type");if(qn(this._docs),typeof s=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=s;else if(s){this._docs.classList.add("markdown-docs"),qn(this._docs);let a=this._markdownRenderer.render(s);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 size(){return this._size}layout(e,t){let r=new Qt(e,t);Qt.equals(r,this._size)||(this._size=r,sP(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}};J2=J0e([ebe(1,Ke)],J2);eC=class{constructor(e,t){this.widget=e,this._editor=t,this._disposables=new le,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new Od,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let r,n,o=0,s=0;this._disposables.add(this._resizable.onDidWillResize(()=>{r=this._topLeft,n=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(a=>{if(r&&n){this.widget.layout(a.dimension.width,a.dimension.height);let l=!1;a.west&&(s=n.width-a.dimension.width,l=!0),a.north&&(o=n.height-a.dimension.height,l=!0),l&&this._applyTopLeft({top:r.top+o,left:r.left+s})}a.done&&(r=void 0,n=void 0,o=0,s=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 null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",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 r;let n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,(r=this._userSize)!==null&&r!==void 0?r:this.widget.size,t)}_placeAtAnchor(e,t,r){var n;let o=Oc(document.body),s=this.widget.getLayoutInfo(),a=new Qt(220,2*s.lineHeight),l=e.top,c=function(){let L=o.width-(e.left+e.width+s.borderWidth+s.horizontalPadding),A=-s.borderWidth+e.left+e.width,O=new Qt(L,o.height-e.top-s.borderHeight-s.verticalPadding),U=O.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:l,left:A,fit:L-t.width,maxSizeTop:O,maxSizeBottom:U,minSize:a.with(Math.min(L,a.width))}}(),d=function(){let L=e.left-s.borderWidth-s.horizontalPadding,A=Math.max(s.horizontalPadding,e.left-t.width-s.borderWidth),O=new Qt(L,o.height-e.top-s.borderHeight-s.verticalPadding),U=O.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:l,left:A,fit:L-t.width,maxSizeTop:O,maxSizeBottom:U,minSize:a.with(Math.min(L,a.width))}}(),u=function(){let L=e.left,A=-s.borderWidth+e.top+e.height,O=new Qt(e.width-s.borderHeight,o.height-e.top-e.height-s.verticalPadding);return{top:A,left:L,fit:O.height-t.height,maxSizeBottom:O,maxSizeTop:O,minSize:a.with(O.width)}}(),h=[c,d,u],f=(n=h.find(L=>L.fit>=0))!==null&&n!==void 0?n:h.sort((L,A)=>A.fit-L.fit)[0],m=e.top+e.height-s.borderHeight,g,w=t.height,_=Math.max(f.maxSizeTop.height,f.maxSizeBottom.height);w>_&&(w=_);let E;r?w<=f.maxSizeTop.height?(g=!0,E=f.maxSizeTop):(g=!1,E=f.maxSizeBottom):w<=f.maxSizeBottom.height?(g=!1,E=f.maxSizeBottom):(g=!0,E=f.maxSizeTop),this._applyTopLeft({left:f.left,top:g?f.top:m-w}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!g,f===c,g,f!==c),this._resizable.minSize=f.minSize,this._resizable.maxSize=E,this._resizable.layout(w,Math.min(E.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this.getDomNode().style.left=`${this._topLeft.left}px`,this.getDomNode().style.top=`${this._topLeft.top}px`}}});var Gs,hL=N(()=>{(function(i){i[i.FILE=0]="FILE",i[i.FOLDER=1]="FOLDER",i[i.ROOT_FOLDER=2]="ROOT_FOLDER"})(Gs||(Gs={}))});function Fb(i,e,t,r){let n=r===Gs.ROOT_FOLDER?["rootfolder-icon"]:r===Gs.FOLDER?["folder-icon"]:["file-icon"];if(t){let o;if(t.scheme===Eo.data)o=Bm.parseMetaData(t).get(Bm.META_DATA_LABEL);else{let s=t.path.match(tbe);s?(o=tC(s[2].toLowerCase()),s[1]&&n.push(`${tC(s[1].toLowerCase())}-name-dir-icon`)):o=tC(t.authority.toLowerCase())}if(r===Gs.FOLDER)n.push(`${o}-name-folder-icon`);else{if(o){if(n.push(`${o}-name-file-icon`),n.push("name-file-icon"),o.length<=255){let a=o.split(".");for(let l=1;l{Dm();Lo();Q3();hL();tbe=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/});function mL(i){return`suggest-aria-id:${i}`}function pL(i){return i.replace(/\r\n|\r|\n/g,"")}var rbe,fL,Fd,nbe,obe,iC,Q$=N(()=>{Ht();nz();Zr();An();ei();pl();ke();Ir();fn();X$();Xo();es();He();hL();Sl();rn();uL();rbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},fL=function(i,e){return function(t,r){e(t,r,i)}};nbe=Pi("suggest-more-info",pt.chevronRight,b("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),obe=new(Fd=class{extract(e,t){if(e.textLabel.match(Fd._regexStrict))return t[0]=e.textLabel,!0;if(e.completion.detail&&e.completion.detail.match(Fd._regexStrict))return t[0]=e.completion.detail,!0;if(typeof e.completion.documentation=="string"){let r=Fd._regexRelaxed.exec(e.completion.documentation);if(r&&(r.index===0||r.index+r[0].length===e.completion.documentation.length))return t[0]=r[0],!0}return!1}},Fd._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*\))/,Fd._regexStrict=new RegExp(`^${Fd._regexRelaxed.source}$`,"i"),Fd),iC=class{constructor(e,t,r,n){this._editor=e,this._modelService=t,this._languageService=r,this._themeService=n,this._onDidToggleDetails=new Je,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){let t=new le,r=e;r.classList.add("show-file-icons");let n=Te(e,Ae(".icon")),o=Te(n,Ae("span.colorspan")),s=Te(e,Ae(".contents")),a=Te(s,Ae(".main")),l=Te(a,Ae(".icon-label.codicon")),c=Te(a,Ae("span.left")),d=Te(a,Ae("span.right")),u=new iy(c,{supportHighlights:!0,supportIcons:!0});t.add(u);let h=Te(c,Ae("span.signature-label")),f=Te(c,Ae("span.qualifier-label")),m=Te(d,Ae("span.details-label")),g=Te(d,Ae("span.readMore"+_t.asCSSSelector(nbe)));g.title=b("readMore","Read More");let w=()=>{let _=this._editor.getOptions(),E=_.get(49),L=E.getMassagedFontFamily(),A=E.fontFeatureSettings,O=_.get(117)||E.fontSize,U=_.get(118)||E.lineHeight,Y=E.fontWeight,oe=E.letterSpacing,te=`${O}px`,Z=`${U}px`,ve=`${oe}px`;r.style.fontSize=te,r.style.fontWeight=Y,r.style.letterSpacing=ve,a.style.fontFamily=L,a.style.fontFeatureSettings=A,a.style.lineHeight=Z,n.style.height=Z,n.style.width=Z,g.style.height=Z,g.style.width=Z};return w(),t.add(this._editor.onDidChangeConfiguration(_=>{(_.hasChanged(49)||_.hasChanged(117)||_.hasChanged(118))&&w()})),{root:r,left:c,right:d,icon:n,colorspan:o,iconLabel:u,iconContainer:l,parametersLabel:h,qualifierLabel:f,detailsLabel:m,readMore:g,disposables:t}}renderElement(e,t,r){let{completion:n}=e;r.root.id=mL(t),r.colorspan.style.backgroundColor="";let o={labelEscapeNewLines:!0,matches:gu(e.score)},s=[];if(n.kind===19&&obe.extract(e,s))r.icon.className="icon customcolor",r.iconContainer.className="icon hide",r.colorspan.style.backgroundColor=s[0];else if(n.kind===20&&this._themeService.getFileIconTheme().hasFileIcons){r.icon.className="icon hide",r.iconContainer.className="icon hide";let a=Fb(this._modelService,this._languageService,yt.from({scheme:"fake",path:e.textLabel}),Gs.FILE),l=Fb(this._modelService,this._languageService,yt.from({scheme:"fake",path:n.detail}),Gs.FILE);o.extraClasses=a.length>l.length?a:l}else n.kind===23&&this._themeService.getFileIconTheme().hasFolderIcons?(r.icon.className="icon hide",r.iconContainer.className="icon hide",o.extraClasses=[Fb(this._modelService,this._languageService,yt.from({scheme:"fake",path:e.textLabel}),Gs.FOLDER),Fb(this._modelService,this._languageService,yt.from({scheme:"fake",path:n.detail}),Gs.FOLDER)].flat()):(r.icon.className="icon hide",r.iconContainer.className="",r.iconContainer.classList.add("suggest-icon",..._t.asClassNameArray(Xm.toIcon(n.kind))));n.tags&&n.tags.indexOf(1)>=0&&(o.extraClasses=(o.extraClasses||[]).concat(["deprecated"]),o.matches=[]),r.iconLabel.setLabel(e.textLabel,void 0,o),typeof n.label=="string"?(r.parametersLabel.textContent="",r.detailsLabel.textContent=pL(n.detail||""),r.root.classList.add("string-label")):(r.parametersLabel.textContent=pL(n.label.detail||""),r.detailsLabel.textContent=pL(n.label.description||""),r.root.classList.remove("string-label")),this._editor.getOption(116).showInlineDetails?un(r.detailsLabel):Br(r.detailsLabel),Ob(e)?(r.right.classList.add("can-expand-details"),un(r.readMore),r.readMore.onmousedown=a=>{a.stopPropagation(),a.preventDefault()},r.readMore.onclick=a=>{a.stopPropagation(),a.preventDefault(),this._onDidToggleDetails.fire()}):(r.right.classList.remove("can-expand-details"),Br(r.readMore),r.readMore.onmousedown=null,r.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};iC=rbe([fL(1,Di),fL(2,er),fL(3,br)],iC)});var sbe,rC,abe,Lp,nC,lbe,gL,Dp,bL,Z$=N(()=>{Ht();D0();mF();jt();qt();ei();ke();Fre();Ni();$$();Ap();Y$();Lx();He();wt();Ut();wu();tn();ok();rn();Z2();uh();uL();Q$();O_();Io();sbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},rC=function(i,e){return function(t,r){e(t,r,i)}},abe=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};je("editorSuggestWidget.background",{dark:bl,light:bl,hcDark:bl,hcLight:bl},b("editorSuggestWidgetBackground","Background color of the suggest widget."));je("editorSuggestWidget.border",{dark:vu,light:vu,hcDark:vu,hcLight:vu},b("editorSuggestWidgetBorder","Border color of the suggest widget."));nC=je("editorSuggestWidget.foreground",{dark:ha,light:ha,hcDark:ha,hcLight:ha},b("editorSuggestWidgetForeground","Foreground color of the suggest widget."));je("editorSuggestWidget.selectedForeground",{dark:qm,light:qm,hcDark:qm,hcLight:qm},b("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget."));je("editorSuggestWidget.selectedIconForeground",{dark:Km,light:Km,hcDark:Km,hcLight:Km},b("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));lbe=je("editorSuggestWidget.selectedBackground",{dark:$m,light:$m,hcDark:$m,hcLight:$m},b("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));je("editorSuggestWidget.highlightForeground",{dark:fa,light:fa,hcDark:fa,hcLight:fa},b("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget."));je("editorSuggestWidget.focusHighlightForeground",{dark:Vm,light:Vm,hcDark:Vm,hcLight:Vm},b("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused."));je("editorSuggestWidgetStatus.foreground",{dark:Nn(nC,.5),light:Nn(nC,.5),hcDark:Nn(nC,.5),hcLight:Nn(nC,.5)},b("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));gL=class{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof Wo}`}restore(){var e;let t=(e=this._service.get(this._key,0))!==null&&e!==void 0?e:"";try{let r=JSON.parse(t);if(Qt.is(r))return Qt.lift(r)}catch(r){}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}},Dp=Lp=class{constructor(e,t,r,n,o){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new Wi,this._pendingShowDetails=new Wi,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new aa,this._disposables=new le,this._onDidSelect=new M3,this._onDidFocus=new M3,this._onDidHide=new Je,this._onDidShow=new Je,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new Je,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new Od,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new bL(this,e),this._persistedSize=new gL(t,e);class s{constructor(f,m,g=!1,w=!1){this.persistedSize=f,this.currentSize=m,this.persistHeight=g,this.persistWidth=w}}let a;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),a=new s(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(h=>{var f,m,g,w;if(this._resize(h.dimension.width,h.dimension.height),a&&(a.persistHeight=a.persistHeight||!!h.north||!!h.south,a.persistWidth=a.persistWidth||!!h.east||!!h.west),!!h.done){if(a){let{itemHeight:_,defaultSize:E}=this.getLayoutInfo(),L=Math.round(_/2),{width:A,height:O}=this.element.size;(!a.persistHeight||Math.abs(a.currentSize.height-O)<=L)&&(O=(m=(f=a.persistedSize)===null||f===void 0?void 0:f.height)!==null&&m!==void 0?m:E.height),(!a.persistWidth||Math.abs(a.currentSize.width-A)<=L)&&(A=(w=(g=a.persistedSize)===null||g===void 0?void 0:g.width)!==null&&w!==void 0?w:E.width),this._persistedSize.store(new Qt(A,O))}this._contentWidget.unlockPreference(),a=void 0}})),this._messageElement=Te(this.element.domNode,Ae(".message")),this._listElement=Te(this.element.domNode,Ae(".tree"));let l=o.createInstance(J2,this.editor);l.onDidClose(this.toggleDetails,this,this._disposables),this._details=new eC(l,this.editor);let c=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(116).showIcons);c();let d=o.createInstance(iC,this.editor);this._disposables.add(d),this._disposables.add(d.onDidToggleDetails(()=>this.toggleDetails())),this._list=new R_("SuggestWidget",this._listElement,{getHeight:h=>this.getLayoutInfo().itemHeight,getTemplateId:h=>"suggestion"},[d],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>b("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:h=>{let f=h.textLabel;if(typeof h.completion.label!="string"){let{detail:_,description:E}=h.completion.label;_&&E?f=b("label.full","{0} {1}, {2}",f,_,E):_?f=b("label.detail","{0} {1}",f,_):E&&(f=b("label.desc","{0}, {1}",f,E))}if(!h.isResolved||!this._isDetailsVisible())return f;let{documentation:m,detail:g}=h.completion,w=nf("{0}{1}",g||"",m?typeof m=="string"?m:m.value:"");return b("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",f,w)}}}),this._list.style(wF({listInactiveFocusBackground:lbe,listInactiveFocusOutline:ua})),this._status=o.createInstance(Q2,this.element.domNode,Ya);let u=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(116).showStatusBar);u(),this._disposables.add(n.onDidColorThemeChange(h=>this._onThemeChange(h))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown(h=>this._onListMouseDownOrTap(h))),this._disposables.add(this._list.onTap(h=>this._onListMouseDownOrTap(h))),this._disposables.add(this._list.onDidChangeSelection(h=>this._onListSelection(h))),this._disposables.add(this._list.onDidChangeFocus(h=>this._onListFocus(h))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(h=>{h.hasChanged(116)&&(u(),c())})),this._ctxSuggestWidgetVisible=ct.Visible.bindTo(r),this._ctxSuggestWidgetDetailsVisible=ct.DetailsVisible.bindTo(r),this._ctxSuggestWidgetMultipleSuggestions=ct.MultipleSuggestions.bindTo(r),this._ctxSuggestWidgetHasFocusedSuggestion=ct.HasFocusedSuggestion.bindTo(r),this._disposables.add(To(this._details.widget.domNode,"keydown",h=>{this._onDetailsKeydown.fire(h)})),this._disposables.add(this.editor.onMouseDown(h=>this._onEditorMouseDown(h)))}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=="undefined"||typeof e.index=="undefined"||(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){let r=this._completionModel;r&&(this._onDidSelect.fire({item:e,index:t,model:r}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=_u(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);let r=e.elements[0],n=e.indexes[0];r!==this._focusedItem&&((t=this._currentSuggestionDetails)===null||t===void 0||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=r,this._list.reveal(n),this._currentSuggestionDetails=Jt(o=>abe(this,void 0,void 0,function*(){let s=ml(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250),a=o.onCancellationRequested(()=>s.dispose()),l=yield r.resolve(o);return s.dispose(),a.dispose(),l})),this._currentSuggestionDetails.then(()=>{n>=this._list.length||r!==this._list.element(n)||(this._ignoreFocusEvents=!0,this._list.splice(n,1,[r]),this._list.setFocus([n]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:mL(n)}))}).catch(ft)),this._onDidFocus.fire({item:r,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:Br(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=Lp.LOADING_MESSAGE,Br(this._listElement,this._status.element),un(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,uu(Lp.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=Lp.NO_SUGGESTIONS_MESSAGE,Br(this._listElement,this._status.element),un(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,uu(Lp.NO_SUGGESTIONS_MESSAGE);break;case 3:Br(this._messageElement),un(this._listElement,this._status.element),this._show();break;case 4:Br(this._messageElement),un(this._listElement,this._status.element),this._show();break;case 5:Br(this._messageElement),un(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=ml(()=>this._setState(1),t)))}showSuggestions(e,t,r,n,o){var s,a;if(this._contentWidget.setPosition(this.editor.getPosition()),(s=this._loadingTimeout)===null||s===void 0||s.dispose(),(a=this._currentSuggestionDetails)===null||a===void 0||a.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),r&&this._state!==2&&this._state!==0){this._setState(4);return}let l=this._completionModel.items.length,c=l===0;if(this._ctxSuggestWidgetMultipleSuggestions.set(l>1),c){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(r?4:3),this._list.reveal(t,0),this._list.setFocus(o?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=P3(()=>{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")):(Ob(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=P3(()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")})}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();let t=this._persistedSize.restore(),r=Math.ceil(this.getLayoutInfo().itemHeight*4.3);t&&t.heightc&&(l=c);let d=this._completionModel?this._completionModel.stats.pLabelLen*s.typicalHalfwidthCharacterWidth:l,u=s.statusBarHeight+this._list.contentHeight+s.borderHeight,h=s.itemHeight+s.statusBarHeight,f=Zi(this.editor.getDomNode()),m=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),g=f.top+m.top+m.height,w=Math.min(o.height-g-s.verticalPadding,u),_=f.top+m.top-s.verticalPadding,E=Math.min(_,u),L=Math.min(Math.max(E,w)+s.borderHeight,u);a===((t=this._cappedHeight)===null||t===void 0?void 0:t.capped)&&(a=this._cappedHeight.wanted),aL&&(a=L);let A=150;a>w||this._forceRenderingAbove&&_>A?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),L=E):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),L=w),this.element.preferredSize=new Qt(d,s.defaultSize.height),this.element.maxSize=new Qt(c,L),this.element.minSize=new Qt(220,h),this._cappedHeight=a===u?{wanted:(n=(r=this._cappedHeight)===null||r===void 0?void 0:r.wanted)!==null&&n!==void 0?n:e.height,capped:a}:void 0}this._resize(l,a)}_resize(e,t){let{width:r,height:n}=this.element.maxSize;e=Math.min(r,e),t=Math.min(n,t);let{statusBarHeight:o}=this.getLayoutInfo();this._list.layout(t-o,e),this._listElement.style.height=`${t-o}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(){let e=this.editor.getOption(49),t=fF(this.editor.getOption(118)||e.lineHeight,8,1e3),r=!this.editor.getOption(116).showStatusBar||this._state===2||this._state===1?0:t,n=this._details.widget.borderWidth,o=2*n;return{itemHeight:t,statusBarHeight:r,borderWidth:n,borderHeight:o,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new Qt(430,r+12*t+o)}}_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}};Dp.LOADING_MESSAGE=b("suggestWidget.loading","Loading...");Dp.NO_SUGGESTIONS_MESSAGE=b("suggestWidget.noSuggestions","No suggestions.");Dp=Lp=sbe([rC(1,Yn),rC(2,it),rC(3,br),rC(4,Ke)],Dp);bL=class{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(){let{height:e,width:t}=this._widget.element.size,{borderWidth:r,horizontalPadding:n}=this._widget.getLayoutInfo();return new Qt(t+2*r+n,e+2*r)}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 cbe,Mp,vL,dbe,_L,Vo,yL,zb,_o,vn,oC=N(()=>{Io();mi();jt();ki();qt();ei();sre();ke();Tn();al();zr();z_();lt();_a();di();et();ti();kp();ch();rL();U$();He();Vi();wt();Ut();Yv();uh();j$();W$();V$();q$();Z$();Bc();Lo();CF();cbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Mp=function(i,e){return function(t,r){e(t,r,i)}},dbe=!1,_L=class{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){let n=e.getOffsetAt(t),o=e.getPositionAt(n+1);this._marker=e.deltaDecorations([],[{range:B.fromPositions(t,o),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){let t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}else return this._model.getLineMaxColumn(e.lineNumber)-e.column}},Vo=vL=class{static get(e){return e.getContribution(vL.ID)}constructor(e,t,r,n,o,s,a){this._memoryService=t,this._commandService=r,this._contextKeyService=n,this._instantiationService=o,this._logService=s,this._telemetryService=a,this._lineSuffix=new Wi,this._toDispose=new le,this._selectors=new yL(u=>u.priority),this._onWillInsertSuggestItem=new Je,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=e,this.model=o.createInstance(X2,this.editor),this._selectors.register({priority:0,select:(u,h,f)=>this._memoryService.select(u,h,f)});let l=ct.InsertMode.bindTo(n);l.set(e.getOption(116).insertMode),this._toDispose.add(this.model.onDidTrigger(()=>l.set(e.getOption(116).insertMode))),this.widget=this._toDispose.add(new h_(()=>{let u=this._instantiationService.createInstance(Dp,this.editor);this._toDispose.add(u),this._toDispose.add(u.onDidSelect(w=>this._insertSuggestion(w,0),this));let h=new Y2(this.editor,u,this.model,w=>this._insertSuggestion(w,2));this._toDispose.add(h);let f=ct.MakesTextEdit.bindTo(this._contextKeyService),m=ct.HasInsertAndReplaceRange.bindTo(this._contextKeyService),g=ct.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(ri(()=>{f.reset(),m.reset(),g.reset()})),this._toDispose.add(u.onDidFocus(({item:w})=>{let _=this.editor.getPosition(),E=w.editStart.column,L=_.column,A=!0;this.editor.getOption(1)==="smart"&&this.model.state===2&&!w.completion.additionalTextEdits&&!(w.completion.insertTextRules&4)&&L-E===w.completion.insertText.length&&(A=this.editor.getModel().getValueInRange({startLineNumber:_.lineNumber,startColumn:E,endLineNumber:_.lineNumber,endColumn:L})!==w.completion.insertText),f.set(A),m.set(!Ie.equals(w.editInsertEnd,w.editReplaceEnd)),g.set(!!w.provider.resolveCompletionItem||!!w.completion.documentation||w.completion.detail!==w.completion.label)})),this._toDispose.add(u.onDetailsKeyDown(w=>{if(w.toKeyCodeChord().equals(new R3(!0,!1,!1,!1,33))||En&&w.toKeyCodeChord().equals(new R3(!1,!1,!1,!0,33))){w.stopPropagation();return}w.toKeyCodeChord().isModifierKey()||this.editor.focus()})),u})),this._overtypingCapturer=this._toDispose.add(new h_(()=>this._toDispose.add(new Pb(this.editor,this.model)))),this._alternatives=this._toDispose.add(new h_(()=>this._toDispose.add(new Md(this.editor,this._contextKeyService)))),this._toDispose.add(o.createInstance(Tp,e)),this._toDispose.add(this.model.onDidTrigger(u=>{this.widget.value.showTriggered(u.auto,u.shy?250:50),this._lineSuffix.value=new _L(this.editor.getModel(),u.position)})),this._toDispose.add(this.model.onDidSuggest(u=>{if(u.triggerOptions.shy)return;let h=-1;for(let m of this._selectors.itemsOrderedByPriorityDesc)if(h=m.select(this.editor.getModel(),this.editor.getPosition(),u.completionModel.items),h!==-1)break;h===-1&&(h=0);let f=!1;if(u.triggerOptions.auto){let m=this.editor.getOption(116);m.selectionMode==="never"||m.selectionMode==="always"?f=m.selectionMode==="never":m.selectionMode==="whenTriggerCharacter"?f=u.triggerOptions.triggerKind!==1:m.selectionMode==="whenQuickSuggestion"&&(f=u.triggerOptions.triggerKind===1&&!u.triggerOptions.refilter)}this.widget.value.showSuggestions(u.completionModel,h,u.isFrozen,u.triggerOptions.auto,f)})),this._toDispose.add(this.model.onDidCancel(u=>{u.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{dbe||(this.model.cancel(),this.model.clear())}));let c=ct.AcceptSuggestionsOnEnter.bindTo(n),d=()=>{let u=this.editor.getOption(1);c.set(u==="on"||u==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>d())),d()}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;let r=nr.get(this.editor);if(!r)return;this._onWillInsertSuggestItem.fire({item:e.item});let n=this.editor.getModel(),o=n.getAlternativeVersionId(),{item:s}=e,a=[],l=new zi;t&1||this.editor.pushUndoStop();let c=this.getOverwriteInfo(s,!!(t&8));this._memoryService.memorize(n,this.editor.getPosition(),s);let d=s.isResolved,u=-1,h=-1;if(Array.isArray(s.completion.additionalTextEdits)){this.model.cancel();let m=va.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",s.completion.additionalTextEdits.map(g=>ii.replaceMove(B.lift(g.range),g.text))),m.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!d){let m=new mr,g,w=n.onDidChangeContent(A=>{if(A.isFlush){l.cancel(),w.dispose();return}for(let O of A.changes){let U=B.getEndPosition(O.range);(!g||Ie.isBefore(U,g))&&(g=U)}}),_=t;t|=2;let E=!1,L=this.editor.onWillType(()=>{L.dispose(),E=!0,_&2||this.editor.pushUndoStop()});a.push(s.resolve(l.token).then(()=>{if(!s.completion.additionalTextEdits||l.token.isCancellationRequested)return;if(g&&s.completion.additionalTextEdits.some(O=>Ie.isBefore(g,B.getStartPosition(O.range))))return!1;E&&this.editor.pushUndoStop();let A=va.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",s.completion.additionalTextEdits.map(O=>ii.replaceMove(B.lift(O.range),O.text))),A.restoreRelativeVerticalPositionOfCursor(this.editor),(E||!(_&2))&&this.editor.pushUndoStop(),!0}).then(A=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",m.elapsed(),A),h=A===!0?1:A===!1?0:-2}).finally(()=>{w.dispose(),L.dispose()}))}let{insertText:f}=s.completion;if(s.completion.insertTextRules&4||(f=jo.escape(f)),this.model.cancel(),r.insert(f,{overwriteBefore:c.overwriteBefore,overwriteAfter:c.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(s.completion.insertTextRules&1),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),t&2||this.editor.pushUndoStop(),s.completion.command)if(s.completion.command.id===zb.id)this.model.trigger({auto:!0,retrigger:!0});else{let m=new mr;a.push(this._commandService.executeCommand(s.completion.command.id,...s.completion.command.arguments?[...s.completion.command.arguments]:[]).catch(g=>{s.completion.extensionId?Xt(g):ft(g)}).finally(()=>{u=m.elapsed()}))}t&4&&this._alternatives.value.set(e,m=>{for(l.cancel();n.canUndo();){o!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(m,3|(t&8?8:0));break}}),this._alertCompletionItem(s),Promise.all(a).finally(()=>{this._reportSuggestionAcceptedTelemetry(s,n,d,u,h),this.model.clear(),l.dispose()})}_reportSuggestionAcceptedTelemetry(e,t,r,n,o){var s,a,l;Math.floor(Math.random()*100)!==0&&this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:(a=(s=e.extensionId)===null||s===void 0?void 0:s.value)!==null&&a!==void 0?a:"unknown",providerId:(l=e.provider._debugDisplayName)!==null&&l!==void 0?l:"unknown",kind:e.completion.kind,basenameHash:H_(Dn(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:ZP(t.uri),resolveInfo:e.provider.resolveCompletionItem?r?1:0:-1,resolveDuration:e.resolveDuration,commandDuration:n,additionalEditsAsync:o})}getOverwriteInfo(e,t){Bt(this.editor.hasModel());let r=this.editor.getOption(116).insertMode==="replace";t&&(r=!r);let n=e.position.column-e.editStart.column,o=(r?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,s=this.editor.getPosition().column-e.position.column,a=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:n+s,overwriteAfter:o+a}}_alertCompletionItem(e){if(Ki(e.completion.additionalTextEdits)){let t=b("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);ar(t)}}triggerSuggest(e,t,r){this.editor.hasModel()&&(this.model.trigger({auto:t!=null?t:!1,completionOptions:{providerFilter:e,kindFilter:r?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;let t=this.editor.getPosition(),r=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=o=>{if(o.completion.insertTextRules&4||o.completion.additionalTextEdits)return!0;let s=this.editor.getPosition(),a=o.editStart.column,l=s.column;return l-a!==o.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:s.lineNumber,startColumn:a,endLineNumber:s.lineNumber,endColumn:l})!==o.completion.insertText};ci.once(this.model.onDidTrigger)(o=>{let s=[];ci.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{ji(s),r()},void 0,s),this.model.onDidSuggest(({completionModel:a})=>{if(ji(s),a.items.length===0){r();return}let l=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),a.items),c=a.items[l];if(!n(c)){r();return}this.editor.pushUndoStop(),this._insertSuggestion({index:l,item:c,model:a},7)},void 0,s)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){let r=this.widget.value.getFocusedItem(),n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(r,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)}};Vo.ID="editor.contrib.suggestController";Vo=vL=cbe([Mp(1,Ep),Mp(2,_i),Mp(3,it),Mp(4,Ke),Mp(5,Hc),Mp(6,Ln)],Vo);yL=class{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,r)=>this.prioritySelector(r)-this.prioritySelector(t)),{dispose:()=>{let t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}},zb=class i extends de{constructor(){super({id:i.id,label:b("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:fe.and(F.writable,F.hasCompletionItemProvider,ct.Visible.toNegated()),kbOpts:{kbExpr:F.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,r){let n=Vo.get(t);if(!n)return;let o;r&&typeof r=="object"&&r.auto===!0&&(o=!0),n.triggerSuggest(void 0,o,void 0)}};zb.id="editor.action.triggerSuggest";Ue(Vo.ID,Vo,2);ee(zb);_o=100+90,vn=Fi.bindToContribution(Vo.get);We(new vn({id:"acceptSelectedSuggestion",precondition:fe.and(ct.Visible,ct.HasFocusedSuggestion),handler(i){i.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:fe.and(ct.Visible,F.textInputFocus),weight:_o},{primary:3,kbExpr:fe.and(ct.Visible,F.textInputFocus,ct.AcceptSuggestionsOnEnter,ct.MakesTextEdit),weight:_o}],menuOpts:[{menuId:Ya,title:b("accept.insert","Insert"),group:"left",order:1,when:ct.HasInsertAndReplaceRange.toNegated()},{menuId:Ya,title:b("accept.insert","Insert"),group:"left",order:1,when:fe.and(ct.HasInsertAndReplaceRange,ct.InsertMode.isEqualTo("insert"))},{menuId:Ya,title:b("accept.replace","Replace"),group:"left",order:1,when:fe.and(ct.HasInsertAndReplaceRange,ct.InsertMode.isEqualTo("replace"))}]}));We(new vn({id:"acceptAlternativeSelectedSuggestion",precondition:fe.and(ct.Visible,F.textInputFocus,ct.HasFocusedSuggestion),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:1027,secondary:[1026]},handler(i){i.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:Ya,group:"left",order:2,when:fe.and(ct.HasInsertAndReplaceRange,ct.InsertMode.isEqualTo("insert")),title:b("accept.replace","Replace")},{menuId:Ya,group:"left",order:2,when:fe.and(ct.HasInsertAndReplaceRange,ct.InsertMode.isEqualTo("replace")),title:b("accept.insert","Insert")}]}));Dt.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion");We(new vn({id:"hideSuggestWidget",precondition:ct.Visible,handler:i=>i.cancelSuggestWidget(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:9,secondary:[1033]}}));We(new vn({id:"selectNextSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectNextSuggestion(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}}));We(new vn({id:"selectNextPageSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectNextPageSuggestion(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:12,secondary:[2060]}}));We(new vn({id:"selectLastSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectLastSuggestion()}));We(new vn({id:"selectPrevSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectPrevSuggestion(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}}));We(new vn({id:"selectPrevPageSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectPrevPageSuggestion(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:11,secondary:[2059]}}));We(new vn({id:"selectFirstSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectFirstSuggestion()}));We(new vn({id:"focusSuggestion",precondition:fe.and(ct.Visible,ct.HasFocusedSuggestion.negate()),handler:i=>i.focusSuggestion(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}}));We(new vn({id:"focusAndAcceptSuggestion",precondition:fe.and(ct.Visible,ct.HasFocusedSuggestion.negate()),handler:i=>{i.focusSuggestion(),i.acceptSelectedSuggestion(!0,!1)}}));We(new vn({id:"toggleSuggestionDetails",precondition:fe.and(ct.Visible,ct.HasFocusedSuggestion),handler:i=>i.toggleSuggestionDetails(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:Ya,group:"right",order:1,when:fe.and(ct.DetailsVisible,ct.CanResolve),title:b("detail.more","show less")},{menuId:Ya,group:"right",order:1,when:fe.and(ct.DetailsVisible.toNegated(),ct.CanResolve),title:b("detail.less","show more")}]}));We(new vn({id:"toggleExplainMode",precondition:ct.Visible,handler:i=>i.toggleExplainMode(),kbOpts:{weight:100,primary:2138}}));We(new vn({id:"toggleSuggestionFocus",precondition:ct.Visible,handler:i=>i.toggleSuggestionFocus(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:2570,mac:{primary:778}}}));We(new vn({id:"insertBestCompletion",precondition:fe.and(F.textInputFocus,fe.equals("config.editor.tabCompletion","on"),Tp.AtEnd,ct.Visible.toNegated(),Md.OtherSuggestions.toNegated(),nr.InSnippetMode.toNegated()),handler:(i,e)=>{i.triggerSuggestAndAcceptBest(Hv(e)?Object.assign({fallback:"tab"},e):{fallback:"tab"})},kbOpts:{weight:_o,primary:2}}));We(new vn({id:"insertNextSuggestion",precondition:fe.and(F.textInputFocus,fe.equals("config.editor.tabCompletion","on"),Md.OtherSuggestions,ct.Visible.toNegated(),nr.InSnippetMode.toNegated()),handler:i=>i.acceptNextSuggestion(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:2}}));We(new vn({id:"insertPrevSuggestion",precondition:fe.and(F.textInputFocus,fe.equals("config.editor.tabCompletion","on"),Md.OtherSuggestions,ct.Visible.toNegated(),nr.InSnippetMode.toNegated()),handler:i=>i.acceptPrevSuggestion(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:1026}}));ee(class extends de{constructor(){super({id:"editor.action.resetSuggestSize",label:b("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(i,e){var t;(t=Vo.get(e))===null||t===void 0||t.resetWidgetSize()}})});function ube(i,e){return i===e?!0:!i||!e?!1:i.equals(e)}var sC,Bb,J$=N(()=>{ei();ke();di();et();fn();ch();JA();oC();wa();qA();mi();sC=class extends ce{get selectedItem(){return this._selectedItem}constructor(e,t,r,n){super(),this.editor=e,this.suggestControllerPreselector=t,this.checkModelVersion=r,this.onWillAccept=n,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._selectedItem=ya("suggestWidgetInlineCompletionProvider.selectedItem",void 0),this._register(e.onKeyDown(s=>{s.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(s=>{s.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));let o=Vo.get(this.editor);if(o){this._register(o.registerSelector({priority:100,select:(l,c,d)=>{var u;on(_=>this.checkModelVersion(_));let h=this.editor.getModel();if(!h)return-1;let f=(u=this.suggestControllerPreselector())===null||u===void 0?void 0:u.removeCommonPrefix(h);if(!f)return-1;let m=Ie.lift(c),g=d.map((_,E)=>{let A=Bb.fromSuggestion(o,h,m,_,this.isShiftKeyPressed).toSingleTextEdit().removeCommonPrefix(h),O=f.augments(A);return{index:E,valid:O,prefixLength:A.text.length,suggestItem:_}}).filter(_=>_&&_.valid&&_.prefixLength>0),w=OP(g,RP(_=>_.prefixLength,PP));return w?w.index:-1}}));let s=!1,a=()=>{s||(s=!0,this._register(o.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(o.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.update(!1)})),this._register(o.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(ci.once(o.model.onDidTrigger)(l=>{a()})),this._register(o.onWillInsertSuggestItem(l=>{let c=this.editor.getPosition(),d=this.editor.getModel();if(!c||!d)return;let u=Bb.fromSuggestion(o,d,c,l.item,this.isShiftKeyPressed);this.onWillAccept(u)}))}this.update(this._isActive)}update(e){let t=this.getSuggestItemInfo();(this._isActive!==e||!ube(this._currentSuggestItemInfo,t))&&(this._isActive=e,this._currentSuggestItemInfo=t,on(r=>{this.checkModelVersion(r),this._selectedItem.set(this._isActive?this._currentSuggestItemInfo:void 0,r)}))}getSuggestItemInfo(){let e=Vo.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;let t=e.widget.value.getFocusedItem(),r=this.editor.getPosition(),n=this.editor.getModel();if(!(!t||!r||!n))return Bb.fromSuggestion(e,n,r,t.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){let e=Vo.get(this.editor);e==null||e.stopForceRenderingAbove()}forceRenderingAbove(){let e=Vo.get(this.editor);e==null||e.forceRenderingAbove()}},Bb=class i{static fromSuggestion(e,t,r,n,o){let{insertText:s}=n.completion,a=!1;if(n.completion.insertTextRules&4){let c=new jo().parse(s);c.children.length<100&&Cp.adjustWhitespace(t,r,!0,c),s=c.toString(),a=!0}let l=e.getOverwriteInfo(n,o);return new i(B.fromPositions(r.delta(0,-l.overwriteBefore),r.delta(0,Math.max(l.overwriteAfter,0))),s,n.completion.kind,a)}constructor(e,t,r,n){this.range=e,this.insertText=t,this.completionItemKind=r,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 UO(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new dh(this.range,this.insertText)}}});var hbe,zd,wL,_n,aC=N(()=>{Io();ei();ke();wa();s_();di();Ds();Pt();L2();f$();D2();B2();B$();J$();He();rne();Vi();Sr();wt();Ut();jr();hbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},zd=function(i,e){return function(t,r){e(t,r,i)}},_n=wL=class extends ce{static get(e){return e.getContribution(wL.ID)}constructor(e,t,r,n,o,s,a,l,c){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=r,this.configurationService=n,this.commandService=o,this.debounceService=s,this.languageFeaturesService=a,this.audioCueService=l,this._keybindingService=c,this.model=sg("inlineCompletionModel",void 0),this.textModelVersionId=ya("textModelVersionId",-1),this.cursorPosition=ya("cursorPosition",new Ie(1,1)),this.suggestWidgetAdaptor=this._register(new sC(this.editor,()=>{var h,f;return(f=(h=this.model.get())===null||h===void 0?void 0:h.selectedInlineCompletion.get())===null||f===void 0?void 0:f.toSingleTextEdit(void 0)},h=>this.updateObservables(h,io.Other),h=>{on(f=>{var m;this.updateObservables(f,io.Other),(m=this.model.get())===null||m===void 0||m.handleSuggestAccepted(h)})})),this._enabled=El(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(61).enabled),this.ghostTextWidget=this._register(this.instantiationService.createInstance(R2,this.editor,{ghostText:this.model.map((h,f)=>h==null?void 0:h.ghostText.read(f)),minReservedLineCount:$_(0),targetTextModel:this.model.map(h=>h==null?void 0:h.textModel)})),this._debounceValue=this.debounceService.for(this.languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._register(new _r(this.contextKeyService,this.model)),this._register(ci.runAndSubscribe(e.onDidChangeModel,()=>on(h=>{this.model.set(void 0,h),this.updateObservables(h,io.Other);let f=e.getModel();if(f){let m=t.createInstance($2,f,this.suggestWidgetAdaptor.selectedItem,this.cursorPosition,this.textModelVersionId,this._debounceValue,El(e.onDidChangeConfiguration,()=>e.getOption(116).preview),El(e.onDidChangeConfiguration,()=>e.getOption(116).previewMode),El(e.onDidChangeConfiguration,()=>e.getOption(61).mode),this._enabled);this.model.set(m,h)}})));let d=h=>{var f;return h.isUndoing?io.Undo:h.isRedoing?io.Redo:!((f=this.model.get())===null||f===void 0)&&f.isAcceptingPartially?io.AcceptWord:io.Other};this._register(e.onDidChangeModelContent(h=>on(f=>this.updateObservables(f,d(h))))),this._register(e.onDidChangeCursorPosition(h=>on(f=>{var m;this.updateObservables(f,io.Other),(h.reason===3||h.source==="api")&&((m=this.model.get())===null||m===void 0||m.stop(f))}))),this._register(e.onDidType(()=>on(h=>{var f;this.updateObservables(h,io.Other),this._enabled.get()&&((f=this.model.get())===null||f===void 0||f.trigger(h))}))),this._register(this.commandService.onDidExecuteCommand(h=>{new Set([cf.Tab.id,cf.DeleteLeft.id,cf.DeleteRight.id,T2,"acceptSelectedSuggestion"]).has(h.commandId)&&e.hasTextFocus()&&this._enabled.get()&&on(m=>{var g;(g=this.model.get())===null||g===void 0||g.trigger(m)})})),this._register(this.editor.onDidBlurEditorWidget(()=>{this.contextKeyService.getContextKeyValue("accessibleViewIsShown")||this.configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(61).keepOnBlur||qs.dropDownVisible||on(h=>{var f;(f=this.model.get())===null||f===void 0||f.stop(h)})})),this._register(pn(h=>{var f;let m=(f=this.model.read(h))===null||f===void 0?void 0:f.state.read(h);m!=null&&m.suggestItem?m.ghostText.lineCount>=2&&this.suggestWidgetAdaptor.forceRenderingAbove():this.suggestWidgetAdaptor.stopForceRenderingAbove()})),this._register(ri(()=>{this.suggestWidgetAdaptor.stopForceRenderingAbove()}));let u;this._register(pn(h=>{let f=this.model.read(h),m=f==null?void 0:f.state.read(h);if(!f||!m||!m.inlineCompletion){u=void 0;return}if(m.inlineCompletion.semanticId!==u){u=m.inlineCompletion.semanticId;let g=f.textModel.getLineContent(m.ghostText.lineNumber);this.audioCueService.playAudioCue(sz.inlineSuggestion).then(()=>{this.editor.getOption(7)&&this.provideScreenReaderUpdate(m.ghostText.renderForScreenReader(g))})}})),this._register(new z2(this.editor,this.model,this.instantiationService)),this._register(this.configurationService.onDidChangeConfiguration(h=>{h.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this.configurationService.getValue("accessibility.verbosity.inlineCompletions")})})),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this.configurationService.getValue("accessibility.verbosity.inlineCompletions")})}provideScreenReaderUpdate(e){let t=this.contextKeyService.getContextKeyValue("accessibleViewIsShown"),r=this._keybindingService.lookupKeybinding("editor.action.accessibleView"),n;!t&&r&&this.editor.getOption(146)&&(n=b("showAccessibleViewHint","Inspect this in the accessible view ({0})",r.getAriaLabel())),n?ar(e+", "+n):ar(e)}updateObservables(e,t){var r,n;let o=this.editor.getModel();this.textModelVersionId.set((r=o==null?void 0:o.getVersionId())!==null&&r!==void 0?r:-1,e,t),this.cursorPosition.set((n=this.editor.getPosition())!==null&&n!==void 0?n:new Ie(1,1),e)}shouldShowHoverAt(e){var t;let r=(t=this.model.get())===null||t===void 0?void 0:t.ghostText.get();return r?r.parts.some(n=>e.containsPosition(new Ie(r.lineNumber,n.column))):!1}shouldShowHoverAtViewZone(e){return this.ghostTextWidget.ownsViewZone(e)}};_n.ID="editor.contrib.inlineCompletionsController";_n=wL=hbe([zd(1,Ke),zd(2,it),zd(3,Mt),zd(4,_i),zd(5,lr),zd(6,Se),zd(7,oz),zd(8,Kt)],_n)});var Bd,Hb,Ub,lC,cC,dC,uC,jb,Wb,eG=N(()=>{wa();lt();ti();L2();D2();aC();uh();He();Ji();Sr();wt();Bd=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Hb=class i extends de{constructor(){super({id:i.ID,label:b("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:fe.and(F.writable,_r.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);(r=n==null?void 0:n.model.get())===null||r===void 0||r.next()})}};Hb.ID=A2;Ub=class i extends de{constructor(){super({id:i.ID,label:b("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:fe.and(F.writable,_r.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);(r=n==null?void 0:n.model.get())===null||r===void 0||r.previous()})}};Ub.ID=I2;lC=class extends de{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:b("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:F.writable})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);(r=n==null?void 0:n.model.get())===null||r===void 0||r.triggerExplicitly()})}},cC=class extends de{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:b("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:fe.and(F.writable,_r.inlineSuggestionVisible),kbOpts:{weight:100+1,primary:2065,kbExpr:fe.and(F.writable,_r.inlineSuggestionVisible)},menuOpts:[{menuId:Me.InlineSuggestionToolbar,title:b("acceptWord","Accept Word"),group:"primary",order:2}]})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);yield(r=n==null?void 0:n.model.get())===null||r===void 0?void 0:r.acceptNextWord(n.editor)})}},dC=class extends de{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:b("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:fe.and(F.writable,_r.inlineSuggestionVisible),kbOpts:{weight:100+1},menuOpts:[{menuId:Me.InlineSuggestionToolbar,title:b("acceptLine","Accept Line"),group:"secondary",order:2}]})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);yield(r=n==null?void 0:n.model.get())===null||r===void 0?void 0:r.acceptNextLine(n.editor)})}},uC=class extends de{constructor(){super({id:T2,label:b("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:_r.inlineSuggestionVisible,menuOpts:[{menuId:Me.InlineSuggestionToolbar,title:b("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:fe.and(_r.inlineSuggestionVisible,F.tabMovesFocus.toNegated(),_r.inlineSuggestionHasIndentationLessThanTabSize,ct.Visible.toNegated(),F.hoverFocused.toNegated())}})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);n&&((r=n.model.get())===null||r===void 0||r.accept(n.editor),n.editor.focus())})}},jb=class i extends de{constructor(){super({id:i.ID,label:b("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:_r.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}run(e,t){return Bd(this,void 0,void 0,function*(){let r=_n.get(t);on(n=>{var o;(o=r==null?void 0:r.model.get())===null||o===void 0||o.stop(n)})})}};jb.ID="editor.action.inlineSuggest.hide";Wb=class i extends Jo{constructor(){super({id:i.ID,title:b("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:Me.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:fe.equals("config.editor.inlineSuggest.showToolbar","always")})}run(e,t){return Bd(this,void 0,void 0,function*(){let r=e.get(Mt),o=r.getValue("editor.inlineSuggest.showToolbar")==="always"?"onHover":"always";r.updateValue("editor.inlineSuggest.showToolbar",o)})}};Wb.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar"});var fbe,Vb,xL,hC,tG=N(()=>{Ht();Es();ke();wa();et();es();rc();aC();B2();kd();He();X_();Ut();is();Bc();fbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vb=function(i,e){return function(t,r){e(t,r,i)}},xL=class{constructor(e,t,r){this.owner=e,this.range=t,this.controller=r}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},hC=class{constructor(e,t,r,n,o,s){this._editor=e,this._languageService=t,this._openerService=r,this.accessibilityService=n,this._instantiationService=o,this._telemetryService=s,this.hoverOrdinal=4}suggestHoverAnchor(e){let t=_n.get(this._editor);if(!t)return null;let r=e.target;if(r.type===8){let n=r.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new Ad(1e3,this,B.fromPositions(this._editor.getModel().validatePosition(n.positionBefore||n.position)),e.event.posx,e.event.posy,!1)}return r.type===7&&t.shouldShowHoverAt(r.range)?new Ad(1e3,this,r.range,e.event.posx,e.event.posy,!1):r.type===6&&r.detail.mightBeForeignElement&&t.shouldShowHoverAt(r.range)?new Ad(1e3,this,r.range,e.event.posx,e.event.posy,!1):null}computeSync(e,t){if(this._editor.getOption(61).showToolbar==="always")return[];let r=_n.get(this._editor);return r&&r.shouldShowHoverAt(e.range)?[new xL(this,e.range,r)]:[]}renderHoverParts(e,t){let r=new le,n=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(7)&&this.renderScreenReaderText(e,n,r);let o=n.controller.model.get(),s=this._instantiationService.createInstance(qs,this._editor,!1,$_(null),o.selectedInlineCompletionIndex,o.inlineCompletionsCount,o.selectedInlineCompletion.map(a=>{var l;return(l=a==null?void 0:a.inlineCompletion.source.inlineCompletions.commands)!==null&&l!==void 0?l:[]}));return e.fragment.appendChild(s.getDomNode()),o.triggerExplicitly(),r.add(s),r}renderScreenReaderText(e,t,r){let n=Ae,o=n("div.hover-row.markdown-hover"),s=Te(o,n("div.hover-contents",{"aria-live":"assertive"})),a=r.add(new to({editor:this._editor},this._languageService,this._openerService)),l=c=>{r.add(a.onDidRenderAsync(()=>{s.className="hover-contents code-hover-contents",e.onContentsChanged()}));let d=b("inlineSuggestionFollows","Suggestion:"),u=r.add(a.render(new $i().appendText(d).appendCodeblock("text",c)));s.replaceChildren(u.element)};r.add(pn(c=>{var d;let u=(d=t.controller.model.read(c))===null||d===void 0?void 0:d.ghostText.read(c);if(u){let h=this._editor.getModel().getLineContent(u.lineNumber);l(u.renderForScreenReader(h))}else du(s)})),e.fragment.appendChild(o)}};hC=fbe([Vb(1,er),Vb(2,tr),Vb(3,kf),Vb(4,Ke),Vb(5,Ln)],hC)});var CL=N(()=>{lt();rc();eG();tG();aC();Ji();Ue(_n.ID,_n,3);ee(lC);ee(Hb);ee(Ub);ee(cC);ee(dC);ee(uC);ee(jb);Si(Wb);Uo.register(hC)});var iG=N(()=>{});var rG=N(()=>{iG()});var nG=N(()=>{});var oG=N(()=>{nG()});var sG,pbe,mbe,SL,kL,fC,pC,aG=N(()=>{Ht();bk();ca();cF();ke();ek();oG();et();Ur();sG=new vt(new Ts(0,122,204)),pbe={showArrow:!0,showFrame:!0,className:"",frameColor:sG,arrowColor:sG,keepEditorSelection:!1},mbe="vs.editor.contrib.zoneWidget",SL=class{constructor(e,t,r,n,o,s,a,l){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=r,this.heightInLines=n,this.showInHiddenAreas=a,this.ordinal=l,this._onDomNodeTop=o,this._onComputedHeight=s}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}},kL=class{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}},fC=class i{constructor(e){this._editor=e,this._ruleName=i._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),O3(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(){O3(this._ruleName),cP(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:B.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}};fC._IdGenerator=new aF(".arrow-decoration-");pC=class{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new le,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=rO(t),ff(this.options,pbe,!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(r=>{let n=this._getWidth(r);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(r)+"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 fC(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){let e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){let 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){let r=e-this._decoratingElementsHeight();this.container.style.height=`${r}px`;let n=this.editor.getLayoutInfo();this._doLayout(r,this._getWidth(n))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){let e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){let r=B.isIRange(e)?B.lift(e):B.fromPositions(e);this._isShowing=!0,this._showImpl(r,t),this._isShowing=!1,this._positionMarkerId.set([{range:r,options:mt.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(){let e=this.editor.getOption(65),t=0;if(this.options.showArrow){let r=Math.round(e/3);t+=2*r}if(this.options.showFrame){let r=Math.round(e/9);t+=2*r}return t}_showImpl(e,t){let r=e.getStartPosition(),n=this.editor.getLayoutInfo(),o=this._getWidth(n);this.domNode.style.width=`${o}px`,this.domNode.style.left=this._getLeft(n)+"px";let s=document.createElement("div");s.style.overflow="hidden";let a=this.editor.getOption(65);if(!this.options.allowUnlimitedHeight){let h=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,h)}let l=0,c=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(a/3),this._arrow.height=l,this._arrow.show(r)),this.options.showFrame&&(c=Math.round(a/9)),this.editor.changeViewZones(h=>{this._viewZone&&h.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new SL(s,r.lineNumber,r.column,t,f=>this._onViewZoneTop(f),f=>this._onViewZoneHeight(f),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=h.addZone(this._viewZone),this._overlayWidget=new kL(mbe+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){let h=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=h+"px",this.container.style.borderBottomWidth=h+"px"}let d=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=d+"px",this.container.style.overflow="hidden"),this._doLayout(d,o),this.options.keepEditorSelection||this.editor.setSelection(e);let u=this.editor.getModel();if(u){let h=u.validateRange(new B(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(h,h.startLineNumber===u.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 Cl(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){let r=(t.currentY-e.startY)/this.editor.getOption(65),n=r<0?Math.ceil(r):Math.floor(r),o=e.heightInLines+n;o>5&&o<35&&this._relayout(o)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){let e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}});function dG(i){let e=i.get(ai).getFocusedCodeEditor();return e instanceof Wo?e.getParentEditor():e}var lG,cG,EL,Pr,qb,gbe,Np,uG,mC,gC,hG,fG,Att,Ltt,Dtt,Mtt,Hd,Ntt,Rtt,Ptt,Ott,Ftt,hh=N(()=>{Ht();ng();Fc();Zr();An();ca();ei();ek();rG();lt();In();Ap();aG();He();J_();wt();hl();Ut();tn();lG=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},cG=function(i,e){return function(t,r){e(t,r,i)}},EL=Qr("IPeekViewService");en(EL,class{constructor(){this._widgets=new Map}addExclusiveWidget(i,e){let t=this._widgets.get(i);t&&(t.listener.dispose(),t.widget.dispose());let r=()=>{let n=this._widgets.get(i);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(i))};this._widgets.set(i,{widget:e,listener:e.onDidClose(r)})}},1);(function(i){i.inPeekEditor=new ht("inReferenceSearchEditor",!0,b("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),i.notInPeekEditor=i.inPeekEditor.toNegated()})(Pr||(Pr={}));qb=class{constructor(e,t){e instanceof Wo&&Pr.inPeekEditor.bindTo(t)}dispose(){}};qb.ID="editor.contrib.referenceController";qb=lG([cG(1,it)],qb);Ue(qb.ID,qb,0);gbe={headerBackgroundColor:vt.white,primaryHeadingColor:vt.fromHex("#333333"),secondaryHeadingColor:vt.fromHex("#6c6c6cb3")},Np=class extends pC{constructor(e,t,r){super(e,t),this.instantiationService=r,this._onDidClose=new Je,this.onDidClose=this._onDidClose.event,ff(this.options,gbe,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){let 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();let 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=Ae(".head"),this._bodyElement=Ae(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=Ae(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),To(this._titleElement,"click",o=>this._onTitleClick(o))),Te(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=Ae("span.filename"),this._secondaryHeading=Ae("span.dirname"),this._metaHeading=Ae("span.meta"),Te(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);let r=Ae(".peekview-actions");Te(this._headElement,r);let n=this._getActionBarOptions();this._actionbarWidget=new Ls(r,n),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new Qo("peekview.close",b("label.close","Close"),_t.asClassName(pt.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:YF.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:qn(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,un(this._metaHeading)):Br(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}let r=Math.ceil(this.editor.getOption(65)*1.2),n=Math.round(e-(r+2));this._doLayoutHead(r,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`)}};Np=lG([cG(2,Ke)],Np);uG=je("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:vt.black,hcLight:vt.white},b("peekViewTitleBackground","Background color of the peek view title area.")),mC=je("peekViewTitleLabel.foreground",{dark:vt.white,light:vt.black,hcDark:vt.white,hcLight:ha},b("peekViewTitleForeground","Color of the peek view title.")),gC=je("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},b("peekViewTitleInfoForeground","Color of the peek view title info.")),hG=je("peekView.border",{dark:jm,light:jm,hcDark:ts,hcLight:ts},b("peekViewBorder","Color of the peek view borders and arrow.")),fG=je("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:vt.black,hcLight:vt.white},b("peekViewResultsBackground","Background color of the peek view result list.")),Att=je("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:vt.white,hcLight:ha},b("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),Ltt=je("peekViewResult.fileForeground",{dark:vt.white,light:"#1E1E1E",hcDark:vt.white,hcLight:ha},b("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Dtt=je("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},b("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),Mtt=je("peekViewResult.selectionForeground",{dark:vt.white,light:"#6C6C6C",hcDark:vt.white,hcLight:ha},b("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),Hd=je("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:vt.black,hcLight:vt.white},b("peekViewEditorBackground","Background color of the peek view editor.")),Ntt=je("peekViewEditorGutter.background",{dark:Hd,light:Hd,hcDark:Hd,hcLight:Hd},b("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Rtt=je("peekViewEditorStickyScroll.background",{dark:Hd,light:Hd,hcDark:Hd,hcLight:Hd},b("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),Ptt=je("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},b("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Ott=je("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},b("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Ftt=je("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:ua,hcLight:ua},b("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))});var vbe,qo,TL,cc,Hn,Rp=N(()=>{qt();ei();cF();ke();df();Lo();Ni();et();He();vbe=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},qo=class{constructor(e,t,r,n){this.isProviderFirst=e,this.parent=t,this.link=r,this._rangeCallback=n,this.id=lF.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;let t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?b({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,Dn(this.uri),this.range.startLineNumber,this.range.startColumn):b("aria.oneReference","in {0} on line {1} at column {2}",Dn(this.uri),this.range.startLineNumber,this.range.startColumn)}},TL=class{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){let r=this._modelReference.object.textEditorModel;if(!r)return;let{startLineNumber:n,startColumn:o,endLineNumber:s,endColumn:a}=e,l=r.getWordUntilPosition({lineNumber:n,column:o-t}),c=new B(n,l.startColumn,n,o),d=new B(s,a,s,1073741824),u=r.getValueInRange(c).replace(/^\s+/,""),h=r.getValueInRange(e),f=r.getValueInRange(d).replace(/\s+$/,"");return{value:u+h+f,highlight:{start:u.length,end:u.length+h.length}}}},cc=class{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new HP}dispose(){ji(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){let e=this.children.length;return e===1?b("aria.fileReferences.1","1 symbol in {0}, full path {1}",Dn(this.uri),this.uri.fsPath):b("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Dn(this.uri),this.uri.fsPath)}resolve(e){return vbe(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(let t of this.children)if(!this._previews.has(t.uri))try{let r=yield e.createModelReference(t.uri);this._previews.set(t.uri,new TL(r))}catch(r){ft(r)}return this})}},Hn=class i{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new Je,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;let[r]=e;e.sort(i._compareReferences);let n;for(let o of e)if((!n||!J3.isEqual(n.uri,o.uri,!0))&&(n=new cc(this,o.uri),this.groups.push(n)),n.children.length===0||i._compareReferences(o,n.children[n.children.length-1])!==0){let s=new qo(r===o,n,o,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(s),n.children.push(s)}}dispose(){ji(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new i(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?b("aria.result.0","No results found"):this.references.length===1?b("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?b("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):b("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){let{parent:r}=e,n=r.children.indexOf(e),o=r.children.length,s=r.parent.groups.length;return s===1||t&&n+10?(t?n=(n+1)%o:n=(n+o-1)%o,r.children[n]):(n=r.parent.groups.indexOf(r),t?(n=(n+1)%s,r.parent.groups[n].children[0]):(n=(n+s-1)%s,r.parent.groups[n].children[r.parent.groups[n].children.length-1]))}nearestReference(e,t){let r=this.references.map((n,o)=>({idx:o,prefixLen:zc(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,o)=>n.prefixLen>o.prefixLen?-1:n.prefixLeno.offsetDist?1:0)[0];if(r)return this.references[r.idx]}referenceAt(e,t){for(let r of this.references)if(r.uri.toString()===e.toString()&&B.containsPosition(r.range,t))return r}firstReference(){for(let e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return J3.compare(e.uri,t.uri)||B.compareRangesUsingStarts(e.range,t.range)}}});var pG=N(()=>{});var mG=N(()=>{pG()});var xC,CC,IL,bC,vC,_C,yC,AL,Pp,LL,Op,wC,gG=N(()=>{Ht();one();ine();nz();pl();ke();Lo();ra();He();Ut();jr();ey();O_();Rp();xC=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},CC=function(i,e){return function(t,r){e(t,r,i)}},bC=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof Hn||e instanceof cc}getChildren(e){if(e instanceof Hn)return e.groups;if(e instanceof cc)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};bC=xC([CC(0,Cr)],bC);vC=class{getHeight(){return 23}getTemplateId(e){return e instanceof cc?Pp.id:Op.id}},_C=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof qo){let r=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(r)return r.value}return Dn(e.uri)}};_C=xC([CC(0,Kt)],_C);yC=class{getId(e){return e instanceof qo?e.id:e.uri}},AL=class extends ce{constructor(e,t){super(),this._labelService=t;let r=document.createElement("div");r.classList.add("reference-file"),this.file=this._register(new iy(r,{supportHighlights:!0})),this.badge=new uz(Te(r,Ae(".count")),{},_F),e.appendChild(r)}set(e,t){let r=uf(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(r,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});let n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(b("referencesCount","{0} references",n)):this.badge.setTitleFormat(b("referenceCount","{0} reference",n))}};AL=xC([CC(1,Tl)],AL);Pp=IL=class{constructor(e){this._instantiationService=e,this.templateId=IL.id}renderTemplate(e){return this._instantiationService.createInstance(AL,e)}renderElement(e,t,r){r.set(e.element,gu(e.filterData))}disposeTemplate(e){e.dispose()}};Pp.id="FileReferencesRenderer";Pp=IL=xC([CC(0,Ke)],Pp);LL=class{constructor(e){this.label=new rz(e)}set(e,t){var r;let n=(r=e.parent.getPreview(e))===null||r===void 0?void 0:r.preview(e.range);if(!n||!n.value)this.label.set(`${Dn(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{let{value:o,highlight:s}=n;t&&!fl.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(o,gu(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(o,[s]))}}},Op=class i{constructor(){this.templateId=i.id}renderTemplate(e){return new LL(e)}renderElement(e,t,r){r.set(e.element,e.filterData)}disposeTemplate(){}};Op.id="OneReferenceRenderer";wC=class{getWidgetAriaLabel(){return b("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}});var _be,dc,bG,SC,kC,DL,EC,vG=N(()=>{Ht();nne();ca();ei();ke();Dm();Lo();mG();Ap();et();Ur();Hr();Q3();es();ra();gG();hh();He();Ut();jr();ey();dz();rn();Dre();Rp();_be=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},dc=function(i,e){return function(t,r){e(t,r,i)}},bG=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},SC=class i{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new le,this._callOnModelChange=new le,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();let e=this._editor.getModel();if(e){for(let 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()));let t=[],r=[];for(let n=0,o=e.children.length;n{let o=n.deltaDecorations([],t);for(let s=0;s{o.equals(9)&&(this._keybindingService.dispatchEvent(o,o.target),o.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(DL,"ReferencesWidget",this._treeContainer,new vC,[this._instantiationService.createInstance(Pp),this._instantiationService.createInstance(Op)],this._instantiationService.createInstance(bC),r),this._splitView.addView({onDidChange:ci.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:o=>{this._preview.layout({height:this._dim.height,width:o})}},Ik.Distribute),this._splitView.addView({onDidChange:ci.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:o=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${o}px`,this._tree.layout(this._dim.height,o)}},Ik.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));let n=(o,s)=>{o instanceof qo&&(s==="show"&&this._revealReference(o,!1),this._onDidSelectReference.fire({element:o,kind:s,source:"tree"}))};this._tree.onDidOpen(o=>{o.sideBySide?n(o.element,"side"):o.editorOptions.pinned?n(o.element,"goto"):n(o.element,"show")}),Br(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Qt(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=b("noResults","No results"),un(this._messageContainer),Promise.resolve(void 0)):(Br(this._messageContainer),this._decorationsManager=new SC(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=>{let{event:t,target:r}=e;if(t.detail!==2)return;let n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:r.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),un(this._treeContainer),un(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(){let[e]=this._tree.getFocus();if(e instanceof qo)return e;if(e instanceof cc&&e.children.length>0)return e.children[0]}revealReference(e){return bG(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return bG(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==Eo.inMemory?this.setTitle(QP(e.uri),this._uriLabel.getUriLabel(uf(e.uri))):this.setTitle(b("peekView.alternateTitle","References"));let r=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));let n=yield r;if(!this._model){n.dispose();return}ji(this._previewModelReference);let o=n.object;if(o){let s=this._preview.getModel()===o.textEditorModel?0:1,a=B.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(o.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,s)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};EC=_be([dc(3,br),dc(4,Cr),dc(5,Ke),dc(6,EL),dc(7,Tl),dc(8,XO),dc(9,Kt),dc(10,er),dc(11,Ot)],EC)});function ph(i,e){let t=dG(i);if(!t)return;let r=Xa.get(t);r&&e(r)}var ybe,Fp,_G,TC,fh,Xa,ML=N(()=>{jt();qt();ll();ke();In();di();et();hh();He();Vi();Sr();wt();Ut();j3();dz();Mo();wu();Rp();vG();ybe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Fp=function(i,e){return function(t,r){e(t,r,i)}},_G=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},fh=new ht("referenceSearchVisible",!1,b("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'")),Xa=TC=class{static get(e){return e.getContribution(TC.ID)}constructor(e,t,r,n,o,s,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=o,this._instantiationService=s,this._storageService=a,this._configurationService=l,this._disposables=new le,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=fh.bindTo(r)}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,r){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=r,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));let o="peekViewLayout",s=kC.fromJSON(this._storageService.get(o,0,"{}"));this._widget=this._instantiationService.createInstance(EC,this._editor,this._defaultTreeKeyboardSupport,s),this._widget.setTitle(b("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(o,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{let{element:c,kind:d}=l;if(c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":r?this._gotoReference(c,!0):this.openReference(c,!1,!0);break}}));let a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.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(b("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));let d=this._editor.getModel().uri,u=new Ie(e.startLineNumber,e.startColumn),h=this._model.nearestReference(d,u);if(h)return this._widget.setSelection(h).then(()=>{this._widget&&this._editor.getOption(85)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return _G(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;let t=this._widget.position;if(!t)return;let r=this._model.nearestReference(this._editor.getModel().uri,t);if(!r)return;let n=this._model.nextOrPreviousReference(r,e),o=this._editor.hasTextFocus(),s=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n,!1),o?this._editor.focus():this._widget&&s&&this._widget.focusOnPreviewEditor()})}revealReference(e){return _G(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,r;(t=this._widget)===null||t===void 0||t.dispose(),(r=this._model)===null||r===void 0||r.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 r;(r=this._widget)===null||r===void 0||r.hide(),this._ignoreModelChangeEvent=!0;let n=B.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then(o=>{var s;if(this._ignoreModelChangeEvent=!1,!o||!this._widget){this.closeWidget();return}if(this._editor===o)this._widget.show(n),this._widget.focusOnReferenceTree();else{let a=TC.get(o),l=this._model.clone();this.closeWidget(),o.focus(),a==null||a.toggleWidget(n,Jt(c=>Promise.resolve(l)),(s=this._peekMode)!==null&&s!==void 0?s:!1)}},o=>{this._ignoreModelChangeEvent=!1,ft(o)})}openReference(e,t,r){t||this.closeWidget();let{uri:n,range:o}=e;this._editorService.openCodeEditor({resource:n,options:{selection:o,selectionSource:"code.jump",pinned:r}},this._editor,t)}};Xa.ID="editor.contrib.referencesController";Xa=TC=ybe([Fp(2,it),Fp(3,ai),Fp(4,Ri),Fp(5,Ke),Fp(6,Yn),Fp(7,Mt)],Xa);Ao.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:gi(2089,60),when:fe.or(fh,Pr.inPeekEditor),handler(i){ph(i,e=>{e.changeFocusBetweenPreviewAndReferences()})}});Ao.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:fe.or(fh,Pr.inPeekEditor),handler(i){ph(i,e=>{e.goToNextOrPreviousReference(!0)})}});Ao.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:fe.or(fh,Pr.inPeekEditor),handler(i){ph(i,e=>{e.goToNextOrPreviousReference(!1)})}});Dt.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");Dt.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");Dt.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");Dt.registerCommand("closeReferenceSearch",i=>ph(i,e=>e.closeWidget()));Ao.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:fe.and(Pr.inPeekEditor,fe.not("config.editor.stablePeek"))});Ao.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:fe.and(fh,fe.not("config.editor.stablePeek"))});Ao.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:fe.and(fh,Lk,Dk.negate(),Mk.negate()),handler(i){var e;let r=(e=i.get(ry).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(r)&&r[0]instanceof qo&&ph(i,n=>n.revealReference(r[0]))}});Ao.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:fe.and(fh,Lk,Dk.negate(),Mk.negate()),handler(i){var e;let r=(e=i.get(ry).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(r)&&r[0]instanceof qo&&ph(i,n=>n.openReference(r[0],!0,!0))}});Dt.registerCommand("openReference",i=>{var e;let r=(e=i.get(ry).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(r)&&r[0]instanceof qo&&ph(i,n=>n.openReference(r[0],!1,!0))})});var yG,Kb,PL,$b,NL,RL,wG=N(()=>{ei();ke();Lo();lt();In();et();He();wt();hl();Ut();jr();j3();Mo();yG=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Kb=function(i,e){return function(t,r){e(t,r,i)}},PL=new ht("hasSymbols",!1,b("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),$b=Qr("ISymbolNavigationService"),NL=class{constructor(e,t,r,n){this._editorService=t,this._notificationService=r,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=PL.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){let 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();let r=new RL(this._editorService),n=r.onDidChange(o=>{if(this._ignoreEditorChange)return;let s=this._editorService.getActiveCodeEditor();if(!s)return;let a=s.getModel(),l=s.getPosition();if(!a||!l)return;let c=!1,d=!1;for(let u of t.references)if(c_(u.uri,a.uri))c=!0,d=d||B.containsPosition(u.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=D3(r,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;let t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:B.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();let t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),r=t?b("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):b("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(r)}};NL=yG([Kb(0,it),Kb(1,ai),Kb(2,Ri),Kb(3,Kt)],NL);en($b,NL,1);We(new class extends Fi{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:PL,kbOpts:{weight:100,primary:70}})}runEditorCommand(i,e){return i.get($b).revealNext(e)}});Ao.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:PL,primary:9,handler(i){i.get($b).reset()}});RL=class{constructor(e){this._listener=new Map,this._disposables=new le,this._onDidChange=new Je,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(),ji(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,D3(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)}};RL=yG([Kb(0,ai)],RL)});function Gb(i,e,t,r){return OL(this,void 0,void 0,function*(){let o=t.ordered(i).map(a=>Promise.resolve(r(a,i,e)).then(void 0,l=>{Xt(l)})),s=yield Promise.all(o);return hn(s.flat())})}function mh(i,e,t,r){return Gb(e,t,i,(n,o,s)=>n.provideDefinition(o,s,r))}function FL(i,e,t,r){return Gb(e,t,i,(n,o,s)=>n.provideDeclaration(o,s,r))}function zL(i,e,t,r){return Gb(e,t,i,(n,o,s)=>n.provideImplementation(o,s,r))}function BL(i,e,t,r){return Gb(e,t,i,(n,o,s)=>n.provideTypeDefinition(o,s,r))}function Yb(i,e,t,r,n){return Gb(e,t,i,(o,s,a)=>OL(this,void 0,void 0,function*(){let l=yield o.provideReferences(s,a,{includeDeclaration:!0},n);if(!r||!l||l.length!==2)return l;let c=yield o.provideReferences(s,a,{includeDeclaration:!1},n);return c&&c.length===1?c:l}))}function Xb(i){return OL(this,void 0,void 0,function*(){let e=yield i(),t=new Hn(e,""),r=t.references.map(n=>n.link);return t.dispose(),r})}var OL,IC=N(()=>{mi();ki();qt();lt();Pt();Rp();OL=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};$n("_executeDefinitionProvider",(i,e,t)=>{let r=i.get(Se),n=mh(r.definitionProvider,e,t,st.None);return Xb(()=>n)});$n("_executeTypeDefinitionProvider",(i,e,t)=>{let r=i.get(Se),n=BL(r.typeDefinitionProvider,e,t,st.None);return Xb(()=>n)});$n("_executeDeclarationProvider",(i,e,t)=>{let r=i.get(Se),n=FL(r.declarationProvider,e,t,st.None);return Xb(()=>n)});$n("_executeReferenceProvider",(i,e,t)=>{let r=i.get(Se),n=Yb(r.referenceProvider,e,t,!1,st.None);return Xb(()=>n)});$n("_executeImplementationProvider",(i,e,t)=>{let r=i.get(Se),n=zL(r.implementationProvider,e,t,st.None);return Xb(()=>n)})});var ps,Qb,Zb,Jb,AC,LC,DC,MC,NC,gh,ms,uc,RC,PC,OC,FC,HL,e1=N(()=>{Io();jt();ll();zr();Ir();yu();_k();lt();In();Ap();di();et();ti();fn();ML();Rp();wG();M0();hh();He();Ji();Vi();wt();Ut();Mo();$c();IC();Pt();Jh();lz();ps=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};Zo.appendMenuItem(Me.EditorContext,{submenu:Me.EditorContextPeek,title:b("peek.submenu","Peek"),group:"navigation",order:100});gh=class i{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof i||Ie.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}},ms=class i extends oa{static all(){return i._allSymbolNavigationCommands.values()}static _patchConfig(e){let t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(let r of kn.wrap(t.menu))(r.id===Me.EditorContext||r.id===Me.EditorContextPeek)&&(r.when=fe.and(e.precondition,r.when));return t}constructor(e,t){super(i._patchConfig(t)),this.configuration=e,i._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,r,n){if(!t.hasModel())return Promise.resolve(void 0);let o=e.get(Ri),s=e.get(ai),a=e.get(vl),l=e.get($b),c=e.get(Se),d=e.get(Ke),u=t.getModel(),h=t.getPosition(),f=gh.is(r)?r:new gh(u,h),m=new ga(t,5),g=Vc(this._getLocationModel(c,f.model,f.position,m.token),m.token).then(w=>ps(this,void 0,void 0,function*(){var _;if(!w||m.token.isCancellationRequested)return;ar(w.ariaMessage);let E;if(w.referenceAt(u.uri,h)){let A=this._getAlternativeCommand(t);!i._activeAlternativeCommands.has(A)&&i._allSymbolNavigationCommands.has(A)&&(E=i._allSymbolNavigationCommands.get(A))}let L=w.references.length;if(L===0){if(!this.configuration.muteMessage){let A=u.getWordAtPosition(h);(_=qr.get(t))===null||_===void 0||_.showMessage(this._getNoResultFoundMessage(A),h)}}else if(L===1&&E)i._activeAlternativeCommands.add(this.desc.id),d.invokeFunction(A=>E.runEditorCommand(A,t,r,n).finally(()=>{i._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(s,l,t,w,n)}),w=>{o.error(w)}).finally(()=>{m.dispose()});return a.showWhile(g,250),g}_onResult(e,t,r,n,o){return ps(this,void 0,void 0,function*(){let s=this._getGoToPreference(r);if(!(r instanceof Wo)&&(this.configuration.openInPeek||s==="peek"&&n.references.length>1))this._openInPeek(r,n,o);else{let a=n.firstReference(),l=n.references.length>1&&s==="gotoAndPeek",c=yield this._openReference(r,e,a,this.configuration.openToSide,!l);l&&c?this._openInPeek(c,n,o):n.dispose(),s==="goto"&&t.put(a)}})}_openReference(e,t,r,n,o){return ps(this,void 0,void 0,function*(){let s;if(jO(r)&&(s=r.targetSelectionRange),s||(s=r.range),!s)return;let a=yield t.openCodeEditor({resource:r.uri,options:{selection:B.collapseToStart(s),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(a){if(o){let l=a.getModel(),c=a.createDecorationsCollection([{range:s,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&c.clear()},350)}return a}})}_openInPeek(e,t,r){let n=Xa.get(e);n&&e.hasModel()?n.toggleWidget(r!=null?r:e.getSelection(),Jt(o=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}};ms._allSymbolNavigationCommands=new Map;ms._activeAlternativeCommands=new Set;uc=class extends ms{_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield mh(e.definitionProvider,t,r,n),b("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?b("noResultWord","No definition found for '{0}'",e.word):b("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(57).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(57).multipleDefinitions}};Si((Qb=class extends uc{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qb.id,title:{value:b("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:b({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:fe.and(F.hasDefinitionProvider,F.isInWalkThroughSnippet.toNegated()),keybinding:[{when:F.editorTextFocus,primary:70,weight:100},{when:fe.and(F.editorTextFocus,Ak),primary:2118,weight:100}],menu:[{id:Me.EditorContext,group:"navigation",order:1.1},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),Dt.registerCommandAlias("editor.action.goToDeclaration",Qb.id)}},Qb.id="editor.action.revealDefinition",Qb));Si((Zb=class extends uc{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:Zb.id,title:{value:b("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:fe.and(F.hasDefinitionProvider,F.isInWalkThroughSnippet.toNegated()),keybinding:[{when:F.editorTextFocus,primary:gi(2089,70),weight:100},{when:fe.and(F.editorTextFocus,Ak),primary:gi(2089,2118),weight:100}]}),Dt.registerCommandAlias("editor.action.openDeclarationToTheSide",Zb.id)}},Zb.id="editor.action.revealDefinitionAside",Zb));Si((Jb=class extends uc{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Jb.id,title:{value:b("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:fe.and(F.hasDefinitionProvider,Pr.notInPeekEditor,F.isInWalkThroughSnippet.toNegated()),keybinding:{when:F.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:Me.EditorContextPeek,group:"peek",order:2}}),Dt.registerCommandAlias("editor.action.previewDeclaration",Jb.id)}},Jb.id="editor.action.peekDefinition",Jb));RC=class extends ms{_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield FL(e.declarationProvider,t,r,n),b("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?b("decl.noResultWord","No declaration found for '{0}'",e.word):b("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(57).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(57).multipleDeclarations}};Si((AC=class extends RC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:AC.id,title:{value:b("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:b({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:fe.and(F.hasDeclarationProvider,F.isInWalkThroughSnippet.toNegated()),menu:[{id:Me.EditorContext,group:"navigation",order:1.3},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?b("decl.noResultWord","No declaration found for '{0}'",e.word):b("decl.generic.noResults","No declaration found")}},AC.id="editor.action.revealDeclaration",AC));Si(class extends RC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:b("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:fe.and(F.hasDeclarationProvider,Pr.notInPeekEditor,F.isInWalkThroughSnippet.toNegated()),menu:{id:Me.EditorContextPeek,group:"peek",order:3}})}});PC=class extends ms{_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield BL(e.typeDefinitionProvider,t,r,n),b("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?b("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):b("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(57).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(57).multipleTypeDefinitions}};Si((LC=class extends PC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:LC.ID,title:{value:b("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:b({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:fe.and(F.hasTypeDefinitionProvider,F.isInWalkThroughSnippet.toNegated()),keybinding:{when:F.editorTextFocus,primary:0,weight:100},menu:[{id:Me.EditorContext,group:"navigation",order:1.4},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},LC.ID="editor.action.goToTypeDefinition",LC));Si((DC=class extends PC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:DC.ID,title:{value:b("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:fe.and(F.hasTypeDefinitionProvider,Pr.notInPeekEditor,F.isInWalkThroughSnippet.toNegated()),menu:{id:Me.EditorContextPeek,group:"peek",order:4}})}},DC.ID="editor.action.peekTypeDefinition",DC));OC=class extends ms{_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield zL(e.implementationProvider,t,r,n),b("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?b("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):b("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(57).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(57).multipleImplementations}};Si((MC=class extends OC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:MC.ID,title:{value:b("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:b({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:fe.and(F.hasImplementationProvider,F.isInWalkThroughSnippet.toNegated()),keybinding:{when:F.editorTextFocus,primary:2118,weight:100},menu:[{id:Me.EditorContext,group:"navigation",order:1.45},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},MC.ID="editor.action.goToImplementation",MC));Si((NC=class extends OC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:NC.ID,title:{value:b("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:fe.and(F.hasImplementationProvider,Pr.notInPeekEditor,F.isInWalkThroughSnippet.toNegated()),keybinding:{when:F.editorTextFocus,primary:3142,weight:100},menu:{id:Me.EditorContextPeek,group:"peek",order:5}})}},NC.ID="editor.action.peekImplementation",NC));FC=class extends ms{_getNoResultFoundMessage(e){return e?b("references.no","No references found for '{0}'",e.word):b("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(57).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(57).multipleReferences}};Si(class extends FC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:b("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:b({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:fe.and(F.hasReferenceProvider,Pr.notInPeekEditor,F.isInWalkThroughSnippet.toNegated()),keybinding:{when:F.editorTextFocus,primary:1094,weight:100},menu:[{id:Me.EditorContext,group:"navigation",order:1.45},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield Yb(e.referenceProvider,t,r,!0,n),b("ref.title","References"))})}});Si(class extends FC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:b("references.action.label","Peek References"),original:"Peek References"},precondition:fe.and(F.hasReferenceProvider,Pr.notInPeekEditor,F.isInWalkThroughSnippet.toNegated()),menu:{id:Me.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield Yb(e.referenceProvider,t,r,!1,n),b("ref.title","References"))})}});HL=class extends ms{constructor(e,t,r){super(e,{id:"editor.action.goToLocation",title:{value:b("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:fe.and(Pr.notInPeekEditor,F.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=r}_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(this._references,b("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&b("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(57).multipleReferences}_getAlternativeCommand(){return""}};Dt.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:yt},{name:"position",description:"The position at which to start",constraint:Ie.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:(i,e,t,r,n,o,s)=>ps(void 0,void 0,void 0,function*(){Bt(yt.isUri(e)),Bt(Ie.isIPosition(t)),Bt(Array.isArray(r)),Bt(typeof n=="undefined"||typeof n=="string"),Bt(typeof s=="undefined"||typeof s=="boolean");let a=i.get(ai),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(vk(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{let d=new class extends HL{_getNoResultFoundMessage(u){return o||super._getNoResultFoundMessage(u)}}({muteMessage:!o,openInPeek:!!s,openToSide:!1},r,n);c.get(Ke).invokeFunction(d.run.bind(d),l)})})});Dt.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:yt},{name:"position",description:"The position at which to start",constraint:Ie.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:(i,e,t,r,n)=>ps(void 0,void 0,void 0,function*(){i.get(_i).executeCommand("editor.action.goToLocations",e,t,r,n,void 0,!0)})});Dt.registerCommand({id:"editor.action.findReferences",handler:(i,e,t)=>{Bt(yt.isUri(e)),Bt(Ie.isIPosition(t));let r=i.get(Se),n=i.get(ai);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(o=>{if(!vk(o)||!o.hasModel())return;let s=Xa.get(o);if(!s)return;let a=Jt(c=>Yb(r.referenceProvider,o.getModel(),Ie.lift(t),!1,c).then(d=>new Hn(d,b("ref.title","References")))),l=new B(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(s.toggleWidget(l,a,!1))})}});Dt.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")});var xG=N(()=>{});var CG=N(()=>{xG()});function UL(i,e){return!!i[e]}function SG(i){return i==="altKey"?En?new zp(57,"metaKey",6,"altKey"):new zp(5,"ctrlKey",6,"altKey"):En?new zp(6,"altKey",57,"metaKey"):new zp(6,"altKey",5,"ctrlKey")}var t1,zC,zp,Qa,i1=N(()=>{ei();ke();Tn();t1=class{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=UL(e.event,t.triggerModifier),this.hasSideBySideModifier=UL(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}},zC=class{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=UL(e,t.triggerModifier)}},zp=class{constructor(e,t,r,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=r,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}};Qa=class extends ce{constructor(e,t){var r;super(),this._onMouseMoveOrRelevantKeyDown=this._register(new Je),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new Je),this.onExecute=this._onExecute.event,this._onCancel=this._register(new Je),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=(r=t==null?void 0:t.extractLineNumberFromMouseEvent)!==null&&r!==void 0?r:n=>n.target.position?n.target.position.lineNumber:0,this._opts=SG(this._editor.getOption(76)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(n=>{if(n.hasChanged(76)){let o=SG(this._editor.getOption(76));if(this._opts.equals(o))return;this._opts=o,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(n=>this._onEditorMouseMove(new t1(n,this._opts)))),this._register(this._editor.onMouseDown(n=>this._onEditorMouseDown(new t1(n,this._opts)))),this._register(this._editor.onMouseUp(n=>this._onEditorMouseUp(new t1(n,this._opts)))),this._register(this._editor.onKeyDown(n=>this._onEditorKeyDown(new zC(n,this._opts)))),this._register(this._editor.onKeyUp(n=>this._onEditorKeyUp(new zC(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){let 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()}}});var wbe,jL,kG,r1,Ud,BC=N(()=>{jt();qt();Es();ke();CG();yu();lt();et();es();ra();i1();hh();He();wt();e1();IC();Pt();Ur();wbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},jL=function(i,e){return function(t,r){e(t,r,i)}},kG=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Ud=r1=class{constructor(e,t,r,n){this.textModelResolverService=t,this.languageService=r,this.languageFeaturesService=n,this.toUnhook=new le,this.toUnhookForKeyboard=new le,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();let o=new Qa(e);this.toUnhook.add(o),this.toUnhook.add(o.onMouseMoveOrRelevantKeyDown(([s,a])=>{this.startFindDefinitionFromMouse(s,a!=null?a:void 0)})),this.toUnhook.add(o.onExecute(s=>{this.isEnabled(s)&&this.gotoDefinition(s.target.position,s.hasSideBySideModifier).catch(a=>{ft(a)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(o.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(r1.ID)}startFindDefinitionFromCursor(e){return kG(this,void 0,void 0,function*(){yield 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}let r=e.target.position;this.startFindDefinition(r)}startFindDefinition(e){var t;return kG(this,void 0,void 0,function*(){this.toUnhookForKeyboard.clear();let r=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!r){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===r.startColumn&&this.currentWordAtPosition.endColumn===r.endColumn&&this.currentWordAtPosition.word===r.word)return;this.currentWordAtPosition=r;let n=new T_(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Jt(a=>this.findDefinition(e,a));let o;try{o=yield this.previousPromise}catch(a){ft(a);return}if(!o||!o.length||!n.validate(this.editor)){this.removeLinkDecorations();return}let s=o[0].originSelectionRange?B.lift(o[0].originSelectionRange):new B(e.lineNumber,r.startColumn,e.lineNumber,r.endColumn);if(o.length>1){let a=s;for(let{originSelectionRange:l}of o)l&&(a=B.plusRange(a,l));this.addDecoration(a,new $i().appendText(b("multipleResults","Click to show {0} definitions.",o.length)))}else{let a=o[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}let{object:{textEditorModel:c}}=l,{startLineNumber:d}=a.range;if(d<1||d>c.getLineCount()){l.dispose();return}let u=this.getPreviewValue(c,d,a),h=this.languageService.guessLanguageIdByFilepathOrFirstLine(c.uri);this.addDecoration(s,u?new $i().appendCodeblock(h||"",u):void 0),l.dispose()})}})}getPreviewValue(e,t,r){let n=r.range;return n.endLineNumber-n.startLineNumber>=r1.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,r){let o=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{let n=!t&&this.editor.getOption(86)&&!this.isInPeekEditor(r);return new uc({openToSide:t,openInPeek:n,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(r)})}isInPeekEditor(e){let t=e.get(it);return Pr.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};Ud.ID="editor.contrib.gotodefinitionatposition";Ud.MAX_SOURCE_PREVIEW_LINES=8;Ud=r1=wbe([jL(1,Cr),jL(2,er),jL(3,Se)],Ud);Ue(Ud.ID,Ud,2)});var EG,HC,UC,WL,qL,VL,TG=N(()=>{mi();ei();ke();j9();Ni();Ir();et();hl();Ut();F_();Sr();EG=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},HC=function(i,e){return function(t,r){e(t,r,i)}},UC=class{constructor(e,t,r){this.marker=e,this.index=t,this.total=r}},WL=class{constructor(e,t,r){this._markerService=t,this._configService=r,this._onDidChange=new Je,this.onDidChange=this._onDidChange.event,this._dispoables=new le,this._markers=[],this._nextIdx=-1,yt.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);let n=this._configService.getValue("problems.sortOrder"),o=(a,l)=>{let c=z3(a.resource.toString(),l.resource.toString());return c===0&&(n==="position"?c=B.compareRangesUsingStarts(a,l)||Lr.compare(a.severity,l.severity):c=Lr.compare(a.severity,l.severity)||B.compareRangesUsingStarts(a,l)),c},s=()=>{this._markers=this._markerService.read({resource:yt.isUri(e)?e:void 0,severities:Lr.Error|Lr.Warning|Lr.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(o)};s(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(s(),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(){let e=this._markers[this._nextIdx];return e&&new UC(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,r){let n=!1,o=this._markers.findIndex(s=>s.resource.toString()===e.uri.toString());o<0&&(o=pu(this._markers,{resource:e.uri},(s,a)=>z3(s.resource.toString(),a.resource.toString())),o<0&&(o=~o));for(let s=o;sn.resource.toString()===e.toString());if(!(r<0)){for(;r{});var AG=N(()=>{IG()});var LG=N(()=>{});var DG=N(()=>{LG()});var jC,MG=N(()=>{DG();Zr();An();Nre();(function(i){function e(t){switch(t){case ig.Ignore:return"severity-ignore "+_t.asClassName(pt.info);case ig.Info:return _t.asClassName(pt.info);case ig.Warning:return _t.asClassName(pt.warning);case ig.Error:return _t.asClassName(pt.error);default:return""}}i.className=e})(jC||(jC={}))});var xbe,Bp,KL,$L,bh,NG,RG,PG,GL,Cbe,WC,Sbe,YL,kbe,Ebe,OG=N(()=>{Ht();N_();mi();ca();ei();ke();Lo();Ni();AG();et();hh();He();J_();Ji();wt();Ut();ey();F_();is();MG();tn();rn();xbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Bp=function(i,e){return function(t,r){e(t,r,i)}},$L=class{constructor(e,t,r,n,o){this._openerService=n,this._labelService=o,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new le,this._editor=t;let s=document.createElement("div");s.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),s.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),s.appendChild(this._relatedBlock),this._disposables.add(To(this._relatedBlock,"click",a=>{a.preventDefault();let l=this._relatedDiagnostics.get(a.target);l&&r(l)})),this._scrollable=new pF(s,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{s.style.left=`-${a.scrollLeft}px`,s.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){ji(this._disposables)}update(e){let{source:t,message:r,relatedInformation:n,code:o}=e,s=((t==null?void 0:t.length)||0)+2;o&&(typeof o=="string"?s+=o.length:s+=o.value.length);let a=hu(r);this._lines=a.length,this._longestLineLength=0;for(let h of a)this._longestLineLength=Math.max(h.length+s,this._longestLineLength);qn(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(let h of a)l=document.createElement("div"),l.innerText=h,h===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||o){let h=document.createElement("span");if(h.classList.add("details"),l.appendChild(h),t){let f=document.createElement("span");f.innerText=t,f.classList.add("source"),h.appendChild(f)}if(o)if(typeof o=="string"){let f=document.createElement("span");f.innerText=`(${o})`,f.classList.add("code"),h.appendChild(f)}else{this._codeLink=Ae("a.code-link"),this._codeLink.setAttribute("href",`${o.target.toString()}`),this._codeLink.onclick=m=>{this._openerService.open(o.target,{allowCommands:!0}),m.preventDefault(),m.stopPropagation()};let f=Te(this._codeLink,Ae("span"));f.innerText=o.value,h.appendChild(this._codeLink)}}if(qn(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Ki(n)){let h=this._relatedBlock.appendChild(document.createElement("div"));h.style.paddingTop=`${Math.floor(this._editor.getOption(65)*.66)}px`,this._lines+=1;for(let f of n){let m=document.createElement("div"),g=document.createElement("a");g.classList.add("filename"),g.innerText=`${this._labelService.getUriBasenameLabel(f.resource)}(${f.startLineNumber}, ${f.startColumn}): `,g.title=this._labelService.getUriLabel(f.resource),this._relatedDiagnostics.set(g,f);let w=document.createElement("span");w.innerText=f.message,m.appendChild(g),m.appendChild(w),this._lines+=1,h.appendChild(m)}}let c=this._editor.getOption(49),d=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),u=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:u})}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 Lr.Error:t=b("Error","Error");break;case Lr.Warning:t=b("Warning","Warning");break;case Lr.Info:t=b("Info","Info");break;case Lr.Hint:t=b("Hint","Hint");break}let r=b("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn),n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(r=`${n.getLineContent(e.startLineNumber)}, ${r}`),r}},bh=KL=class extends Np{constructor(e,t,r,n,o,s,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},o),this._themeService=t,this._openerService=r,this._menuService=n,this._contextKeyService=s,this._labelService=a,this._callOnDispose=new le,this._onDidSelectRelatedInformation=new Je,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=Lr.Warning,this._backgroundColor=vt.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Ebe);let t=GL,r=Cbe;this._severity===Lr.Warning?(t=WC,r=Sbe):this._severity===Lr.Info&&(t=YL,r=kbe);let n=e.getColor(t),o=e.getColor(r);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:o,primaryHeadingColor:e.getColor(mC),secondaryHeadingColor:e.getColor(gC)})}_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()));let t=[],r=this._menuService.createMenu(KL.TitleMenu,this._contextKeyService);Q_(r,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),r.dispose()}_fillTitleIcon(e){this._icon=Te(e,Ae(""))}_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 $L(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,r){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());let n=B.lift(e),o=this.editor.getPosition(),s=o&&n.containsPosition(o)?o:n.getStartPosition();super.show(s,this.computeRequiredHeight());let a=this.editor.getModel();if(a){let l=r>1?b("problems","{0} of {1} problems",t,r):b("change","{0} of {1} problem",t,r);this.setTitle(Dn(a.uri),l)}this._icon.className=`codicon ${jC.className(Lr.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(s,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()}};bh.TitleMenu=new Me("gotoErrorTitleMenu");bh=KL=xbe([Bp(1,br),Bp(2,tr),Bp(3,Ss),Bp(4,Ke),Bp(5,it),Bp(6,Tl)],bh);NG=__(mO,gO),RG=__(bO,vO),PG=__(jm,_O),GL=je("editorMarkerNavigationError.background",{dark:NG,light:NG,hcDark:ts,hcLight:ts},b("editorMarkerNavigationError","Editor marker navigation widget error color.")),Cbe=je("editorMarkerNavigationError.headerBackground",{dark:Nn(GL,.1),light:Nn(GL,.1),hcDark:null,hcLight:null},b("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),WC=je("editorMarkerNavigationWarning.background",{dark:RG,light:RG,hcDark:ts,hcLight:ts},b("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Sbe=je("editorMarkerNavigationWarning.headerBackground",{dark:Nn(WC,.1),light:Nn(WC,.1),hcDark:"#0C141F",hcLight:Nn(WC,.2)},b("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),YL=je("editorMarkerNavigationInfo.background",{dark:PG,light:PG,hcDark:ts,hcLight:ts},b("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),kbe=je("editorMarkerNavigationInfo.headerBackground",{dark:Nn(YL,.1),light:Nn(YL,.1),hcDark:null,hcLight:null},b("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Ebe=je("editorMarkerNavigation.background",{dark:Wm,light:Wm,hcDark:Wm,hcLight:Wm},b("editorMarkerNavigationBackground","Editor marker navigation widget background."))});var Tbe,VC,FG,n1,hc,Hp,vh,o1,XL,QL,zG,Ibe,qC=N(()=>{Zr();ke();lt();In();di();et();ti();TG();He();Ji();wt();Ut();Sl();OG();Tbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},VC=function(i,e){return function(t,r){e(t,r,i)}},FG=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},hc=n1=class{static get(e){return e.getContribution(n1.ID)}constructor(e,t,r,n,o){this._markerNavigationService=t,this._contextKeyService=r,this._editorService=n,this._instantiationService=o,this._sessionDispoables=new le,this._editor=e,this._widgetVisible=zG.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(bh,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(r=>{var n,o,s;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!B.containsPosition((o=this._model)===null||o===void 0?void 0:o.selected.marker,r.position))&&((s=this._model)===null||s===void 0||s.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;let r=this._model.find(this._editor.getModel().uri,this._widget.position);r?this._widget.updateMarker(r.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(r=>{this._editorService.openCodeEditor({resource:r.resource,options:{pinned:!0,revealIfOpened:!0,selection:B.lift(r).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()){let t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new Ie(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var r,n;return FG(this,void 0,void 0,function*(){if(this._editor.hasModel()){let o=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(o.move(e,this._editor.getModel(),this._editor.getPosition()),!o.selected)return;if(o.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();let s=yield this._editorService.openCodeEditor({resource:o.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:o.selected.marker}},this._editor);s&&((r=n1.get(s))===null||r===void 0||r.close(),(n=n1.get(s))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(o.selected.marker,o.selected.index,o.selected.total)}})}};hc.ID="editor.contrib.markerController";hc=n1=Tbe([VC(1,qL),VC(2,it),VC(3,ai),VC(4,Ke)],hc);Hp=class extends de{constructor(e,t,r){super(r),this._next=e,this._multiFile=t}run(e,t){var r;return FG(this,void 0,void 0,function*(){t.hasModel()&&((r=hc.get(t))===null||r===void 0||r.nagivate(this._next,this._multiFile))})}},vh=class i extends Hp{constructor(){super(!0,!1,{id:i.ID,label:i.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:578,weight:100},menuOpts:{menuId:bh.TitleMenu,title:i.LABEL,icon:Pi("marker-navigation-next",pt.arrowDown,b("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}};vh.ID="editor.action.marker.next";vh.LABEL=b("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");o1=class i extends Hp{constructor(){super(!1,!1,{id:i.ID,label:i.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:1602,weight:100},menuOpts:{menuId:bh.TitleMenu,title:i.LABEL,icon:Pi("marker-navigation-previous",pt.arrowUp,b("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}};o1.ID="editor.action.marker.prev";o1.LABEL=b("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");XL=class extends Hp{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:b("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:F.focus,primary:66,weight:100},menuOpts:{menuId:Me.MenubarGoMenu,title:b({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}},QL=class extends Hp{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:b("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:F.focus,primary:1090,weight:100},menuOpts:{menuId:Me.MenubarGoMenu,title:b({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}};Ue(hc.ID,hc,4);ee(vh);ee(o1);ee(XL);ee(QL);zG=new ht("markersNavigationVisible",!1),Ibe=Fi.bindToContribution(hc.get);We(new Ibe({id:"closeMarkersNavigation",precondition:zG,handler:i=>i.close(),kbOpts:{weight:100+50,kbExpr:F.focus,primary:9,secondary:[1033]}}))});var BG=N(()=>{});var HG=N(()=>{BG()});function UG(i,e){return i&&e?b("acessibleViewHint","Inspect this in the accessible view with {0}.",e):i?b("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}var KC,Up,$C,ZL=N(()=>{Ht();Z9();N_();ke();HG();He();KC=Ae,Up=class extends ce{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Cf(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}},$C=class i extends ce{static render(e,t,r){return new i(e,t,r)}constructor(e,t,r){super(),this.actionContainer=Te(e,KC("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=Te(this.actionContainer,KC("a.action")),this.action.setAttribute("role","button"),t.iconClass&&Te(this.action,KC(`span.icon.${t.iconClass}`));let n=Te(this.action,KC("span"));n.textContent=r?`${t.label} (${r})`:t.label,this._register(Lt(this.actionContainer,bi.CLICK,o=>{o.stopPropagation(),o.preventDefault(),t.run(this.actionContainer)})),this._register(Lt(this.actionContainer,bi.KEY_DOWN,o=>{let s=new Wv(o);(s.equals(3)||s.equals(10))&&(o.stopPropagation(),o.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}});var Abe,Lbe,JL,jp,e8=N(()=>{jt();qt();ei();ke();Abe=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Lbe=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=i[o]&&function(s){return new Promise(function(a,l){s=i[o](s),n(a,l,s.done,s.value)})}}function n(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}},JL=class{constructor(e,t,r){this.value=e,this.isComplete=t,this.hasLoadingMessage=r}},jp=class extends ce{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new Je),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new ui(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new ui(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new ui(()=>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(59).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=iO(e=>this._computer.computeAsync(e)),Abe(this,void 0,void 0,function*(){var e,t,r,n;try{try{for(var o=!0,s=Lbe(this._asyncIterable),a;a=yield s.next(),e=a.done,!e;o=!0){n=a.value,o=!1;let l=n;l&&(this._result.push(l),this._fireResult())}}catch(l){t={error:l}}finally{try{!o&&!e&&(r=s.return)&&(yield r.call(s))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(l){ft(l)}})):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;let e=this._state===0,t=this._state===4;this._onResult.fire(new JL(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)}}});var Dbe,Mbe,GC,jG=N(()=>{Z2();ke();di();Ht();Dbe=30,Mbe=24,GC=class extends ce{constructor(e,t=new Qt(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new Od),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=Qt.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize(r=>{this._resize(new Qt(r.dimension.width,r.dimension.height)),r.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?Ie.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){let t=this._editor.getDomNode(),r=this._editor.getScrolledVisiblePosition(e);return!t||!r?void 0:Zi(t).top+r.top-Dbe}_availableVerticalSpaceBelow(e){let t=this._editor.getDomNode(),r=this._editor.getScrolledVisiblePosition(e);if(!t||!r)return;let n=Zi(t),o=Oc(document.body),s=n.top+r.top+r.height;return o.height-s-Mbe}_findPositionPreference(e,t){var r,n;let o=Math.min((r=this._availableVerticalSpaceBelow(t))!==null&&r!==void 0?r:1/0,e),s=Math.min((n=this._availableVerticalSpaceAbove(t))!==null&&n!==void 0?n:1/0,e),a=Math.min(Math.max(s,o),e),l=Math.min(e,a),c;return this._editor.getOption(59).above?c=l<=s?1:2:c=l<=o?2:1,c===1?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),c}_resize(e){this._resizableNode.layout(e.height,e.width)}}});function qG(i,e,t,r,n,o){let s=t+n/2,a=r+o/2,l=Math.max(Math.abs(i-s)-n/2,0),c=Math.max(Math.abs(e-a)-o/2,0);return Math.sqrt(l*l+c*c)}var o8,_h,YC,Za,WG,s1,XC,i8,r8,VG,t8,Nbe,fc,a1,n8,s8=N(()=>{Ht();ZL();mi();ke();di();et();Ur();fn();e8();rc();Ut();jr();jt();ti();wt();jG();Sr();X_();o8=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_h=function(i,e){return function(t,r){e(t,r,i)}},WG=Ae,s1=YC=class extends ce{constructor(e,t,r){super(),this._editor=e,this._instantiationService=t,this._keybindingService=r,this._currentResult=null,this._widget=this._register(this._instantiationService.createInstance(fc,this._editor)),this._participants=[];for(let n of Uo.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,o)=>n.hoverOrdinal-o.hoverOrdinal),this._computer=new n8(this._editor,this._participants),this._hoverOperation=this._register(new jp(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{if(!this._computer.anchor)return;let o=n.hasLoadingMessage?this._addLoadingMessage(n.value):n.value;this._withResult(new XC(this._computer.anchor,o,n.isComplete))})),this._register(To(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(_f.onDidChange(()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)}))}get widget(){return this._widget}maybeShowAt(e){if(this._widget.isResizing)return!0;let t=[];for(let n of this._participants)if(n.suggestHoverAnchor){let o=n.suggestHoverAnchor(e);o&&t.push(o)}let r=e.target;if(r.type===6&&t.push(new bp(0,r.range,e.event.posx,e.event.posy)),r.type===7){let n=this._editor.getOption(49).typicalHalfwidthCharacterWidth/2;!r.detail.isAfterLines&&typeof r.detail.horizontalDistanceToText=="number"&&r.detail.horizontalDistanceToTexto.priority-n.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,r,n){this._startShowingOrUpdateHover(new bp(0,e,void 0,void 0),t,r,n,null)}_startShowingOrUpdateHover(e,t,r,n,o){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,r,n,!1),!0):!1:this._editor.getOption(59).sticky&&o&&this._widget.isMouseGettingCloser(o.event.posx,o.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,r,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,r,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,r,n,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,r,n,o){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=r,this._computer.insistOnKeepingHoverVisible=o,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())}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}containsNode(e){return e?this._widget.getDomNode().contains(e):!1}_addLoadingMessage(e){if(this._computer.anchor){for(let t of this._participants)if(t.createLoadingMessage){let r=t.createLoadingMessage(this._computer.anchor);if(r)return e.slice(0).concat([r])}}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){let{showAtPosition:r,showAtSecondaryPosition:n,highlightRange:o}=YC.computeHoverRanges(this._editor,e.range,t),s=new le,a=s.add(new a1(this._keybindingService)),l=document.createDocumentFragment(),c=null,d={fragment:l,statusBar:a,setColorPicker:h=>c=h,onContentsChanged:()=>this._widget.onContentsChanged(),setMinimumDimensions:h=>this._widget.setMinimumDimensions(h),hide:()=>this.hide()};for(let h of this._participants){let f=t.filter(m=>m.owner===h);f.length>0&&s.add(h.renderHoverParts(d,f))}let u=t.some(h=>h.isBeforeContent);if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(o){let h=this._editor.createDecorationsCollection();h.set([{range:o,options:YC._DECORATION_OPTIONS}]),s.add(ri(()=>{h.clear()}))}this._widget.showAt(l,new r8(c,r,n,this._editor.getOption(59).above,this._computer.shouldFocus,this._computer.source,u,e.initialMousePosX,e.initialMousePosY,s))}else s.dispose()}static computeHoverRanges(e,t,r){let n=1;if(e.hasModel()){let c=e._getViewModel(),d=c.coordinatesConverter,u=d.convertModelRangeToViewRange(t),h=new Ie(u.startLineNumber,c.getLineMinColumn(u.startLineNumber));n=d.convertViewPositionToModelPosition(h).column}let o=t.startLineNumber,s=t.startColumn,a=r[0].range,l=null;for(let c of r)a=B.plusRange(a,c.range),c.range.startLineNumber===o&&c.range.endLineNumber===o&&(s=Math.max(Math.min(s,c.range.startColumn),n)),c.forceShowAtRange&&(l=c.range);return{showAtPosition:l?l.getStartPosition():new Ie(o,t.startColumn),showAtSecondaryPosition:l?l.getStartPosition():new Ie(o,s),highlightRange:a}}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()}};s1._DECORATION_OPTIONS=mt.register({description:"content-hover-highlight",className:"hoverHighlight"});s1=YC=o8([_h(1,Ke),_h(2,Kt)],s1);XC=class{constructor(e,t,r){this.anchor=e,this.messages=t,this.isComplete=r}filter(e){let t=this.messages.filter(r=>r.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new i8(this,this.anchor,t,this.isComplete)}},i8=class extends XC{constructor(e,t,r,n){super(t,r,n),this.original=e}filter(e){return this.original.filter(e)}},r8=class{constructor(e,t,r,n,o,s,a,l,c,d){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=r,this.preferAbove=n,this.stoleFocus=o,this.source=s,this.isBeforeContent=a,this.initialMousePosX=l,this.initialMousePosY=c,this.disposables=d,this.closestMouseDistance=void 0}},VG=30,t8=10,Nbe=6,fc=Za=class extends GC{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,r,n,o){let s=e.getOption(65)+8,a=150,l=new Qt(a,s);super(e,l),this._configurationService=r,this._accessibilityService=n,this._keybindingService=o,this._hover=this._register(new Up),this._minimumSize=l,this._hoverVisibleKey=F.hoverVisible.bindTo(t),this._hoverFocusedKey=F.hoverFocused.bindTo(t),Te(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(d=>{d.hasChanged(49)&&this._updateFont()}));let c=this._register(xs(this._resizableNode.domNode));this._register(c.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(c.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setHoverData(void 0),this._layout(),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 Za.ID}static _applyDimensions(e,t,r){let n=typeof t=="number"?`${t}px`:t,o=typeof r=="number"?`${r}px`:r;e.style.width=n,e.style.height=o}_setContentsDomNodeDimensions(e,t){let r=this._hover.contentsDomNode;return Za._applyDimensions(r,e,t)}_setContainerDomNodeDimensions(e,t){let r=this._hover.containerDomNode;return Za._applyDimensions(r,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,r){let n=typeof t=="number"?`${t}px`:t,o=typeof r=="number"?`${r}px`:r;e.style.maxWidth=n,e.style.maxHeight=o}_setHoverWidgetMaxDimensions(e,t){Za._applyMaxDimensions(this._hover.contentsDomNode,e,t),Za._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth",typeof e=="number"?`${e}px`:e),this._layoutContentWidget()}_hasHorizontalScrollbar(){let e=this._hover.scrollbar.getScrollDimensions();return e.scrollWidth>e.width}_adjustContentsBottomPadding(){let e=this._hover.contentsDomNode,t=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;e.style.paddingBottom!==t&&(e.style.paddingBottom=t)}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");let t=e.width,r=e.height;this._setHoverWidgetDimensions(t,r),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._setContentsDomNodeDimensions(t,r-t8))}_updateResizableNodeMaxDimensions(){var e,t;let r=(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 Qt(r,n),this._setHoverWidgetMaxDimensions(r,n)}_resize(e){var t,r;Za._lastDimensions=new Qt(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),(r=(t=this._visibleData)===null||t===void 0?void 0:t.colorPicker)===null||r===void 0||r.layout()}_findAvailableSpaceVertically(){var e;let 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(){let e=this._findAvailableSpaceVertically();if(!e)return;let t=Nbe;return Array.from(this._hover.contentsDomNode.children).forEach(r=>{t+=r.clientHeight}),this._hasHorizontalScrollbar()&&(t+=t8),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");let 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;let e=this._isHoverTextOverflowing(),t=typeof this._contentWidth=="undefined"?0:this._contentWidth-2;return e||this._hover.containerDomNode.clientWidththis._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)}_layout(){let{fontSize:e,lineHeight:t}=this._editor.getOption(49),r=this._hover.contentsDomNode;r.style.fontSize=`${e}px`,r.style.lineHeight=`${t/e}`,this._updateMaxDimensions()}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_updateContent(e){let t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){let e=Math.max(this._editor.getLayoutInfo().height/4,250,Za._lastDimensions.height),t=Math.max(this._editor.getLayoutInfo().width*.66,500,Za._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 r,n,o,s;if(!this._editor||!this._editor.hasModel())return;this._render(e,t);let a=Mm(this._hover.containerDomNode),l=t.showAtPosition;this._positionPreference=(r=this._findPositionPreference(a,l))!==null&&r!==void 0?r:1,this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(n=t.colorPicker)===null||n===void 0||n.layout();let c=UG(this._configurationService.getValue("accessibility.verbosity.hover")===!0&&this._accessibilityService.isScreenReaderOptimized(),(s=(o=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))===null||o===void 0?void 0:o.getAriaLabel())!==null&&s!==void 0?s:"");c&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+c)}hide(){if(!this._visibleData)return;let e=this._visibleData.stoleFocus||this._hoverFocusedKey.get();this._setHoverData(void 0),this._resizableNode.maxSize=new Qt(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){let e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}_adjustHoverHeightForScrollbar(e){var t;let r=this._hover.containerDomNode,n=this._hover.contentsDomNode,o=(t=this._findMaximumRenderingHeight())!==null&&t!==void 0?t:1/0;this._setContainerDomNodeDimensions(Kn(r),Math.min(o,e)),this._setContentsDomNodeDimensions(Kn(n),Math.min(o,e-t8))}setMinimumDimensions(e){this._minimumSize=new Qt(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){let e=typeof this._contentWidth=="undefined"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new Qt(e,this._minimumSize.height)}onContentsChanged(){var e;this._removeConstraintsRenderNormally();let t=this._hover.containerDomNode,r=Mm(t),n=Kn(t);if(this._resizableNode.layout(r,n),this._setHoverWidgetDimensions(n,r),r=Mm(t),n=Kn(t),this._contentWidth=n,this._updateMinimumWidth(),this._resizableNode.layout(r,n),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._adjustHoverHeightForScrollbar(r)),!((e=this._visibleData)===null||e===void 0)&&e.showAtPosition){let o=Mm(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(o,this._visibleData.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(49);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(49);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){let e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-VG})}scrollRight(){let e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+VG})}pageUp(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){let 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})}};fc.ID="editor.contrib.resizableContentHoverWidget";fc._lastDimensions=new Qt(0,0);fc=Za=o8([_h(1,it),_h(2,Mt),_h(3,kf),_h(4,Kt)],fc);a1=class extends ce{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=WG("div.hover-row.status-bar"),this.actionsElement=Te(this.hoverElement,WG("div.actions"))}addAction(e){let t=this._keybindingService.lookupKeybinding(e.commandId),r=t?t.getLabel():null;return this._hasContent=!0,this._register($C.render(this.actionsElement,e,r))}append(e){let t=Te(this.actionsElement,e);return this._hasContent=!0,t}};a1=o8([_h(0,Kt)],a1);n8=class i{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[];let r=e.getModel(),n=t.range.startLineNumber;if(n>r.getLineCount())return[];let o=r.getLineMaxColumn(n);return e.getLineDecorations(n).filter(s=>{if(s.options.isWholeLine)return!0;let a=s.range.startLineNumber===n?s.range.startColumn:1,l=s.range.endLineNumber===n?s.range.endColumn:o;if(s.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){let t=this._anchor;if(!this._editor.hasModel()||!t)return Mn.EMPTY;let r=i._getLineDecorations(this._editor,t);return Mn.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,r,e):Mn.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];let e=i._getLineDecorations(this._editor,this._anchor),t=[];for(let r of this._participants)t=t.concat(r.computeSync(this._anchor,e));return hn(t)}}});var KG,yh,a8,$G=N(()=>{Ht();mi();Es();ke();kd();e8();ZL();KG=Ae,yh=class i extends ce{constructor(e,t,r){super(),this._renderDisposeables=this._register(new le),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new Up),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new to({editor:this._editor},t,r)),this._computer=new a8(this._editor),this._hoverOperation=this._register(new jp(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(49)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return i.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))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,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();let r=document.createDocumentFragment();for(let n of t){let o=KG("div.hover-row.markdown-hover"),s=Te(o,KG("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));s.appendChild(a.element),r.appendChild(o)}this._updateContents(r),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));let t=this._editor.getLayoutInfo(),r=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),o=this._editor.getOption(65),s=this._hover.containerDomNode.clientHeight,a=r-n-(s-o)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}};yh.ID="editor.contrib.modesGlyphHoverWidget";a8=class{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){let e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),r=[];if(!t)return r;for(let n of t){if(!n.options.glyphMarginClassName)continue;let o=n.options.glyphMarginHoverMessage;!o||Wc(o)||r.push(...t_(o).map(e))}return r}}});function Pbe(i,e,t,r,n){return Rbe(this,void 0,void 0,function*(){try{let o=yield Promise.resolve(i.provideHover(t,r,n));if(o&&Fbe(o))return new l8(i,o,e)}catch(o){Xt(o)}})}function l1(i,e,t,r){let o=i.ordered(e).map((s,a)=>Pbe(s,a,e,t,r));return Mn.fromPromises(o).coalesce()}function Obe(i,e,t,r){return l1(i,e,t,r).map(n=>n.hover).toPromise()}function Fbe(i){let e=typeof i.range!="undefined",t=typeof i.contents!="undefined"&&i.contents&&i.contents.length>0;return e&&t}var Rbe,l8,c8=N(()=>{jt();ki();qt();lt();Pt();Rbe=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},l8=class{constructor(e,t,r){this.provider=e,this.hover=t,this.ordinal=r}};$n("_executeHoverProvider",(i,e,t)=>{let r=i.get(Se);return Obe(r.hoverProvider,e,t,st.None)})});function d8(i,e,t,r,n){e.sort((s,a)=>s.ordinal-a.ordinal);let o=new le;for(let s of e)for(let a of s.contents){if(Wc(a))continue;let l=GG("div.hover-row.markdown-hover"),c=Te(l,GG("div.hover-contents")),d=o.add(new to({editor:t},r,n));o.add(d.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",i.onContentsChanged()}));let u=o.add(d.render(a));c.appendChild(u.element),i.fragment.appendChild(l)}return o}var zbe,QC,GG,ro,Wp,ZC=N(()=>{Ht();mi();jt();Es();ke();kd();di();et();es();c8();He();Sr();is();Pt();zbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},QC=function(i,e){return function(t,r){e(t,r,i)}},GG=Ae,ro=class{constructor(e,t,r,n,o){this.owner=e,this.range=t,this.contents=r,this.isBeforeContent=n,this.ordinal=o}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},Wp=class{constructor(e,t,r,n,o){this._editor=e,this._languageService=t,this._openerService=r,this._configurationService=n,this._languageFeaturesService=o,this.hoverOrdinal=3}createLoadingMessage(e){return new ro(this,e.range,[new $i().appendText(b("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];let r=this._editor.getModel(),n=e.range.startLineNumber,o=r.getLineMaxColumn(n),s=[],a=1e3,l=r.getLineLength(n),c=r.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),d=this._editor.getOption(115),u=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c}),h=!1;d>=0&&l>d&&e.range.startColumn>=d&&(h=!0,s.push(new ro(this,e.range,[{value:b("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!h&&typeof u=="number"&&l>=u&&s.push(new ro(this,e.range,[{value:b("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let f=!1;for(let m of t){let g=m.range.startLineNumber===n?m.range.startColumn:1,w=m.range.endLineNumber===n?m.range.endColumn:o,_=m.options.hoverMessage;if(!_||Wc(_))continue;m.options.beforeContentClassName&&(f=!0);let E=new B(e.range.startLineNumber,g,e.range.startLineNumber,w);s.push(new ro(this,E,t_(_),f,a++))}return s}computeAsync(e,t,r){if(!this._editor.hasModel()||e.type!==1)return Mn.EMPTY;let n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return Mn.EMPTY;let o=new Ie(e.range.startLineNumber,e.range.startColumn);return l1(this._languageFeaturesService.hoverProvider,n,o,r).filter(s=>!Wc(s.hover.contents)).map(s=>{let a=s.hover.range?B.lift(s.hover.range):e.range;return new ro(this,a,s.hover.contents,!1,s.ordinal)})}renderHoverParts(e,t){return d8(e,t,this._editor,this._languageService,this._openerService)}};Wp=zbe([QC(1,er),QC(2,tr),QC(3,Mt),QC(4,Se)],Wp)});var Bbe,u8,gs,h8,YG,JC,XG=N(()=>{Ht();mi();jt();qt();ke();Lo();et();Pt();Zre();Ku();Fx();Sd();qC();He();F_();is();$c();Bbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},u8=function(i,e){return function(t,r){e(t,r,i)}},gs=Ae,h8=class{constructor(e,t,r){this.owner=e,this.range=t,this.marker=r}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},YG={type:1,filter:{include:nt.QuickFix},triggerAction:Vr.QuickFixHover},JC=class{constructor(e,t,r,n){this._editor=e,this._markerDecorationsService=t,this._openerService=r,this._languageFeaturesService=n,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];let r=this._editor.getModel(),n=e.range.startLineNumber,o=r.getLineMaxColumn(n),s=[];for(let a of t){let l=a.range.startLineNumber===n?a.range.startColumn:1,c=a.range.endLineNumber===n?a.range.endColumn:o,d=this._markerDecorationsService.getMarker(r.uri,a);if(!d)continue;let u=new B(e.range.startLineNumber,l,e.range.startLineNumber,c);s.push(new h8(this,u,d))}return s}renderHoverParts(e,t){if(!t.length)return ce.None;let r=new le;t.forEach(o=>e.fragment.appendChild(this.renderMarkerHover(o,r)));let n=t.length===1?t[0]:t.sort((o,s)=>Lr.compare(o.marker.severity,s.marker.severity))[0];return this.renderMarkerStatusbar(e,n,r),r}renderMarkerHover(e,t){let r=gs("div.hover-row"),n=Te(r,gs("div.marker.hover-contents")),{source:o,message:s,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);let c=Te(n,gs("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=s,o||a)if(a&&typeof a!="string"){let d=gs("span");if(o){let m=Te(d,gs("span"));m.innerText=o}let u=Te(d,gs("a.code-link"));u.setAttribute("href",a.target.toString()),t.add(Lt(u,"click",m=>{this._openerService.open(a.target,{allowCommands:!0}),m.preventDefault(),m.stopPropagation()}));let h=Te(u,gs("span"));h.innerText=a.value;let f=Te(n,d);f.style.opacity="0.6",f.style.paddingLeft="6px"}else{let d=Te(n,gs("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=o&&a?`${o}(${a})`:o||`(${a})`}if(Ki(l))for(let{message:d,resource:u,startLineNumber:h,startColumn:f}of l){let m=Te(n,gs("div"));m.style.marginTop="8px";let g=Te(m,gs("a"));g.innerText=`${Dn(u)}(${h}, ${f}): `,g.style.cursor="pointer",t.add(Lt(g,"click",_=>{_.stopPropagation(),_.preventDefault(),this._openerService&&this._openerService.open(u,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:h,startColumn:f}}}).catch(ft)}));let w=Te(m,gs("span"));w.innerText=d,this._editor.applyFontInfo(w)}return r}renderMarkerStatusbar(e,t,r){if((t.marker.severity===Lr.Error||t.marker.severity===Lr.Warning||t.marker.severity===Lr.Info)&&e.statusBar.addAction({label:b("view problem","View Problem"),commandId:vh.ID,run:()=>{var n;e.hide(),(n=hc.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(89)){let n=e.statusBar.append(gs("div"));this.recentMarkerCodeActionsInfo&&(fk.makeKey(this.recentMarkerCodeActionsInfo.marker)===fk.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=b("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);let o=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?ce.None:r.add(ml(()=>n.textContent=b("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=String.fromCharCode(160));let s=this.getCodeActions(t.marker);r.add(ri(()=>s.cancel())),s.then(a=>{if(o.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=b("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;r.add(ri(()=>{l||a.dispose()})),e.statusBar.addAction({label:b("quick fixes","Quick Fix..."),commandId:tp,run:c=>{l=!0;let d=Ha.get(this._editor),u=Zi(c);e.hide(),d==null||d.showCodeActions(YG,a,{x:u.left,y:u.top,width:u.width,height:u.height})}})},ft)}}getCodeActions(e){return Jt(t=>A0(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new B(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),YG,ba.None,t))}};JC=Bbe([u8(1,ZF),u8(2,tr),u8(3,Se)],JC)});var QG=N(()=>{});var ZG=N(()=>{QG()});var Hbe,eS,f8,tS,yn,p8,m8,g8,b8,v8,_8,y8,w8,x8,C8,iS=N(()=>{ll();ke();lt();et();ti();es();BC();s8();$G();Ut();is();tn();rn();rc();ZC();XG();B2();jr();He();ZG();Hbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},eS=function(i,e){return function(t,r){e(t,r,i)}},tS=!1,yn=f8=class{static get(e){return e.getContribution(f8.ID)}constructor(e,t,r,n,o){this._editor=e,this._instantiationService=t,this._openerService=r,this._languageService=n,this._keybindingService=o,this._toUnhook=new le,this._hoverActivatedByColorDecoratorClick=!1,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(s=>{s.hasChanged(59)&&(this._unhookEvents(),this._hookEvents())})}_hookEvents(){let e=()=>this._hideWidgets(),t=this._editor.getOption(59);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(r=>this._onEditorMouseDown(r))),this._toUnhook.add(this._editor.onMouseUp(r=>this._onEditorMouseUp(r))),this._toUnhook.add(this._editor.onMouseMove(r=>this._onEditorMouseMove(r))),this._toUnhook.add(this._editor.onKeyDown(r=>this._onKeyDown(r)))):(this._toUnhook.add(this._editor.onMouseMove(r=>this._onEditorMouseMove(r))),this._toUnhook.add(this._editor.onKeyDown(r=>this._onKeyDown(r)))),this._toUnhook.add(this._editor.onMouseLeave(r=>this._onEditorMouseLeave(r))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(r=>this._onEditorScrollChanged(r)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){var t;this._isMouseDown=!0;let r=e.target;if(r.type===9&&r.detail===fc.ID){this._hoverClicked=!0;return}r.type===12&&r.detail===yh.ID||(r.type!==12&&(this._hoverClicked=!1),!((t=this._contentWidget)===null||t===void 0)&&t.widget.isResizing||this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t,r;let n=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.widget.isResizing||!((r=this._contentWidget)===null||r===void 0)&&r.containsNode(n)||tS||this._hideWidgets()}_onEditorMouseMove(e){var t,r,n,o,s,a,l,c,d,u,h;let f=e.target;if(!((t=this._contentWidget)===null||t===void 0)&&t.isFocused||!((r=this._contentWidget)===null||r===void 0)&&r.isResizing||this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&f.type===9&&f.detail===fc.ID||this._isHoverSticky&&(!((n=this._contentWidget)===null||n===void 0)&&n.containsNode((o=e.event.browserEvent.view)===null||o===void 0?void 0:o.document.activeElement))&&!(!((a=(s=e.event.browserEvent.view)===null||s===void 0?void 0:s.getSelection())===null||a===void 0)&&a.isCollapsed)||!this._isHoverSticky&&f.type===9&&f.detail===fc.ID&&(!((l=this._contentWidget)===null||l===void 0)&&l.isColorPickerVisible)||this._isHoverSticky&&f.type===12&&f.detail===yh.ID||this._isHoverSticky&&(!((c=this._contentWidget)===null||c===void 0)&&c.isVisibleFromKeyboard))return;let m=(d=f.element)===null||d===void 0?void 0:d.classList.contains("colorpicker-color-decoration"),g=this._editor.getOption(145);if(m&&(g==="click"&&!this._hoverActivatedByColorDecoratorClick||g==="hover"&&!this._isHoverEnabled&&!tS||g==="clickAndHover"&&!this._isHoverEnabled&&!this._hoverActivatedByColorDecoratorClick)||!m&&!this._isHoverEnabled&&!this._hoverActivatedByColorDecoratorClick){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(u=this._glyphWidget)===null||u===void 0||u.hide();return}if(f.type===2&&f.position){(h=this._contentWidget)===null||h===void 0||h.hide(),this._glyphWidget||(this._glyphWidget=new yh(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(f.position.lineNumber);return}tS||this._hideWidgets()}_onKeyDown(e){var t;if(!this._editor.hasModel())return;let r=this._keybindingService.softDispatch(e,this._editor.getDomNode()),n=r.kind===1||r.kind===2&&r.commandId==="editor.action.showHover"&&((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,r;tS||this._isMouseDown&&this._hoverClicked&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible)||qs.dropDownVisible||(this._hoverActivatedByColorDecoratorClick=!1,this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(r=this._contentWidget)===null||r===void 0||r.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(s1,this._editor)),this._contentWidget}showContentHover(e,t,r,n,o=!1){this._hoverActivatedByColorDecoratorClick=o,this._getOrCreateContentWidget().startShowingAtRange(e,t,r,n)}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;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};yn.ID="editor.contrib.hover";yn=f8=Hbe([eS(1,Ke),eS(2,tr),eS(3,er),eS(4,Kt)],yn);p8=class extends de{constructor(){super({id:"editor.action.showHover",label:b({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.","If the hover is already visible, it will take focus."]},"Show or Focus Hover"),description:{description:"Show or Focus Hover",args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if when triggered with the keyboard, the hover should take focus immediately.",type:"boolean",default:!1}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2087),weight:100}})}run(e,t,r){if(!t.hasModel())return;let n=yn.get(t);if(!n)return;let o=t.getPosition(),s=new B(o.lineNumber,o.column,o.lineNumber,o.column),a=t.getOption(2)===2||!!(r!=null&&r.focus);n.isHoverVisible?n.focus():n.showContentHover(s,1,1,a)}},m8=class extends de{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:b({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})}run(e,t){let r=yn.get(t);if(!r)return;let n=t.getPosition();if(!n)return;let o=new B(n.lineNumber,n.column,n.lineNumber,n.column),s=Ud.get(t);if(!s)return;s.startFindDefinitionFromCursor(n).then(()=>{r.showContentHover(o,1,1,!0)})}},g8=class extends de{constructor(){super({id:"editor.action.scrollUpHover",label:b({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:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:16,weight:100}})}run(e,t){let r=yn.get(t);r&&r.scrollUp()}},b8=class extends de{constructor(){super({id:"editor.action.scrollDownHover",label:b({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:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:18,weight:100}})}run(e,t){let r=yn.get(t);r&&r.scrollDown()}},v8=class extends de{constructor(){super({id:"editor.action.scrollLeftHover",label:b({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:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:15,weight:100}})}run(e,t){let r=yn.get(t);r&&r.scrollLeft()}},_8=class extends de{constructor(){super({id:"editor.action.scrollRightHover",label:b({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:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:17,weight:100}})}run(e,t){let r=yn.get(t);r&&r.scrollRight()}},y8=class extends de{constructor(){super({id:"editor.action.pageUpHover",label:b({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:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:11,secondary:[528],weight:100}})}run(e,t){let r=yn.get(t);r&&r.pageUp()}},w8=class extends de{constructor(){super({id:"editor.action.pageDownHover",label:b({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:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:12,secondary:[530],weight:100}})}run(e,t){let r=yn.get(t);r&&r.pageDown()}},x8=class extends de{constructor(){super({id:"editor.action.goToTopHover",label:b({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:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:14,secondary:[2064],weight:100}})}run(e,t){let r=yn.get(t);r&&r.goToTop()}},C8=class extends de{constructor(){super({id:"editor.action.goToBottomHover",label:b({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:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:13,secondary:[2066],weight:100}})}run(e,t){let r=yn.get(t);r&&r.goToBottom()}};Ue(yn.ID,yn,2);ee(p8);ee(m8);ee(g8);ee(b8);ee(v8);ee(_8);ee(y8);ee(w8);ee(x8);ee(C8);Uo.register(Wp);Uo.register(JC);bf((i,e)=>{let t=i.getColor(AO);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)}; }`))})});function wn(i,e){let t=0;for(let r=0;r{});function eY(i,e,t,r,n){if(i.getLineCount()===1&&i.getLineMaxColumn(1)===1)return[];let o=e.getLanguageConfiguration(i.getLanguageId()).indentationRules;if(!o)return[];for(r=Math.min(r,i.getLineCount());t<=r&&o.unIndentedLinePattern;){let w=i.getLineContent(t);if(!o.unIndentedLinePattern.test(w))break;t++}if(t>r-1)return[];let{tabSize:s,indentSize:a,insertSpaces:l}=i.getOptions(),c=(w,_)=>(_=_||1,jc.shiftIndent(w,w.length+_,s,a,l)),d=(w,_)=>(_=_||1,jc.unshiftIndent(w,w.length+_,s,a,l)),u=[],h,f=i.getLineContent(t),m=f;if(n!=null){h=n;let w=qi(f);m=h+f.substring(w.length),o.decreaseIndentPattern&&o.decreaseIndentPattern.test(m)&&(h=d(h),m=h+f.substring(w.length)),f!==m&&u.push(ii.replaceMove(new Qe(t,1,t,w.length+1),q3(h,a,l)))}else h=qi(f);let g=h;o.increaseIndentPattern&&o.increaseIndentPattern.test(m)?(g=c(g),h=c(h)):o.indentNextLinePattern&&o.indentNextLinePattern.test(m)&&(g=c(g)),t++;for(let w=t;w<=r;w++){let _=i.getLineContent(w),E=qi(_),L=g+_.substring(E.length);o.decreaseIndentPattern&&o.decreaseIndentPattern.test(L)&&(g=d(g),h=d(h)),E!==g&&u.push(ii.replaceMove(new Qe(w,1,w,E.length+1),q3(g,a,l))),!(o.unIndentedLinePattern&&o.unIndentedLinePattern.test(_))&&(o.increaseIndentPattern&&o.increaseIndentPattern.test(L)?(h=c(h),g=h):o.indentNextLinePattern&&o.indentNextLinePattern.test(L)?g=c(g):g=h)}return u}function tY(i,e,t,r){if(i.getLineCount()===1&&i.getLineMaxColumn(1)===1)return;let n="";for(let s=0;s{ke();Ni();lt();Z3();_a();et();Ar();ti();Hr();Xo();S8();He();wl();cre();BP();Ube=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},jbe=function(i,e){return function(t,r){e(t,r,i)}};rS=class i extends de{constructor(){super({id:i.ID,label:b("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:F.writable})}run(e,t){let r=t.getModel();if(!r)return;let n=r.getOptions(),o=t.getSelection();if(!o)return;let s=new I8(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),r.updateOptions({insertSpaces:!0})}};rS.ID="editor.action.indentationToSpaces";nS=class i extends de{constructor(){super({id:i.ID,label:b("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:F.writable})}run(e,t){let r=t.getModel();if(!r)return;let n=r.getOptions(),o=t.getSelection();if(!o)return;let s=new A8(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),r.updateOptions({insertSpaces:!1})}};nS.ID="editor.action.indentationToTabs";c1=class extends de{constructor(e,t,r){super(r),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){let r=e.get(nn),n=e.get(Di),o=t.getModel();if(!o)return;let s=n.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget),a=o.getOptions(),l=[1,2,3,4,5,6,7,8].map(d=>({id:d.toString(),label:d.toString(),description:d===s.tabSize&&d===a.tabSize?b("configuredTabSize","Configured Tab Size"):d===s.tabSize?b("defaultTabSize","Default Tab Size"):d===a.tabSize?b("currentTabSize","Current Tab Size"):void 0})),c=Math.min(o.getOptions().tabSize-1,7);setTimeout(()=>{r.pick(l,{placeHolder:b({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:l[c]}).then(d=>{if(d&&o&&!o.isDisposed()){let u=parseInt(d.label,10);this.displaySizeOnly?o.updateOptions({tabSize:u}):o.updateOptions({tabSize:u,indentSize:u,insertSpaces:this.insertSpaces})}})},50)}},oS=class i extends c1{constructor(){super(!1,!1,{id:i.ID,label:b("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}};oS.ID="editor.action.indentUsingTabs";sS=class i extends c1{constructor(){super(!0,!1,{id:i.ID,label:b("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}};sS.ID="editor.action.indentUsingSpaces";aS=class i extends c1{constructor(){super(!0,!0,{id:i.ID,label:b("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0})}};aS.ID="editor.action.changeTabDisplaySize";lS=class i extends de{constructor(){super({id:i.ID,label:b("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){let r=e.get(Di),n=t.getModel();if(!n)return;let o=r.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(o.insertSpaces,o.tabSize)}};lS.ID="editor.action.detectIndentation";k8=class extends de{constructor(){super({id:"editor.action.reindentlines",label:b("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:F.writable})}run(e,t){let r=e.get(Ot),n=t.getModel();if(!n)return;let o=eY(n,r,1,n.getLineCount());o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}},E8=class extends de{constructor(){super({id:"editor.action.reindentselectedlines",label:b("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:F.writable})}run(e,t){let r=e.get(Ot),n=t.getModel();if(!n)return;let o=t.getSelections();if(o===null)return;let s=[];for(let a of o){let l=a.startLineNumber,c=a.endLineNumber;if(l!==c&&a.endColumn===1&&c--,l===1){if(l===c)continue}else l--;let d=eY(n,r,l,c);s.push(...d)}s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}},T8=class{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(let r of e)r.range&&typeof r.text=="string"&&this._edits.push(r)}getEditOperations(e,t){for(let n of this._edits)t.addEditOperation(B.lift(n.range),n.text);let r=!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?(r=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(r=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),r||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}},d1=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new le,this.callOnModel=new le,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(11)<4||this.editor.getOption(54))&&this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)}))}trigger(e){let t=this.editor.getSelections();if(t===null||t.length>1)return;let r=this.editor.getModel();if(!r||!r.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;let n=this.editor.getOption(11),{tabSize:o,indentSize:s,insertSpaces:a}=r.getOptions(),l=[],c={shiftIndent:f=>jc.shiftIndent(f,f.length+1,o,s,a),unshiftIndent:f=>jc.unshiftIndent(f,f.length+1,o,s,a)},d=e.startLineNumber;for(;d<=e.endLineNumber;){if(this.shouldIgnoreLine(r,d)){d++;continue}break}if(d>e.endLineNumber)return;let u=r.getLineContent(d);if(!/\S/.test(u.substring(0,e.startColumn-1))){let f=mu(n,r,r.getLanguageId(),d,c,this._languageConfigurationService);if(f!==null){let m=qi(u),g=wn(f,o),w=wn(m,o);if(g!==w){let _=wh(g,o,a);l.push({range:new B(d,1,d,m.length+1),text:_}),u=_+u.substr(m.length)}else{let _=n_(r,d,this._languageConfigurationService);if(_===0||_===8)return}}}let h=d;for(;dr.tokenization.getLineTokens(g),getLanguageId:()=>r.getLanguageId(),getLanguageIdAtPosition:(g,w)=>r.getLanguageIdAtPosition(g,w)},getLineContent:g=>g===h?u:r.getLineContent(g)},r.getLanguageId(),d+1,c,this._languageConfigurationService);if(m!==null){let g=wn(m,o),w=wn(qi(r.getLineContent(d+1)),o);if(g!==w){let _=g-w;for(let E=d+1;E<=e.endLineNumber;E++){let L=r.getLineContent(E),A=qi(L),U=wn(A,o)+_,Y=wh(U,o,a);Y!==A&&l.push({range:new B(E,1,E,A.length+1),text:Y})}}}}if(l.length>0){this.editor.pushUndoStop();let f=new T8(l,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",f),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);let r=e.getLineFirstNonWhitespaceColumn(t);if(r===0)return!0;let n=e.tokenization.getLineTokens(t);if(n.getCount()>0){let o=n.findTokenIndexAtOffset(r);if(o>=0&&n.getStandardTokenType(o)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};d1.ID="editor.contrib.autoIndentOnPaste";d1=Ube([jbe(1,Ot)],d1);I8=class{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),tY(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}},A8=class{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),tY(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}};Ue(d1.ID,d1,2);ee(rS);ee(nS);ee(oS);ee(sS);ee(aS);ee(lS);ee(k8);ee(E8)});function iY(i){return yt.from({scheme:Eo.command,path:i.id,query:i.arguments&&encodeURIComponent(JSON.stringify(i.arguments))}).toString()}var cS,u1,D8,h1,M8=N(()=>{qt();ke();di();et();Dm();Ir();cS=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},u1=class{constructor(e,t){this.range=e,this.direction=t}},D8=class i{constructor(e,t,r){this.hint=e,this.anchor=t,this.provider=r,this._isResolved=!1}with(e){let t=new i(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}resolve(e){return cS(this,void 0,void 0,function*(){if(typeof this.provider.resolveInlayHint=="function"){if(this._currentResolve)return yield this._currentResolve,e.isCancellationRequested?void 0:this.resolve(e);this._isResolved||(this._currentResolve=this._doResolve(e).finally(()=>this._currentResolve=void 0)),yield this._currentResolve}})}_doResolve(e){var t,r;return cS(this,void 0,void 0,function*(){try{let n=yield Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=(t=n==null?void 0:n.tooltip)!==null&&t!==void 0?t:this.hint.tooltip,this.hint.label=(r=n==null?void 0:n.label)!==null&&r!==void 0?r:this.hint.label,this._isResolved=!0}catch(n){Xt(n),this._isResolved=!1}})}},h1=class i{static create(e,t,r,n){return cS(this,void 0,void 0,function*(){let o=[],s=e.ordered(t).reverse().map(a=>r.map(l=>cS(this,void 0,void 0,function*(){try{let c=yield a.provideInlayHints(t,l,n);c!=null&&c.hints.length&&o.push([c,a])}catch(c){Xt(c)}})));if(yield Promise.all(s.flat()),n.isCancellationRequested||t.isDisposed())throw new Pv;return new i(r,o,t)})}constructor(e,t,r){this._disposables=new le,this.ranges=e,this.provider=new Set;let n=[];for(let[o,s]of t){this._disposables.add(o),this.provider.add(s);for(let a of o.hints){let l=r.validatePosition(a.position),c="before",d=i._getRangeAtPosition(r,l),u;d.getStartPosition().isBefore(l)?(u=B.fromPositions(d.getStartPosition(),l),c="after"):(u=B.fromPositions(l,d.getEndPosition()),c="before"),n.push(new D8(a,new u1(u,c),s))}}this.items=n.sort((o,s)=>Ie.compare(o.hint.position,s.hint.position))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){let r=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new B(r,n.startColumn,r,n.endColumn);e.tokenization.tokenizeIfCheap(r);let o=e.tokenization.getLineTokens(r),s=t.column-1,a=o.findTokenIndexAtOffset(s),l=o.getStartOffset(a),c=o.getEndOffset(a);return c-l===1&&(l===s&&a>1?(l=o.getStartOffset(a-1),c=o.getEndOffset(a-1)):c===s&&axP(m)?m.command.id:Td()));for(let m of ms.all())h.has(m.desc.id)&&u.push(new Qo(m.desc.id,na.label(m.desc,{renderShortTitle:!0}),void 0,!0,()=>f1(this,void 0,void 0,function*(){let g=yield o.createModelReference(d.uri);try{let w=new gh(g.object.textEditorModel,B.getStartPosition(d.range)),_=r.item.anchor.range;yield l.invokeFunction(m.runEditorCommand.bind(m),e,w,_)}finally{g.dispose()}})));if(r.part.command){let{command:m}=r.part;u.push(new Cs),u.push(new Qo(m.id,m.title,void 0,!0,()=>f1(this,void 0,void 0,function*(){var g;try{yield a.executeCommand(m.id,...(g=m.arguments)!==null&&g!==void 0?g:[])}catch(w){c.notify({severity:wf.Error,source:r.item.provider.displayName,message:w})}})))}let f=e.getOption(125);s.showContextMenu({domForShadowRoot:f&&(n=e.getDomNode())!==null&&n!==void 0?n:void 0,getAnchor:()=>{let m=Zi(t);return{x:m.left,y:m.top+m.height+8}},getActions:()=>u,onHide:()=>{e.focus()},autoSelectFirstItem:!0})})}function dS(i,e,t,r){return f1(this,void 0,void 0,function*(){let o=yield i.get(Cr).createModelReference(r.uri);yield t.invokeWithinContext(s=>f1(this,void 0,void 0,function*(){let a=e.hasSideBySideModifier,l=s.get(it),c=Pr.inPeekEditor.getValue(l),d=!a&&t.getOption(86)&&!c;return new uc({openToSide:a,openInPeek:d,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(s,new gh(o.object.textEditorModel,B.getStartPosition(r.range)),B.lift(r.range))})),o.dispose()})}var f1,N8=N(()=>{Ht();Fc();ki();H0();et();ra();e1();hh();Ji();Vi();wt();yl();Ut();Mo();f1=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})}});function Vbe(i){let e="\xA0";return i.replace(/[ \t]/g,e)}var Wbe,Vp,qp,uS,R8,nY,Kp,P8,pc,F8=N(()=>{Ht();mi();jt();ki();qt();ke();df();zr();Ir();JF();z_();eg();_a();et();fn();qc();Ur();Ds();Pt();ra();i1();M8();N8();Vi();hl();Ut();Mo();tn();rn();Wbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vp=function(i,e){return function(t,r){e(t,r,i)}},qp=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},R8=class i{constructor(){this._entries=new sa(50)}get(e){let t=i._key(e);return this._entries.get(t)}set(e,t){let r=i._key(e);this._entries.set(r,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}},nY=Qr("IInlayHintsCache");en(nY,R8,1);Kp=class{constructor(e,t){this.item=e,this.index=t}get part(){let e=this.item.hint.label;return typeof e=="string"?{label:e}:e[this.index]}},P8=class{constructor(e,t){this.part=e,this.hasTriggerModifier=t}},pc=uS=class{static get(e){var t;return(t=e.getContribution(uS.ID))!==null&&t!==void 0?t:void 0}constructor(e,t,r,n,o,s,a){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=o,this._notificationService=s,this._instaService=a,this._disposables=new le,this._sessionDisposables=new le,this._decorationsMetadata=new Map,this._ruleFactory=new ty(this._editor),this._activeRenderMode=0,this._debounceInfo=r.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(138)&&this._update()})),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();let e=this._editor.getOption(138);if(e.enabled==="off")return;let t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;let r=this._inlayHintsCache.get(t);r&&this._updateHintsDecorators([t.getFullModelRange()],r),this._sessionDisposables.add(ri(()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)}));let n,o=new Set,s=new ui(()=>qp(this,void 0,void 0,function*(){let a=Date.now();n==null||n.dispose(!0),n=new zi;let l=t.onWillDispose(()=>n==null?void 0:n.cancel());try{let c=n.token,d=yield h1.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),c);if(s.delay=this._debounceInfo.update(t,Date.now()-a),c.isCancellationRequested){d.dispose();return}for(let u of d.provider)typeof u.onDidChangeInlayHints=="function"&&!o.has(u)&&(o.add(u),this._sessionDisposables.add(u.onDidChangeInlayHints(()=>{s.isScheduled()||s.schedule()})));this._sessionDisposables.add(d),this._updateHintsDecorators(d.ranges,d.items),this._cacheHintsForFastRestore(t)}catch(c){ft(c)}finally{n.dispose(),l.dispose()}}),this._debounceInfo.get(t));if(this._sessionDisposables.add(s),this._sessionDisposables.add(ri(()=>n==null?void 0:n.dispose(!0))),s.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange(a=>{(a.scrollTopChanged||!s.isScheduled())&&s.schedule()})),this._sessionDisposables.add(this._editor.onDidChangeModelContent(a=>{let l=Math.max(s.delay,1250);s.schedule(l)})),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(uP.getInstance().event(c=>{if(!this._editor.hasModel())return;let d=c.altKey&&c.ctrlKey&&!(c.shiftKey||c.metaKey)?l:a;if(d!==this._activeRenderMode){this._activeRenderMode=d;let u=this._editor.getModel(),h=this._copyInlayHintsWithCurrentAnchor(u);this._updateHintsDecorators([u.getFullModelRange()],h),s.schedule(0)}}))}this._sessionDisposables.add(this._installDblClickGesture(()=>s.schedule(0))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){let e=new le,t=e.add(new Qa(this._editor)),r=new le;return e.add(r),e.add(t.onMouseMoveOrRelevantKeyDown(n=>{let[o]=n,s=this._getInlayHintLabelPart(o),a=this._editor.getModel();if(!s||!a){r.clear();return}let l=new zi;r.add(ri(()=>l.dispose(!0))),s.item.resolve(l.token),this._activeInlayHintPart=s.part.command||s.part.location?new P8(s,o.hasTriggerModifier):void 0;let c=a.validatePosition(s.item.hint.position).lineNumber,d=new B(c,1,c,a.getLineMaxColumn(c)),u=this._getInlineHintsForRange(d);this._updateHintsDecorators([d],u),r.add(ri(()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([d],u)}))})),e.add(t.onCancel(()=>r.clear())),e.add(t.onExecute(n=>qp(this,void 0,void 0,function*(){let o=this._getInlayHintLabelPart(n);if(o){let s=o.part;s.location?this._instaService.invokeFunction(dS,n,this._editor,s.location):qO.is(s.command)&&(yield this._invokeCommand(s.command,o.item))}}))),e}_getInlineHintsForRange(e){let t=new Set;for(let r of this._decorationsMetadata.values())e.containsRange(r.item.anchor.range)&&t.add(r.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp(t=>qp(this,void 0,void 0,function*(){if(t.event.detail!==2)return;let r=this._getInlayHintLabelPart(t);if(r&&(t.event.preventDefault(),yield r.item.resolve(st.None),Ki(r.item.hint.textEdits))){let n=r.item.hint.textEdits.map(o=>ii.replace(B.lift(o.range),o.text));this._editor.executeEdits("inlayHint.default",n),e()}}))}_installContextMenu(){return this._editor.onContextMenu(e=>qp(this,void 0,void 0,function*(){if(!(e.event.target instanceof HTMLElement))return;let t=this._getInlayHintLabelPart(e);t&&(yield this._instaService.invokeFunction(rY,this._editor,e.event.target,t))}))}_getInlayHintLabelPart(e){var t;if(e.target.type!==6)return;let r=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;if(r instanceof yf&&(r==null?void 0:r.attachedData)instanceof Kp)return r.attachedData}_invokeCommand(e,t){var r;return qp(this,void 0,void 0,function*(){try{yield this._commandService.executeCommand(e.id,...(r=e.arguments)!==null&&r!==void 0?r:[])}catch(n){this._notificationService.notify({severity:wf.Error,source:t.provider.displayName,message:n})}})}_cacheHintsForFastRestore(e){let t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){let t=new Map;for(let[r,n]of this._decorationsMetadata){if(t.has(n.item))continue;let o=e.getDecorationRange(r);if(o){let s=new u1(o,n.item.anchor.direction),a=n.item.with({anchor:s});t.set(n.item,a)}}return Array.from(t.values())}_getHintsRanges(){let t=this._editor.getModel(),r=this._editor.getVisibleRangesPlusViewportAboveBelow(),n=[];for(let o of r.sort(B.compareRangesUsingStarts)){let s=t.validateRange(new B(o.startLineNumber-30,o.startColumn,o.endLineNumber+30,o.endColumn));n.length===0||!B.areIntersectingOrTouching(n[n.length-1],s)?n.push(s):n[n.length-1]=B.plusRange(n[n.length-1],s)}return n}_updateHintsDecorators(e,t){var r,n;let o=[],s=(g,w,_,E,L)=>{let A={content:_,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:w.className,cursorStops:E,attachedData:L};o.push({item:g,classNameRef:w,decoration:{range:g.anchor.range,options:{description:"InlayHint",showIfCollapsed:g.anchor.range.isEmpty(),collapseOnReplaceEdit:!g.anchor.range.isEmpty(),stickiness:0,[g.anchor.direction]:this._activeRenderMode===0?A:void 0}}})},a=(g,w)=>{let _=this._ruleFactory.createClassNameRef({width:`${l/3|0}px`,display:"inline-block"});s(g,_,"\u200A",w?bu.Right:bu.None)},{fontSize:l,fontFamily:c,padding:d,isUniform:u}=this._getLayoutInfo(),h="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(h,c);for(let g of t){g.hint.paddingLeft&&a(g,!1);let w=typeof g.hint.label=="string"?[{label:g.hint.label}]:g.hint.label;for(let _=0;_uS._MAX_DECORATORS)break}let f=[];for(let g of e)for(let{id:w}of(n=this._editor.getDecorationsInRange(g))!==null&&n!==void 0?n:[]){let _=this._decorationsMetadata.get(w);_&&(f.push(w),_.classNameRef.dispose(),this._decorationsMetadata.delete(w))}let m=va.capture(this._editor);this._editor.changeDecorations(g=>{let w=g.deltaDecorations(f,o.map(_=>_.decoration));for(let _=0;_r)&&(o=r);let s=e.fontFamily||n;return{fontSize:o,fontFamily:s,padding:t,isUniform:!t&&s===n&&o===r}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(let e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};pc.ID="editor.contrib.InlayHints";pc._MAX_DECORATORS=1500;pc=uS=Wbe([Vp(1,Se),Vp(2,lr),Vp(3,nY),Vp(4,_i),Vp(5,Ri),Vp(6,Ke)],pc);Dt.registerCommand("_executeInlayHintProvider",(i,...e)=>qp(void 0,void 0,void 0,function*(){let[t,r]=e;Bt(yt.isUri(t)),Bt(B.isIRange(r));let{inlayHintsProvider:n}=i.get(Se),o=yield i.get(Cr).createModelReference(t);try{let s=yield h1.create(n,o.object.textEditorModel,[B.lift(r)],st.None),a=s.items.map(l=>l.hint);return setTimeout(()=>s.dispose(),0),a}finally{o.dispose()}}))});var qbe,p1,oY,Kbe,hS,fS,sY=N(()=>{jt();Es();di();Ur();rc();es();ra();c8();ZC();F8();Sr();is();Pt();He();Tn();M8();mi();qbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},p1=function(i,e){return function(t,r){e(t,r,i)}},oY=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Kbe=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=i[o]&&function(s){return new Promise(function(a,l){s=i[o](s),n(a,l,s.done,s.value)})}}function n(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}},hS=class extends Ad{constructor(e,t,r,n){super(10,t,e.item.anchor.range,r,n,!0),this.part=e}},fS=class extends Wp{constructor(e,t,r,n,o,s){super(e,t,r,n,s),this._resolverService=o,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!pc.get(this._editor)||e.target.type!==6)return null;let n=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;return n instanceof yf&&n.attachedData instanceof Kp?new hS(n.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,r){return e instanceof hS?new Mn(n=>oY(this,void 0,void 0,function*(){var o,s,a,l;let{part:c}=e;if(yield c.item.resolve(r),r.isCancellationRequested)return;let d;typeof c.item.hint.tooltip=="string"?d=new $i().appendText(c.item.hint.tooltip):c.item.hint.tooltip&&(d=c.item.hint.tooltip),d&&n.emitOne(new ro(this,e.range,[d],!1,0)),Ki(c.item.hint.textEdits)&&n.emitOne(new ro(this,e.range,[new $i().appendText(b("hint.dbl","Double-click to insert"))],!1,10001));let u;if(typeof c.part.tooltip=="string"?u=new $i().appendText(c.part.tooltip):c.part.tooltip&&(u=c.part.tooltip),u&&n.emitOne(new ro(this,e.range,[u],!1,1)),c.part.location||c.part.command){let w,E=this._editor.getOption(76)==="altKey"?En?b("links.navigate.kb.meta.mac","cmd + click"):b("links.navigate.kb.meta","ctrl + click"):En?b("links.navigate.kb.alt.mac","option + click"):b("links.navigate.kb.alt","alt + click");c.part.location&&c.part.command?w=new $i().appendText(b("hint.defAndCommand","Go to Definition ({0}), right click for more",E)):c.part.location?w=new $i().appendText(b("hint.def","Go to Definition ({0})",E)):c.part.command&&(w=new $i(`[${b("hint.cmd","Execute Command")}](${iY(c.part.command)} "${c.part.command.title}") (${E})`,{isTrusted:!0})),w&&n.emitOne(new ro(this,e.range,[w],!1,1e4))}let h=yield this._resolveInlayHintLabelPartHover(c,r);try{for(var f=!0,m=Kbe(h),g;g=yield m.next(),o=g.done,!o;f=!0){l=g.value,f=!1;let w=l;n.emitOne(w)}}catch(w){s={error:w}}finally{try{!f&&!o&&(a=m.return)&&(yield a.call(m))}finally{if(s)throw s.error}}})):Mn.EMPTY}_resolveInlayHintLabelPartHover(e,t){return oY(this,void 0,void 0,function*(){if(!e.part.location)return Mn.EMPTY;let{uri:r,range:n}=e.part.location,o=yield this._resolverService.createModelReference(r);try{let s=o.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(s)?l1(this._languageFeaturesService.hoverProvider,s,new Ie(n.startLineNumber,n.startColumn),t).filter(a=>!Wc(a.hover.contents)).map(a=>new ro(this,e.item.anchor.range,a.hover.contents,!1,2+a.ordinal)):Mn.EMPTY}finally{o.dispose()}})}};fS=qbe([p1(1,er),p1(2,tr),p1(3,Mt),p1(4,Cr),p1(5,Se)],fS)});var z8=N(()=>{lt();rc();F8();sY();Ue(pc.ID,pc,1);Uo.register(fS)});var pS,aY=N(()=>{Ar();pS=class{constructor(e,t,r){this._editRange=e,this._originalSelection=t,this._text=r}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new Qe(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new Qe(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)}}});var lY=N(()=>{});var cY=N(()=>{lY()});var U8=Qi(m1=>{jt();qt();yu();lt();et();Ar();ti();Ur();q_();He();aY();cY();var $be=m1&&m1.__decorate||function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Gbe=m1&&m1.__param||function(i,e){return function(t,r){e(t,r,i)}},mS,jd=mS=class{static get(e){return e.getContribution(mS.ID)}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){var r;(r=this.currentRequest)===null||r===void 0||r.cancel();let n=this.editor.getSelection(),o=this.editor.getModel();if(!o||!n)return;let s=n;if(s.startLineNumber!==s.endLineNumber)return;let a=new T_(this.editor,5),l=o.uri;return this.editorWorkerService.canNavigateValueSet(l)?(this.currentRequest=Jt(c=>this.editorWorkerService.navigateValueSet(l,s,t)),this.currentRequest.then(c=>{var d;if(!c||!c.range||!c.value||!a.validate(this.editor))return;let u=B.lift(c.range),h=c.range,f=c.value.length-(s.endColumn-s.startColumn);h={startLineNumber:h.startLineNumber,startColumn:h.startColumn,endLineNumber:h.endLineNumber,endColumn:h.startColumn+c.value.length},f>1&&(s=new Qe(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn+f-1));let m=new pS(u,s,c.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,m),this.editor.pushUndoStop(),this.decorations.set([{range:h,options:mS.DECORATION}]),(d=this.decorationRemover)===null||d===void 0||d.cancel(),this.decorationRemover=hf(350),this.decorationRemover.then(()=>this.decorations.clear()).catch(ft)}).catch(ft)):Promise.resolve(void 0)}};jd.ID="editor.contrib.inPlaceReplaceController";jd.DECORATION=mt.register({description:"in-place-replace",className:"valueSetReplacement"});jd=mS=$be([Gbe(1,kl)],jd);var B8=class extends de{constructor(){super({id:"editor.action.inPlaceReplace.up",label:b("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:F.writable,kbOpts:{kbExpr:F.editorTextFocus,primary:3159,weight:100}})}run(e,t){let r=jd.get(t);return r?r.run(this.id,!1):Promise.resolve(void 0)}},H8=class extends de{constructor(){super({id:"editor.action.inPlaceReplace.down",label:b("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:F.writable,kbOpts:{kbExpr:F.editorTextFocus,primary:3161,weight:100}})}run(e,t){let r=jd.get(t);return r?r.run(this.id,!0):Promise.resolve(void 0)}};Ue(jd.ID,jd,4);ee(B8);ee(H8)});var j8,W8=N(()=>{lt();IP();ti();He();j8=class extends de{constructor(){super({id:"expandLineSelection",label:b("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:F.textInputFocus,primary:2090}})}run(e,t,r){if(r=r||{},!t.hasModel())return;let n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(r.source,3,Fm.expandLineSelection(n,n.getCursorStates())),n.revealPrimaryCursor(r.source,!0)}};ee(j8)});function Ybe(i,e){e.sort((s,a)=>s.lineNumber===a.lineNumber?s.column-a.column:s.lineNumber-a.lineNumber);for(let s=e.length-2;s>=0;s--)e[s].lineNumber===e[s+1].lineNumber&&e.splice(s,1);let t=[],r=0,n=0,o=e.length;for(let s=1,a=i.getLineCount();s<=a;s++){let l=i.getLineContent(s),c=l.length+1,d=0;if(n{Ni();_a();et();gS=class{constructor(e,t){this._selection=e,this._cursors=t,this._selectionId=null}getEditOperations(e,t){let r=Ybe(e,this._cursors);for(let n=0,o=r.length;n{et();Ar();g1=class{constructor(e,t,r){this._selection=e,this._isCopyingDown=t,this._noop=r||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let r=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,r.startLineNumber{Ni();Z3();et();Ar();fre();Hr();S8();BP();mre();Xbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Qbe=function(i,e){return function(t,r){e(t,r,i)}},bS=class{constructor(e,t,r,n){this._languageConfigurationService=n,this._selection=e,this._isMovingDown=t,this._autoIndent=r,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){let r=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===r){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 n=this._selection;n.startLineNumbere.tokenization.getLineTokens(d),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(d,u)=>e.getLanguageIdAtPosition(d,u)},getLineContent:null};if(n.startLineNumber===n.endLineNumber&&e.getLineMaxColumn(n.startLineNumber)===1){let d=n.startLineNumber,u=this._isMovingDown?d+1:d-1;e.getLineMaxColumn(u)===1?t.addEditOperation(new B(1,1,1,1),null):(t.addEditOperation(new B(d,1,d,1),e.getLineContent(u)),t.addEditOperation(new B(u,1,u,e.getLineMaxColumn(u)),null)),n=new Qe(u,1,u,1)}else{let d,u;if(this._isMovingDown){d=n.endLineNumber+1,u=e.getLineContent(d),t.addEditOperation(new B(d-1,e.getLineMaxColumn(d-1),d,e.getLineMaxColumn(d)),null);let h=u;if(this.shouldAutoIndent(e,n)){let f=this.matchEnterRule(e,l,o,d,n.startLineNumber-1);if(f!==null){let g=qi(e.getLineContent(d)),w=f+wn(g,o);h=wh(w,o,a)+this.trimStart(u)}else{c.getLineContent=w=>w===n.startLineNumber?e.getLineContent(d):e.getLineContent(w);let g=mu(this._autoIndent,c,e.getLanguageIdAtPosition(d,1),n.startLineNumber,l,this._languageConfigurationService);if(g!==null){let w=qi(e.getLineContent(d)),_=wn(g,o),E=wn(w,o);_!==E&&(h=wh(_,o,a)+this.trimStart(u))}}t.addEditOperation(new B(n.startLineNumber,1,n.startLineNumber,1),h+` -`);let m=this.matchEnterRuleMovingDown(e,l,o,n.startLineNumber,d,h);if(m!==null)m!==0&&this.getIndentEditsOfMovingBlock(e,t,n,o,a,m);else{c.getLineContent=w=>w===n.startLineNumber?h:w>=n.startLineNumber+1&&w<=n.endLineNumber+1?e.getLineContent(w-1):e.getLineContent(w);let g=mu(this._autoIndent,c,e.getLanguageIdAtPosition(d,1),n.startLineNumber+1,l,this._languageConfigurationService);if(g!==null){let w=qi(e.getLineContent(n.startLineNumber)),_=wn(g,o),E=wn(w,o);if(_!==E){let I=_-E;this.getIndentEditsOfMovingBlock(e,t,n,o,a,I)}}}}else t.addEditOperation(new B(n.startLineNumber,1,n.startLineNumber,1),h+` +`+o),this._selectionId=t.trackSelection(r),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let r=t.getTrackedSelection(this._selectionId);if(this._startLineNumberDelta!==0||this._endLineNumberDelta!==0){let n=r.startLineNumber,o=r.startColumn,s=r.endLineNumber,a=r.endColumn;this._startLineNumberDelta!==0&&(n=n+this._startLineNumberDelta,o=1),this._endLineNumberDelta!==0&&(s=s+this._endLineNumberDelta,a=1),r=Qe.createWithDirection(n,o,s,a,this._selectionDirection)}return r}}});var Xbe,Qbe,bS,hY=N(()=>{Ni();Z3();et();Ar();fre();Hr();S8();BP();mre();Xbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Qbe=function(i,e){return function(t,r){e(t,r,i)}},bS=class{constructor(e,t,r,n){this._languageConfigurationService=n,this._selection=e,this._isMovingDown=t,this._autoIndent=r,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){let r=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===r){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 n=this._selection;n.startLineNumbere.tokenization.getLineTokens(d),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(d,u)=>e.getLanguageIdAtPosition(d,u)},getLineContent:null};if(n.startLineNumber===n.endLineNumber&&e.getLineMaxColumn(n.startLineNumber)===1){let d=n.startLineNumber,u=this._isMovingDown?d+1:d-1;e.getLineMaxColumn(u)===1?t.addEditOperation(new B(1,1,1,1),null):(t.addEditOperation(new B(d,1,d,1),e.getLineContent(u)),t.addEditOperation(new B(u,1,u,e.getLineMaxColumn(u)),null)),n=new Qe(u,1,u,1)}else{let d,u;if(this._isMovingDown){d=n.endLineNumber+1,u=e.getLineContent(d),t.addEditOperation(new B(d-1,e.getLineMaxColumn(d-1),d,e.getLineMaxColumn(d)),null);let h=u;if(this.shouldAutoIndent(e,n)){let f=this.matchEnterRule(e,l,o,d,n.startLineNumber-1);if(f!==null){let g=qi(e.getLineContent(d)),w=f+wn(g,o);h=wh(w,o,a)+this.trimStart(u)}else{c.getLineContent=w=>w===n.startLineNumber?e.getLineContent(d):e.getLineContent(w);let g=mu(this._autoIndent,c,e.getLanguageIdAtPosition(d,1),n.startLineNumber,l,this._languageConfigurationService);if(g!==null){let w=qi(e.getLineContent(d)),_=wn(g,o),E=wn(w,o);_!==E&&(h=wh(_,o,a)+this.trimStart(u))}}t.addEditOperation(new B(n.startLineNumber,1,n.startLineNumber,1),h+` +`);let m=this.matchEnterRuleMovingDown(e,l,o,n.startLineNumber,d,h);if(m!==null)m!==0&&this.getIndentEditsOfMovingBlock(e,t,n,o,a,m);else{c.getLineContent=w=>w===n.startLineNumber?h:w>=n.startLineNumber+1&&w<=n.endLineNumber+1?e.getLineContent(w-1):e.getLineContent(w);let g=mu(this._autoIndent,c,e.getLanguageIdAtPosition(d,1),n.startLineNumber+1,l,this._languageConfigurationService);if(g!==null){let w=qi(e.getLineContent(n.startLineNumber)),_=wn(g,o),E=wn(w,o);if(_!==E){let L=_-E;this.getIndentEditsOfMovingBlock(e,t,n,o,a,L)}}}}else t.addEditOperation(new B(n.startLineNumber,1,n.startLineNumber,1),h+` `)}else if(d=n.startLineNumber-1,u=e.getLineContent(d),t.addEditOperation(new B(d,1,d+1,1),null),t.addEditOperation(new B(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),` `+u),this.shouldAutoIndent(e,n)){c.getLineContent=f=>f===d?e.getLineContent(n.startLineNumber):e.getLineContent(f);let h=this.matchEnterRule(e,l,o,n.startLineNumber,n.startLineNumber-2);if(h!==null)h!==0&&this.getIndentEditsOfMovingBlock(e,t,n,o,a,h);else{let f=mu(this._autoIndent,c,e.getLanguageIdAtPosition(n.startLineNumber,1),d,l,this._languageConfigurationService);if(f!==null){let m=qi(e.getLineContent(n.startLineNumber)),g=wn(f,o),w=wn(m,o);if(g!==w){let _=g-w;this.getIndentEditsOfMovingBlock(e,t,n,o,a,_)}}}}}this._selectionId=t.trackSelection(n)}buildIndentConverter(e,t,r){return{shiftIndent:n=>jc.shiftIndent(n,n.length+1,e,t,r),unshiftIndent:n=>jc.unshiftIndent(n,n.length+1,e,t,r)}}parseEnterResult(e,t,r,n,o){if(o){let s=o.indentation;o.indentAction===zm.None||o.indentAction===zm.Indent?s=o.indentation+o.appendText:o.indentAction===zm.IndentOutdent?s=o.indentation:o.indentAction===zm.Outdent&&(s=t.unshiftIndent(o.indentation)+o.appendText);let a=e.getLineContent(n);if(this.trimStart(a).indexOf(this.trimStart(s))>=0){let l=qi(e.getLineContent(n)),c=qi(s),d=n_(e,n,this._languageConfigurationService);d!==null&&d&2&&(c=t.unshiftIndent(c));let u=wn(c,r),h=wn(l,r);return u-h}}return null}matchEnterRuleMovingDown(e,t,r,n,o,s){if(of(s)>=0){let a=e.getLineMaxColumn(o),l=r_(this._autoIndent,e,new B(o,a,o,a),this._languageConfigurationService);return this.parseEnterResult(e,t,r,n,l)}else{let a=n-1;for(;a>=1;){let d=e.getLineContent(a);if(of(d)>=0)break;a--}if(a<1||n>e.getLineCount())return null;let l=e.getLineMaxColumn(a),c=r_(this._autoIndent,e,new B(a,l,a,l),this._languageConfigurationService);return this.parseEnterResult(e,t,r,n,c)}}matchEnterRule(e,t,r,n,o,s){let a=o;for(;a>=1;){let d;if(a===o&&s!==void 0?d=s:d=e.getLineContent(a),of(d)>=0)break;a--}if(a<1||n>e.getLineCount())return null;let l=e.getLineMaxColumn(a),c=r_(this._autoIndent,e,new B(a,l,a,l),this._languageConfigurationService);return this.parseEnterResult(e,t,r,n,c)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4||!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;let r=e.getLanguageIdAtPosition(t.startLineNumber,1),n=e.getLanguageIdAtPosition(t.endLineNumber,1);return!(r!==n||this._languageConfigurationService.getLanguageConfiguration(r).indentRulesSupport===null)}getIndentEditsOfMovingBlock(e,t,r,n,o,s){for(let a=r.startLineNumber;a<=r.endLineNumber;a++){let l=e.getLineContent(a),c=qi(l),u=wn(c,n)+s,h=wh(u,n,o);h!==c&&(t.addEditOperation(new B(a,1,a,c.length+1),h),a===r.endLineNumber&&r.endColumn<=c.length+1&&h===""&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let r=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(r=r.setEndPosition(r.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&r.startLineNumber=n)return null;let o=[];for(let a=r;a<=n;a++)o.push(i.getLineContent(a));let s=o.slice(0);return s.sort(xh.getCollator().compare),t===!0&&(s=s.reverse()),{startLineNumber:r,endLineNumber:n,before:o,after:s}}function Zbe(i,e,t){let r=fY(i,e,t);return r?ii.replace(new B(r.startLineNumber,1,r.endLineNumber,i.getLineMaxColumn(r.endLineNumber)),r.after.join(` -`)):null}var xh,pY=M(()=>{_a();et();xh=class i{static getCollator(){return i._COLLATOR||(i._COLLATOR=new Intl.Collator),i._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){let r=Zbe(e,this.selection,this.descending);r&&t.addEditOperation(r.range,r.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,r){if(e===null)return!1;let n=fY(e,t,r);if(!n)return!1;for(let o=0,s=n.before.length;o{ll();s_();lt();Zv();dY();bre();_a();di();et();Ar();ti();uY();hY();pY();He();Ji();Hr();vS=class extends de{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;let r=t.getSelections().map((s,a)=>({selection:s,index:a,ignore:!1}));r.sort((s,a)=>B.compareRangesUsingStarts(s.selection,a.selection));let n=r[0];for(let s=1;snew Ie(a.positionLineNumber,a.positionColumn)));let o=t.getSelection();if(o===null)return;let s=new gS(o,n);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop()}};wS.ID="editor.action.trimTrailingWhitespace";Z8=class extends de{constructor(){super({id:"editor.action.deleteLines",label:b("lines.delete","Delete Line"),alias:"Delete Line",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;let r=this._getLinesToRemove(t),n=t.getModel();if(n.getLineCount()===1&&n.getLineMaxColumn(1)===1)return;let o=0,s=[],a=[];for(let l=0,c=r.length;l1&&(u-=1,f=n.getLineMaxColumn(u)),s.push(ii.replace(new Qe(u,f,h,m),"")),a.push(new Qe(u-o,d.positionColumn,u-o,d.positionColumn)),o+=d.endLineNumber-d.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,s,a),t.pushUndoStop()}_getLinesToRemove(e){let t=e.getSelections().map(o=>{let s=o.endLineNumber;return o.startLineNumbero.startLineNumber===s.startLineNumber?o.endLineNumber-s.endLineNumber:o.startLineNumber-s.startLineNumber);let r=[],n=t[0];for(let o=1;o=t[o].startLineNumber?n.endLineNumber=t[o].endLineNumber:(r.push(n),n=t[o]);return r.push(n),r}},J8=class extends de{constructor(){super({id:"editor.action.indentLines",label:b("lines.indent","Indent Line"),alias:"Indent Line",precondition:O.writable,kbOpts:{kbExpr:O.editorTextFocus,primary:2142,weight:100}})}run(e,t){let r=t._getViewModel();r&&(t.pushUndoStop(),t.executeCommands(this.id,o_.indent(r.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}},e7=class extends de{constructor(){super({id:"editor.action.outdentLines",label:b("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:O.writable,kbOpts:{kbExpr:O.editorTextFocus,primary:2140,weight:100}})}run(e,t){cf.Outdent.runEditorCommand(e,t,null)}},t7=class extends de{constructor(){super({id:"editor.action.insertLineBefore",label:b("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:O.writable,kbOpts:{kbExpr:O.editorTextFocus,primary:3075,weight:100}})}run(e,t){let r=t._getViewModel();r&&(t.pushUndoStop(),t.executeCommands(this.id,o_.lineInsertBefore(r.cursorConfig,t.getModel(),t.getSelections())))}},i7=class extends de{constructor(){super({id:"editor.action.insertLineAfter",label:b("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:O.writable,kbOpts:{kbExpr:O.editorTextFocus,primary:2051,weight:100}})}run(e,t){let r=t._getViewModel();r&&(t.pushUndoStop(),t.executeCommands(this.id,o_.lineInsertAfter(r.cursorConfig,t.getModel(),t.getSelections())))}},xS=class extends de{run(e,t){if(!t.hasModel())return;let r=t.getSelection(),n=this._getRangesToDelete(t),o=[];for(let l=0,c=n.length-1;lii.replace(l,""));t.pushUndoStop(),t.executeEdits(this.id,a,s),t.pushUndoStop()}},r7=class extends xS{constructor(){super({id:"deleteAllLeft",label:b("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let r=null,n=[],o=0;return t.forEach(s=>{let a;if(s.endColumn===1&&o>0){let l=s.startLineNumber-o;a=new Qe(l,s.startColumn,l,s.startColumn)}else a=new Qe(s.startLineNumber,s.startColumn,s.startLineNumber,s.startColumn);o+=s.endLineNumber-s.startLineNumber,s.intersectRanges(e)?r=a:n.push(a)}),r&&n.unshift(r),n}_getRangesToDelete(e){let t=e.getSelections();if(t===null)return[];let r=t,n=e.getModel();return n===null?[]:(r.sort(B.compareRangesUsingStarts),r=r.map(o=>{if(o.isEmpty())if(o.startColumn===1){let s=Math.max(1,o.startLineNumber-1),a=o.startLineNumber===1?1:n.getLineContent(s).length+1;return new B(s,a,o.startLineNumber,1)}else return new B(o.startLineNumber,1,o.startLineNumber,o.startColumn);else return new B(o.startLineNumber,1,o.endLineNumber,o.endColumn)}),r)}},n7=class extends xS{constructor(){super({id:"deleteAllRight",label:b("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let r=null,n=[];for(let o=0,s=t.length,a=0;o{if(o.isEmpty()){let s=t.getLineMaxColumn(o.startLineNumber);return o.startColumn===s?new B(o.startLineNumber,o.startColumn,o.startLineNumber+1,1):new B(o.startLineNumber,o.startColumn,o.startLineNumber,s)}return o});return n.sort(B.compareRangesUsingStarts),n}},o7=class extends de{constructor(){super({id:"editor.action.joinLines",label:b("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:O.writable,kbOpts:{kbExpr:O.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){let r=t.getSelections();if(r===null)return;let n=t.getSelection();if(n===null)return;r.sort(B.compareRangesUsingStarts);let o=[],s=r.reduce((h,f)=>h.isEmpty()?h.endLineNumber===f.startLineNumber?(n.equalsSelection(h)&&(n=f),f):f.startLineNumber>h.endLineNumber+1?(o.push(h),f):new Qe(h.startLineNumber,h.startColumn,f.endLineNumber,f.endColumn):f.startLineNumber>h.endLineNumber?(o.push(h),f):new Qe(h.startLineNumber,h.startColumn,f.endLineNumber,f.endColumn));o.push(s);let a=t.getModel();if(a===null)return;let l=[],c=[],d=n,u=0;for(let h=0,f=o.length;h=1){let Z=!0;U===""&&(Z=!1),Z&&(U.charAt(U.length-1)===" "||U.charAt(U.length-1)===" ")&&(Z=!1,U=U.replace(/[\s\uFEFF\xA0]+$/g," "));let ye=le.substr(re-1);U+=(Z?" ":"")+ye,Z?_=ye.length+1:_=ye.length}else _=0}let z=new B(g,w,E,I);if(!z.isEmpty()){let Y;m.isEmpty()?(l.push(ii.replace(z,U)),Y=new Qe(z.startLineNumber-u,U.length-_+1,g-u,U.length-_+1)):m.startLineNumber===m.endLineNumber?(l.push(ii.replace(z,U)),Y=new Qe(m.startLineNumber-u,m.startColumn,m.endLineNumber-u,m.endColumn)):(l.push(ii.replace(z,U)),Y=new Qe(m.startLineNumber-u,m.startColumn,m.startLineNumber-u,U.length-N)),B.intersectRanges(z,n)!==null?d=Y:c.push(Y)}u+=z.endLineNumber-z.startLineNumber}c.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,l,c),t.pushUndoStop()}},s7=class extends de{constructor(){super({id:"editor.action.transpose",label:b("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:O.writable})}run(e,t){let r=t.getSelections();if(r===null)return;let n=t.getModel();if(n===null)return;let o=[];for(let s=0,a=r.length;s=d){if(c.lineNumber===n.getLineCount())continue;let u=new B(c.lineNumber,Math.max(1,c.column-1),c.lineNumber+1,1),h=n.getValueInRange(u).split("").reverse().join("");o.push(new ul(new Qe(c.lineNumber,Math.max(1,c.column-1),c.lineNumber+1,1),h))}else{let u=new B(c.lineNumber,Math.max(1,c.column-1),c.lineNumber,c.column+1),h=n.getValueInRange(u).split("").reverse().join("");o.push(new Qv(u,h,new Qe(c.lineNumber,c.column+1,c.lineNumber,c.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}},Wd=class extends de{run(e,t){let r=t.getSelections();if(r===null)return;let n=t.getModel();if(n===null)return;let o=t.getOption(128),s=[];for(let a of r)if(a.isEmpty()){let l=a.getStartPosition(),c=t.getConfiguredWordAtPosition(l);if(!c)continue;let d=new B(l.lineNumber,c.startColumn,l.lineNumber,c.endColumn),u=n.getValueInRange(d);s.push(ii.replace(d,this._modifyText(u,o)))}else{let l=n.getValueInRange(a);s.push(ii.replace(a,this._modifyText(l,o)))}t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop()}},a7=class extends Wd{constructor(){super({id:"editor.action.transformToUppercase",label:b("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:O.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}},l7=class extends Wd{constructor(){super({id:"editor.action.transformToLowercase",label:b("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:O.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}},mc=class{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(e){}}return this._actual}isSupported(){return this.get()!==null}},b1=class i extends Wd{constructor(){super({id:"editor.action.transformToTitlecase",label:b("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:O.writable})}_modifyText(e,t){let r=i.titleBoundary.get();return r?e.toLocaleLowerCase().replace(r,n=>n.toLocaleUpperCase()):e}};b1.titleBoundary=new mc("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");Ch=class i extends Wd{constructor(){super({id:"editor.action.transformToSnakecase",label:b("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:O.writable})}_modifyText(e,t){let r=i.caseBoundary.get(),n=i.singleLetters.get();return!r||!n?e:e.replace(r,"$1_$2").replace(n,"$1_$2$3").toLocaleLowerCase()}};Ch.caseBoundary=new mc("(\\p{Ll})(\\p{Lu})","gmu");Ch.singleLetters=new mc("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");v1=class i extends Wd{constructor(){super({id:"editor.action.transformToCamelcase",label:b("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:O.writable})}_modifyText(e,t){let r=i.wordBoundary.get();if(!r)return e;let n=e.split(r);return n.shift()+n.map(s=>s.substring(0,1).toLocaleUpperCase()+s.substring(1)).join("")}};v1.wordBoundary=new mc("[_\\s-]","gm");Sh=class i extends Wd{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every(t=>t.isSupported())}constructor(){super({id:"editor.action.transformToKebabcase",label:b("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:O.writable})}_modifyText(e,t){let r=i.caseBoundary.get(),n=i.singleLetters.get(),o=i.underscoreBoundary.get();return!r||!n||!o?e:e.replace(o,"$1-$3").replace(r,"$1-$2").replace(n,"$1-$2").toLocaleLowerCase()}};Sh.caseBoundary=new mc("(\\p{Ll})(\\p{Lu})","gmu");Sh.singleLetters=new mc("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu");Sh.underscoreBoundary=new mc("(\\S)(_)(\\S)","gm");ee(V8);ee(q8);ee(K8);ee($8);ee(G8);ee(Y8);ee(X8);ee(Q8);ee(wS);ee(Z8);ee(J8);ee(e7);ee(t7);ee(i7);ee(r7);ee(n7);ee(o7);ee(s7);ee(a7);ee(l7);Ch.caseBoundary.isSupported()&&Ch.singleLetters.isSupported()&&ee(Ch);v1.wordBoundary.isSupported()&&ee(v1);b1.titleBoundary.isSupported()&&ee(b1);Sh.isSupported()&&ee(Sh)});var mY=M(()=>{});var gY=M(()=>{mY()});function vY(i,e,t,r){let n=i.ordered(e);return u_(n.map(o=>()=>d7(this,void 0,void 0,function*(){try{return yield o.provideLinkedEditingRanges(e,t,r)}catch(s){Xt(s);return}})),o=>!!o&&Ki(o==null?void 0:o.ranges))}var Jbe,CS,d7,SS,bY,e1e,Vd,u7,t1e,tut,f7=M(()=>{mi();jt();ki();ca();qt();ei();ke();Ni();Ir();lt();In();di();et();ti();Ur();Hr();He();wt();Pt();tn();Ds();al();gY();Jbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},CS=function(i,e){return function(t,r){e(t,r,i)}},d7=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},bY=new ht("LinkedEditingInputVisible",!1),e1e="linked-editing-decoration",Vd=SS=class extends ce{static get(e){return e.getContribution(SS.ID)}constructor(e,t,r,n,o){super(),this.languageConfigurationService=n,this._syncRangesToken=0,this._localToDispose=this._register(new ae),this._editor=e,this._providers=r.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=bY.bindTo(t),this._debounceInformation=o.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 ae),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize(!0))),this._register(this._editor.onDidChangeConfiguration(s=>{(s.hasChanged(68)||s.hasChanged(91))&&this.reinitialize(!1)})),this._register(this._providers.onDidChange(()=>this.reinitialize(!1))),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize(!0))),this.reinitialize(!0)}reinitialize(e){let t=this._editor.getModel(),r=t!==null&&(this._editor.getOption(68)||this._editor.getOption(91))&&this._providers.has(t);if(r===this._enabled&&!e||(this._enabled=r,this.clearRanges(),this._localToDispose.clear(),!r||t===null))return;this._localToDispose.add(ci.runAndSubscribe(t.onDidChangeLanguageConfiguration,()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()}));let n=new Do(this._debounceInformation.get(t)),o=()=>{var l;this._rangeUpdateTriggerPromise=n.trigger(()=>this.updateRanges(),(l=this._debounceDuration)!==null&&l!==void 0?l:this._debounceInformation.get(t))},s=new Do(0),a=l=>{this._rangeSyncTriggerPromise=s.trigger(()=>this._syncRanges(l))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{o()})),this._localToDispose.add(this._editor.onDidChangeModelContent(l=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){let c=this._currentDecorations.getRange(0);if(c&&l.changes.every(d=>c.intersectRanges(d.range))){a(this._syncRangesToken);return}}o()})),this._localToDispose.add({dispose:()=>{n.dispose(),s.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||this._currentDecorations.length===0)return;let t=this._editor.getModel(),r=this._currentDecorations.getRange(0);if(!r||r.startLineNumber!==r.endLineNumber)return this.clearRanges();let n=t.getValueInRange(r);if(this._currentWordPattern){let s=n.match(this._currentWordPattern);if((s?s[0].length:0)!==n.length)return this.clearRanges()}let o=[];for(let s=1,a=this._currentDecorations.length;s1){this.clearRanges();return}let r=this._editor.getModel(),n=r.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===n){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){let s=this._currentDecorations.getRange(0);if(s&&s.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=n;let o=Jt(s=>d7(this,void 0,void 0,function*(){try{let a=new mr(!1),l=yield vY(this._providers,r,t,s);if(this._debounceInformation.update(r,a.elapsed()),o!==this._currentRequest||(this._currentRequest=null,n!==r.getVersionId()))return;let c=[];l!=null&&l.ranges&&(c=l.ranges),this._currentWordPattern=(l==null?void 0:l.wordPattern)||this._languageWordPattern;let d=!1;for(let h=0,f=c.length;h({range:h,options:SS.DECORATION}));this._visibleContextKey.set(!0),this._currentDecorations.set(u),this._syncRangesToken++}catch(a){Yo(a)||ft(a),(this._currentRequest===o||!this._currentRequest)&&this.clearRanges()}}));return this._currentRequest=o,o})}};Vd.ID="editor.contrib.linkedEditing";Vd.DECORATION=mt.register({description:"linked-editing",stickiness:0,className:e1e});Vd=SS=Jbe([CS(1,it),CS(2,Se),CS(3,Ot),CS(4,lr)],Vd);u7=class extends de{constructor(){super({id:"editor.action.linkedEditing",label:b("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:fe.and(O.writable,O.hasRenameProvider),kbOpts:{kbExpr:O.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){let r=e.get(ai),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return yt.isUri(n)&&Ie.isIPosition(o)?r.openCodeEditor({resource:n},r.getActiveCodeEditor()).then(s=>{s&&(s.setPosition(o),s.invokeWithinContext(a=>(this.reportTelemetry(a,s),this.run(a,s))))},ft):super.runCommand(e,t)}run(e,t){let r=Vd.get(t);return r?Promise.resolve(r.updateRanges(!0)):Promise.resolve()}},t1e=Fi.bindToContribution(Vd.get);We(new t1e({id:"cancelLinkedEditingInput",precondition:bY,handler:i=>i.clearRanges(),kbOpts:{kbExpr:O.editorTextFocus,weight:100+99,primary:9,secondary:[1033]}}));tut=je("editor.linkedEditingBackground",{dark:vt.fromHex("#f00").transparent(.3),light:vt.fromHex("#f00").transparent(.3),hcDark:vt.fromHex("#f00").transparent(.3),hcLight:vt.white},b("editorLinkedEditingBackground","Background color when the editor auto renames on type."));$n("_executeLinkedEditingProvider",(i,e,t)=>{let{linkedEditingRangeProvider:r}=i.get(Se);return vY(r,e,t,st.None)});Ue(Vd.ID,Vd,1);ee(u7)});var _Y=M(()=>{});var yY=M(()=>{_Y()});function m7(i,e,t){let r=[],n=i.ordered(e).reverse().map((o,s)=>Promise.resolve(o.provideLinks(e,t)).then(a=>{a&&(r[s]=[a,o])},Xt));return Promise.all(n).then(()=>{let o=new kS(hn(r));return t.isCancellationRequested?(o.dispose(),new kS([])):o})}var wY,p7,kS,xY=M(()=>{mi();ki();qt();ke();zr();Ir();et();Xo();Vi();Pt();wY=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},p7=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}resolve(e){return wY(this,void 0,void 0,function*(){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"))})}},kS=class i{constructor(e){this._disposables=new ae;let t=[];for(let[r,n]of e){let o=r.links.map(s=>new p7(s,n));t=i._union(t,o),Fv(r)&&this._disposables.add(r)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){let r=[],n,o,s,a;for(n=0,s=0,o=e.length,a=t.length;nwY(void 0,void 0,void 0,function*(){let[t,r]=e;Bt(t instanceof yt),typeof r!="number"&&(r=0);let{linkProvider:n}=i.get(Se),o=i.get(Di).getModel(t);if(!o)return[];let s=yield m7(n,o,st.None);if(!s)return[];for(let l=0;l{jt();ki();qt();Es();ke();Dm();Tn();Lo();al();Ir();yY();lt();Ur();Ds();Pt();i1();xY();He();Mo();is();i1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ES=function(i,e){return function(t,r){e(t,r,i)}},r1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},$p=g7=class extends ce{static get(e){return e.getContribution(g7.ID)}constructor(e,t,r,n,o){super(),this.editor=e,this.openerService=t,this.notificationService=r,this.languageFeaturesService=n,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=o.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new ui(()=>this.computeLinksNow(),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;let s=this._register(new Qa(e));this._register(s.onMouseMoveOrRelevantKeyDown(([a,l])=>{this._onEditorMouseMove(a,l)})),this._register(s.onExecute(a=>{this.onEditorMouseUp(a)})),this._register(s.onCancel(a=>{this.cleanUpActiveLinkDecoration()})),this._register(e.onDidChangeConfiguration(a=>{a.hasChanged(69)&&(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)}computeLinksNow(){return r1e(this,void 0,void 0,function*(){if(!this.editor.hasModel()||!this.editor.getOption(69))return;let e=this.editor.getModel();if(this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=Jt(t=>m7(this.providers,e,t));try{let t=new mr(!1);if(this.activeLinksList=yield this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(t){ft(t)}finally{this.computePromise=null}}})}updateDecorations(e){let t=this.editor.getOption(76)==="altKey",r=[],n=Object.keys(this.currentOccurrences);for(let s of n){let a=this.currentOccurrences[s];r.push(a.decorationId)}let o=[];if(e)for(let s of e)o.push(TS.decoration(s,t));this.editor.changeDecorations(s=>{let a=s.deltaDecorations(r,o);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let l=0,c=a.length;l{n.activate(o,r),this.activeLinkDecorationId=n.decorationId})}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){let e=this.editor.getOption(76)==="altKey";if(this.activeLinkDecorationId){let t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations(r=>{t.deactivate(r,e)}),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;let t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,r=!1){if(!this.openerService)return;let{link:n}=e;n.resolve(st.None).then(o=>{if(typeof o=="string"&&this.editor.hasModel()){let s=this.editor.getModel().uri;if(s.scheme===Eo.file&&o.startsWith(`${Eo.file}:`)){let a=yt.parse(o);if(a.scheme===Eo.file){let l=XP(a),c=null;l.startsWith("/./")?c=`.${l.substr(1)}`:l.startsWith("//./")&&(c=`.${l.substr(2)}`),c&&(o=JP(s,c))}}}return this.openerService.open(o,{openToSide:t,fromUserGesture:r,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})},o=>{let s=o instanceof Error?o.message:o;s==="invalid"?this.notificationService.warn(b("invalid.url","Failed to open this link because it is not well-formed: {0}",n.url.toString())):s==="missing"?this.notificationService.warn(b("missing.url","Failed to open this link because its target is missing.")):ft(o)})}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;let t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(let r of t){let n=this.currentOccurrences[r.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()}};$p.ID="editor.linkDetector";$p=g7=i1e([ES(1,tr),ES(2,Ri),ES(3,Se),ES(4,lr)],$p);CY={general:mt.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:mt.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},TS=class i{static decoration(e,t){return{range:e.range,options:i._getOptions(e,t,!1)}}static _getOptions(e,t,r){let n=Object.assign({},r?CY.active:CY.general);return n.hoverMessage=n1e(e,t),n}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,i._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,i._getOptions(this.link,t,!1))}};b7=class extends de{constructor(){super({id:"editor.action.openLink",label:b("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){let r=$p.get(t);if(!r||!t.hasModel())return;let n=t.getSelections();for(let o of n){let s=r.getLinkOccurrence(o.getEndPosition());s&&r.openLinkOccurrence(s,!1)}}};Ue($p.ID,$p,1);ee(b7)});var _1,_7=M(()=>{ke();lt();_1=class extends ce{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown(t=>{let r=this._editor.getOption(115);r>=0&&t.target.type===6&&t.target.position.column>=r&&this._editor.updateOptions({stopRenderingLineAfter:-1})}))}};_1.ID="editor.contrib.longLinesHelper";Ue(_1.ID,_1,2)});var SY=M(()=>{});var kY=M(()=>{SY()});function EY(i){return i===Qm.Write?l1e:i===Qm.Text?c1e:h1e}function TY(i){return i?u1e:d1e}var IS,AS,o1e,s1e,a1e,l1e,c1e,d1e,u1e,h1e,y7=M(()=>{kY();qc();Ur();fn();He();tn();rn();IS=je("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},b("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);je("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},b("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);je("editor.wordHighlightTextBackground",{light:IS,dark:IS,hcDark:IS,hcLight:IS},b("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);AS=je("editor.wordHighlightBorder",{light:null,dark:null,hcDark:ua,hcLight:ua},b("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));je("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:ua,hcLight:ua},b("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable."));je("editor.wordHighlightTextBorder",{light:AS,dark:AS,hcDark:AS,hcLight:AS},b("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));o1e=je("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},b("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),s1e=je("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},b("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),a1e=je("editorOverviewRuler.wordHighlightTextForeground",{dark:gf,light:gf,hcDark:gf,hcLight:gf},b("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),l1e=mt.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Ei(s1e),position:Gn.Center},minimap:{color:Ei(Gm),position:la.Inline}}),c1e=mt.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:Ei(a1e),position:Gn.Center},minimap:{color:Ei(Gm),position:la.Inline}}),d1e=mt.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:Ei(gf),position:Gn.Center},minimap:{color:Ei(Gm),position:la.Inline}}),u1e=mt.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),h1e=mt.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:Ei(o1e),position:Gn.Center},minimap:{color:Ei(Gm),position:la.Inline}});bf((i,e)=>{let t=i.getColor(xO);t&&e.addRule(`.monaco-editor .selectionHighlight { background-color: ${t.transparent(.5)}; }`)})});function Kd(i,e){let t=e.filter(r=>!i.find(n=>n.equals(r)));if(t.length>=1){let r=t.map(o=>`line ${o.viewState.position.lineNumber} column ${o.viewState.position.column}`).join(", "),n=t.length===1?b("cursorAdded","Cursor added: {0}",r):b("cursorsAdded","Cursors added: {0}",r);uu(n)}}function AY(i,e,t){let r=IY(i,e[0],!t);for(let n=1,o=e.length;n{Io();jt();ll();ke();lt();IP();et();Ar();ti();y2();He();Ji();wt();Pt();y7();Ut();f1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},p1e=function(i,e){return function(t,r){e(t,r,i)}};x7=class extends de{constructor(){super({id:"editor.action.insertCursorAbove",label:b("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,r){if(!t.hasModel())return;let n=!0;r&&r.logicalLine===!1&&(n=!1);let o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();let s=o.getCursorStates();o.setCursorStates(r.source,3,Fm.addCursorUp(o,s,n)),o.revealTopMostCursor(r.source),Kd(s,o.getCursorStates())}},C7=class extends de{constructor(){super({id:"editor.action.insertCursorBelow",label:b("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,r){if(!t.hasModel())return;let n=!0;r&&r.logicalLine===!1&&(n=!1);let o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();let s=o.getCursorStates();o.setCursorStates(r.source,3,Fm.addCursorDown(o,s,n)),o.revealBottomMostCursor(r.source),Kd(s,o.getCursorStates())}},S7=class extends de{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:b("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,r){if(!e.isEmpty()){for(let n=e.startLineNumber;n1&&r.push(new Qe(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;let r=t.getModel(),n=t.getSelections(),o=t._getViewModel(),s=o.getCursorStates(),a=[];n.forEach(l=>this.getCursorsForSelection(l,r,a)),a.length>0&&t.setSelections(a),Kd(s,o.getCursorStates())}},k7=class extends de{constructor(){super({id:"editor.action.addCursorsToBottom",label:b("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;let r=t.getSelections(),n=t.getModel().getLineCount(),o=[];for(let l=r[0].startLineNumber;l<=n;l++)o.push(new Qe(l,r[0].startColumn,l,r[0].endColumn));let s=t._getViewModel(),a=s.getCursorStates();o.length>0&&t.setSelections(o),Kd(a,s.getCursorStates())}},E7=class extends de{constructor(){super({id:"editor.action.addCursorsToTop",label:b("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;let r=t.getSelections(),n=[];for(let a=r[0].startLineNumber;a>=1;a--)n.push(new Qe(a,r[0].startColumn,a,r[0].endColumn));let o=t._getViewModel(),s=o.getCursorStates();n.length>0&&t.setSelections(n),Kd(s,o.getCursorStates())}},Gp=class{constructor(e,t,r){this.selections=e,this.revealRange=t,this.revealScrollType=r}},LS=class i{static create(e,t){if(!e.hasModel())return null;let r=t.getState();if(!e.hasTextFocus()&&r.isRevealed&&r.searchString.length>0)return new i(e,t,!1,r.searchString,r.wholeWord,r.matchCase,null);let n=!1,o,s,a=e.getSelections();a.length===1&&a[0].isEmpty()?(n=!0,o=!0,s=!0):(o=r.wholeWord,s=r.matchCase);let l=e.getSelection(),c,d=null;if(l.isEmpty()){let u=e.getConfiguredWordAtPosition(l.getStartPosition());if(!u)return null;c=u.word,d=new Qe(l.startLineNumber,u.startColumn,l.startLineNumber,u.endColumn)}else c=e.getModel().getValueInRange(l).replace(/\r\n/g,` -`);return new i(e,t,n,c,o,s,d)}constructor(e,t,r,n,o,s,a){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=r,this.searchText=n,this.wholeWord=o,this.matchCase=s,this.currentMatch=a}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new Gp(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new Gp(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let n=this.currentMatch;return this.currentMatch=null,n}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],r=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(128):null,!1);return r?new Qe(r.range.startLineNumber,r.range.startColumn,r.range.endLineNumber,r.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new Gp(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new Gp(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let n=this.currentMatch;return this.currentMatch=null,n}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],r=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(128):null,!1);return r?new Qe(r.range.startLineNumber,r.range.startColumn,r.range.endLineNumber,r.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();let t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(128):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(128):null,!1,1073741824)}},kh=class i extends ce{static get(e){return e.getContribution(i.ID)}constructor(e){super(),this._sessionDispose=this._register(new ae),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){let t=LS.create(this._editor,e);if(!t)return;this._session=t;let r={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(r.wholeWordOverride=1,r.matchCaseOverride=1,r.isRegexOverride=2),e.getState().change(r,!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){let 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;let r=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return r?new Qe(t.startLineNumber,r.startColumn,t.startLineNumber,r.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){let t=this._editor.getSelections();if(t.length>1){let n=e.getState().matchCase;if(!AY(this._editor.getModel(),t,n)){let s=this._editor.getModel(),a=[];for(let l=0,c=t.length;l0&&r.isRegex){let n=this._editor.getModel();r.searchScope?t=n.findMatches(r.searchString,r.searchScope,r.isRegex,r.matchCase,r.wholeWord?this._editor.getOption(128):null,!1,1073741824):t=n.findMatches(r.searchString,!0,r.isRegex,r.matchCase,r.wholeWord?this._editor.getOption(128):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(r.searchScope)}if(t.length>0){let n=this._editor.getSelection();for(let o=0,s=t.length;onew Qe(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn)))}}};kh.ID="editor.contrib.multiCursorController";qd=class extends de{run(e,t){let r=kh.get(t);if(!r)return;let n=t._getViewModel();if(n){let o=n.getCursorStates(),s=ln.get(t);if(s)this._run(r,s);else{let a=e.get(Ke).createInstance(ln,t);this._run(r,a),a.dispose()}Kd(o,n.getCursorStates())}}},T7=class extends qd{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:b("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:2082,weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}},I7=class extends qd{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:b("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}},A7=class extends qd{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:b("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:gi(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}},L7=class extends qd{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:b("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)}},D7=class extends qd{constructor(){super({id:"editor.action.selectHighlights",label:b("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:3114,weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}},M7=class extends qd{constructor(){super({id:"editor.action.changeAll",label:b("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:fe.and(O.writable,O.editorTextFocus),kbOpts:{kbExpr:O.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}},N7=class{constructor(e,t,r,n,o){this._model=e,this._searchText=t,this._matchCase=r,this._wordSeparators=n,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,o&&this._model===o._model&&this._searchText===o._searchText&&this._matchCase===o._matchCase&&this._wordSeparators===o._wordSeparators&&this._modelVersionId===o._modelVersionId&&(this._cachedFindMatches=o._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(B.compareRangesUsingStarts)),this._cachedFindMatches}},y1=w7=class extends ce{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(106),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new ui(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(n=>{this._isEnabled=e.getOption(106)})),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()}));let r=ln.get(e);r&&this._register(r.getState().onFindReplaceStateChange(n=>{this._update()})),this.updateSoon.schedule()}_update(){this._setState(w7._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,r){if(!t||!r.hasModel())return null;let n=r.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;let o=kh.get(r);if(!o)return null;let s=ln.get(r);if(!s)return null;let a=o.getSession(s);if(!a){let d=r.getSelections();if(d.length>1){let h=s.getState().matchCase;if(!AY(r.getModel(),d,h))return null}a=LS.create(r,s)}if(!a||a.currentMatch||/^[ \t]+$/.test(a.searchText)||a.searchText.length>200)return null;let l=s.getState(),c=l.matchCase;if(l.isRevealed){let d=l.searchString;c||(d=d.toLowerCase());let u=a.searchText;if(c||(u=u.toLowerCase()),d===u&&a.matchCase===l.matchCase&&a.wholeWord===l.wholeWord&&!l.isRegex)return null}return new N7(r.getModel(),a.searchText,a.matchCase,a.wholeWord?r.getOption(128):null,e)}_setState(e){if(this.state=e,!this.state){this._decorations.clear();return}if(!this.editor.hasModel())return;let t=this.editor.getModel();if(t.isTooLargeForTokenization())return;let r=this.state.findMatches(),n=this.editor.getSelections();n.sort(B.compareRangesUsingStarts);let o=[];for(let l=0,c=0,d=r.length,u=n.length;l=u)o.push(h),l++;else{let f=B.compareRangesUsingStarts(h,n[c]);f<0?((n[c].isEmpty()||!B.areIntersecting(h,n[c]))&&o.push(h),l++):(f>0||l++,c++)}}let s=this._languageFeaturesService.documentHighlightProvider.has(t)&&this.editor.getOption(79),a=o.map(l=>({range:l,options:TY(s)}));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};y1.ID="editor.contrib.selectionHighlighter";y1=w7=f1e([p1e(1,Se)],y1);R7=class extends de{constructor(){super({id:"editor.action.focusNextCursor",label:b("mutlicursor.focusNextCursor","Focus Next Cursor"),description:{description:b("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,r){if(!t.hasModel())return;let n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();let o=Array.from(n.getCursorStates()),s=o.shift();s&&(o.push(s),n.setCursorStates(r.source,3,o),n.revealPrimaryCursor(r.source,!0),Kd(o,n.getCursorStates()))}},P7=class extends de{constructor(){super({id:"editor.action.focusPreviousCursor",label:b("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),description:{description:b("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,r){if(!t.hasModel())return;let n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();let o=Array.from(n.getCursorStates()),s=o.pop();s&&(o.unshift(s),n.setCursorStates(r.source,3,o),n.revealPrimaryCursor(r.source,!0),Kd(o,n.getCursorStates()))}};Ue(kh.ID,kh,4);Ue(y1.ID,y1,1);ee(x7);ee(C7);ee(S7);ee(T7);ee(I7);ee(A7);ee(L7);ee(D7);ee(M7);ee(k7);ee(E7);ee(R7);ee(P7)});function F7(i,e,t,r,n){return LY(this,void 0,void 0,function*(){let o=i.ordered(e);for(let s of o)try{let a=yield s.provideSignatureHelp(e,t,n,r);if(a)return a}catch(a){Xt(a)}})}var LY,gc,DS=M(()=>{ki();qt();zr();Ir();di();fn();Pt();ra();Vi();wt();LY=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},gc={Visible:new ht("parameterHintsVisible",!1),MultipleSignatures:new ht("parameterHintsMultipleSignatures",!1)};Dt.registerCommand("_executeSignatureHelpProvider",(i,...e)=>LY(void 0,void 0,void 0,function*(){let[t,r,n]=e;Bt(yt.isUri(t)),Bt(Ie.isIPosition(r)),Bt(typeof n=="string"||!n);let o=i.get(Se),s=yield i.get(Cr).createModelReference(t);try{let a=yield F7(o.signatureHelpProvider,s.object.textEditorModel,Ie.lift(r),{triggerKind:Is.Invoke,isRetrigger:!1,triggerCharacter:n},st.None);return a?(setTimeout(()=>a.dispose(),0),a.value):void 0}finally{s.dispose()}}))});function g1e(i,e){switch(e.triggerKind){case Is.Invoke:return e;case Is.ContentChange:return i;case Is.TriggerCharacter:default:return e}}var m1e,$d,w1,DY=M(()=>{jt();qt();ei();ke();K3();fn();DS();m1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};(function(i){i.Default={type:0};class e{constructor(n,o){this.request=n,this.previouslyActiveHints=o,this.type=2}}i.Pending=e;class t{constructor(n){this.hints=n,this.type=1}}i.Active=t})($d||($d={}));w1=class i extends ce{constructor(e,t,r=i.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new Je),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=$d.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new Wi),this.triggerChars=new fu,this.retriggerChars=new fu,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new Do(r),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=$d.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){let r=this.editor.getModel();if(!r||!this.providers.has(r))return;let n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(n),t).catch(ft)}next(){if(this.state.type!==1)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,r=t%e===e-1,n=this.editor.getOption(84).cycle;if((e<2||r)&&!n){this.cancel();return}this.updateActiveSignature(r&&n?0:t+1)}previous(){if(this.state.type!==1)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,r=t===0,n=this.editor.getOption(84).cycle;if((e<2||r)&&!n){this.cancel();return}this.updateActiveSignature(r&&n?e-1:t-1)}updateActiveSignature(e){this.state.type===1&&(this.state=new $d.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){return m1e(this,void 0,void 0,function*(){let t=this.state.type===1||this.state.type===2,r=this.getLastActiveHints();if(this.cancel(!0),this._pendingTriggers.length===0)return!1;let n=this._pendingTriggers.reduce(g1e);this._pendingTriggers=[];let o={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:r};if(!this.editor.hasModel())return!1;let s=this.editor.getModel(),a=this.editor.getPosition();this.state=new $d.Pending(Jt(l=>F7(this.providers,s,a,o,l)),r);try{let l=yield 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 $d.Active(l.value),this._lastSignatureHelpResult.value=l,this._onChangedHints.fire(this.state.hints),!0)}catch(l){return e===this.triggerId&&(this.state=$d.Default),ft(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();let e=this.editor.getModel();if(e)for(let t of this.providers.ordered(e)){for(let r of t.signatureHelpTriggerCharacters||[])if(r.length){let n=r.charCodeAt(0);this.triggerChars.add(n),this.retriggerChars.add(n)}for(let r of t.signatureHelpRetriggerCharacters||[])r.length&&this.retriggerChars.add(r.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;let t=e.length-1,r=e.charCodeAt(t);(this.triggerChars.has(r)||this.isTriggered&&this.retriggerChars.has(r))&&this.trigger({triggerKind:Is.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){e.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:Is.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:Is.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(84).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}};w1.DEFAULT_DELAY=120});var MY=M(()=>{});var NY=M(()=>{MY()});var b1e,z7,B7,yo,v1e,_1e,x1,RY=M(()=>{Ht();Io();N_();Zr();ei();ke();Ni();zr();NY();es();kd();DS();He();wt();is();tn();Sl();An();b1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},z7=function(i,e){return function(t,r){e(t,r,i)}},yo=Ae,v1e=Pi("parameter-hints-next",pt.chevronDown,b("parameterHintsNextIcon","Icon for show next parameter hint.")),_1e=Pi("parameter-hints-previous",pt.chevronUp,b("parameterHintsPreviousIcon","Icon for show previous parameter hint.")),x1=B7=class extends ce{constructor(e,t,r,n,o){super(),this.editor=e,this.model=t,this.renderDisposeables=this._register(new ae),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new to({editor:e},o,n)),this.keyVisible=gc.Visible.bindTo(r),this.keyMultipleSignatures=gc.MultipleSignatures.bindTo(r)}createParameterHintDOMNodes(){let e=yo(".editor-widget.parameter-hints-widget"),t=Te(e,yo(".phwrapper"));t.tabIndex=-1;let r=Te(t,yo(".controls")),n=Te(r,yo(".button"+_t.asCSSSelector(_1e))),o=Te(r,yo(".overloads")),s=Te(r,yo(".button"+_t.asCSSSelector(v1e)));this._register(Lt(n,"click",h=>{cu.stop(h),this.previous()})),this._register(Lt(s,"click",h=>{cu.stop(h),this.next()}));let a=yo(".body"),l=new Cf(a,{alwaysConsumeMouseWheel:!0});this._register(l),t.appendChild(l.getDomNode());let c=Te(a,yo(".signature")),d=Te(a,yo(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:c,overloads:o,docs:d,scrollbar:l},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(h=>{this.visible&&this.editor.layoutContentWidget(this)}));let u=()=>{if(!this.domNodes)return;let h=this.editor.getOption(49);this.domNodes.element.style.fontSize=`${h.fontSize}px`,this.domNodes.element.style.lineHeight=`${h.lineHeight/h.fontSize}`};u(),this._register(ci.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(h=>h.hasChanged(49)).on(u,null)),this._register(this.editor.onDidLayoutChange(h=>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;let r=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",r),this.keyMultipleSignatures.set(r),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";let n=e.signatures[e.activeSignature];if(!n)return;let o=Te(this.domNodes.signature,yo(".code")),s=this.editor.getOption(49);o.style.fontSize=`${s.fontSize}px`,o.style.fontFamily=s.fontFamily;let a=n.parameters.length>0,l=(t=n.activeParameter)!==null&&t!==void 0?t:e.activeParameter;if(a)this.renderParameters(o,n,l);else{let u=Te(o,yo("span"));u.textContent=n.label}let c=n.parameters[l];if(c!=null&&c.documentation){let u=yo("span.documentation");if(typeof c.documentation=="string")u.textContent=c.documentation;else{let h=this.renderMarkdownDocs(c.documentation);u.appendChild(h.element)}Te(this.domNodes.docs,yo("p",{},u))}if(n.documentation!==void 0)if(typeof n.documentation=="string")Te(this.domNodes.docs,yo("p",{},n.documentation));else{let u=this.renderMarkdownDocs(n.documentation);Te(this.domNodes.docs,u.element)}let d=this.hasDocs(n,c);if(this.domNodes.signature.classList.toggle("has-docs",d),this.domNodes.docs.classList.toggle("empty",!d),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,c){let u="",h=n.parameters[l];Array.isArray(h.label)?u=n.label.substring(h.label[0],h.label[1]):u=h.label,h.documentation&&(u+=typeof h.documentation=="string"?`, ${h.documentation}`:`, ${h.documentation.value}`),n.documentation&&(u+=typeof n.documentation=="string"?`, ${n.documentation}`:`, ${n.documentation.value}`),this.announcedLabel!==u&&(ar(b("hint","{0}, hint",u)),this.announcedLabel=u)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){let t=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var r;(r=this.domNodes)===null||r===void 0||r.scrollbar.scanDomNode()}}));return t.element.classList.add("markdown-docs"),t}hasDocs(e,t){return!!(t&&typeof t.documentation=="string"&&Nc(t.documentation).length>0||t&&typeof t.documentation=="object"&&Nc(t.documentation).value.length>0||e.documentation&&typeof e.documentation=="string"&&Nc(e.documentation).length>0||e.documentation&&typeof e.documentation=="object"&&Nc(e.documentation.value).length>0)}renderParameters(e,t,r){let[n,o]=this.getParameterLabelOffsets(t,r),s=document.createElement("span");s.textContent=t.label.substring(0,n);let a=document.createElement("span");a.textContent=t.label.substring(n,o),a.className="parameter active";let l=document.createElement("span");l.textContent=t.label.substring(o),Te(e,s,a,l)}getParameterLabelOffsets(e,t){let r=e.parameters[t];if(r){if(Array.isArray(r.label))return r.label;if(r.label.length){let n=new RegExp(`(\\W|^)${cl(r.label)}(?=\\W|$)`,"g");n.test(e.label);let o=n.lastIndex-r.label.length;return o>=0?[o,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 B7.ID}updateMaxHeight(){if(!this.domNodes)return;let t=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=t;let r=this.domNodes.element.getElementsByClassName("phwrapper");r.length&&(r[0].style.maxHeight=t)}};x1.ID="editor.widget.parameterHintsWidget";x1=B7=b1e([z7(2,it),z7(3,tr),z7(4,er)],x1);je("editorHoverWidget.highlightForeground",{dark:fa,light:fa,hcDark:fa,hcLight:fa},b("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."))});var y1e,PY,H7,Eh,U7,j7,W7,V7=M(()=>{F3();ke();lt();ti();fn();Pt();DY();DS();He();wt();Ut();RY();y1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},PY=function(i,e){return function(t,r){e(t,r,i)}},Eh=H7=class extends ce{static get(e){return e.getContribution(H7.ID)}constructor(e,t,r){super(),this.editor=e,this.model=this._register(new w1(e,r.signatureHelpProvider)),this._register(this.model.onChangedHints(n=>{var o;n?(this.widget.value.show(),this.widget.value.render(n)):(o=this.widget.rawValue)===null||o===void 0||o.hide()})),this.widget=new rf(()=>this._register(t.createInstance(x1,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)}};Eh.ID="editor.controller.parameterHints";Eh=H7=y1e([PY(1,Ke),PY(2,Se)],Eh);U7=class extends de{constructor(){super({id:"editor.action.triggerParameterHints",label:b("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:O.hasSignatureHelpProvider,kbOpts:{kbExpr:O.editorTextFocus,primary:3082,weight:100}})}run(e,t){let r=Eh.get(t);r==null||r.trigger({triggerKind:Is.Invoke})}};Ue(Eh.ID,Eh,2);ee(U7);j7=100+75,W7=Fi.bindToContribution(Eh.get);We(new W7({id:"closeParameterHints",precondition:gc.Visible,handler:i=>i.cancel(),kbOpts:{weight:j7,kbExpr:O.focus,primary:9,secondary:[1033]}}));We(new W7({id:"showPrevParameterHint",precondition:fe.and(gc.Visible,gc.MultipleSignatures),handler:i=>i.previous(),kbOpts:{weight:j7,kbExpr:O.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}}));We(new W7({id:"showNextParameterHint",precondition:fe.and(gc.Visible,gc.MultipleSignatures),handler:i=>i.next(),kbOpts:{weight:j7,kbExpr:O.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))});var OY=M(()=>{});var FY=M(()=>{OY()});var w1e,q7,C1,MS,zY=M(()=>{ke();FY();di();He();wt();jr();tn();rn();w1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},q7=function(i,e){return function(t,r){e(t,r,i)}},C1=new ht("renameInputVisible",!1,b("renameInputVisible","Whether the rename input widget is visible")),MS=class{constructor(e,t,r,n,o){this._editor=e,this._acceptKeybindings=t,this._themeService=r,this._keybindingService=n,this._disposables=new ae,this.allowEditorOverflow=!0,this._visibleContextKey=C1.bindTo(o),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(49)&&this._updateFont()})),this._disposables.add(r.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._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",b("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),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,r,n,o;if(!this._input||!this._domNode)return;let s=e.getColor(p_),a=e.getColor(m_);this._domNode.style.backgroundColor=String((t=e.getColor(bl))!==null&&t!==void 0?t:""),this._domNode.style.boxShadow=s?` 0 0 8px 2px ${s}`:"",this._domNode.style.border=a?`1px solid ${a}`:"",this._domNode.style.color=String((r=e.getColor(fO))!==null&&r!==void 0?r:""),this._input.style.backgroundColor=String((n=e.getColor(hO))!==null&&n!==void 0?n:"");let l=e.getColor(pO);this._input.style.borderWidth=l?"1px":"0px",this._input.style.borderStyle=l?"solid":"none",this._input.style.borderColor=(o=l==null?void 0:l.toString())!==null&&o!==void 0?o:"none"}_updateFont(){if(!this._input||!this._label)return;let e=this._editor.getOption(49);this._input.style.fontFamily=e.fontFamily,this._input.style.fontWeight=e.fontWeight,this._input.style.fontSize=`${e.fontSize}px`,this._label.style.fontSize=`${e.fontSize*.8}px`}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}beforeRender(){var e,t;let[r,n]=this._acceptKeybindings;return this._label.innerText=b({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(r))===null||e===void 0?void 0:e.getLabel(),(t=this._keybindingService.lookupKeybinding(n))===null||t===void 0?void 0:t.getLabel()),null}afterRender(e){e||this.cancelInput(!0)}acceptInput(e){var t;(t=this._currentAcceptInput)===null||t===void 0||t.call(this,e)}cancelInput(e){var t;(t=this._currentCancelInput)===null||t===void 0||t.call(this,e)}getInput(e,t,r,n,o,s){this._domNode.classList.toggle("preview",o),this._position=new Ie(e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",r.toString()),this._input.setAttribute("selectionEnd",n.toString()),this._input.size=Math.max((e.endColumn-e.startColumn)*1.1,20);let a=new ae;return new Promise(l=>{this._currentCancelInput=c=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,l(c),!0),this._currentAcceptInput=c=>{if(this._input.value.trim().length===0||this._input.value===t){this.cancelInput(!0);return}this._currentAcceptInput=void 0,this._currentCancelInput=void 0,l({newName:this._input.value,wantsPreview:o&&c})},a.add(s.onCancellationRequested(()=>this.cancelInput(!0))),a.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!document.hasFocus()))),this._show()}).finally(()=>{a.dispose(),this._hide()})}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))},100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};MS=w1e([q7(2,br),q7(3,Kt),q7(4,it)],MS)});function C1e(i,e,t,r){return Ih(this,void 0,void 0,function*(){let n=new S1(e,t,i),o=yield n.resolveRenameLocation(st.None);return o!=null&&o.rejectReason?{edits:[],rejectReason:o.rejectReason}:n.provideRenameEdits(r,st.None)})}var x1e,Th,Ih,K7,S1,Ah,$7,G7,Y7=M(()=>{Io();jt();ki();qt();ke();zr();Ir();yu();lt();tg();In();di();et();ti();sne();M0();He();X3();wt();Ut();Yv();Mo();$c();dl();zY();Pt();x1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Th=function(i,e){return function(t,r){e(t,r,i)}},Ih=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},S1=class{constructor(e,t,r){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=r.ordered(e)}hasProvider(){return this._providers.length>0}resolveRenameLocation(e){return Ih(this,void 0,void 0,function*(){let t=[];for(this._providerRenameIdx=0;this._providerRenameIdx0?t.join(` +`)):null}var xh,pY=N(()=>{_a();et();xh=class i{static getCollator(){return i._COLLATOR||(i._COLLATOR=new Intl.Collator),i._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){let r=Zbe(e,this.selection,this.descending);r&&t.addEditOperation(r.range,r.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,r){if(e===null)return!1;let n=fY(e,t,r);if(!n)return!1;for(let o=0,s=n.before.length;o{ll();s_();lt();Zv();dY();bre();_a();di();et();Ar();ti();uY();hY();pY();He();Ji();Hr();vS=class extends de{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;let r=t.getSelections().map((s,a)=>({selection:s,index:a,ignore:!1}));r.sort((s,a)=>B.compareRangesUsingStarts(s.selection,a.selection));let n=r[0];for(let s=1;snew Ie(a.positionLineNumber,a.positionColumn)));let o=t.getSelection();if(o===null)return;let s=new gS(o,n);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop()}};wS.ID="editor.action.trimTrailingWhitespace";Z8=class extends de{constructor(){super({id:"editor.action.deleteLines",label:b("lines.delete","Delete Line"),alias:"Delete Line",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;let r=this._getLinesToRemove(t),n=t.getModel();if(n.getLineCount()===1&&n.getLineMaxColumn(1)===1)return;let o=0,s=[],a=[];for(let l=0,c=r.length;l1&&(u-=1,f=n.getLineMaxColumn(u)),s.push(ii.replace(new Qe(u,f,h,m),"")),a.push(new Qe(u-o,d.positionColumn,u-o,d.positionColumn)),o+=d.endLineNumber-d.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,s,a),t.pushUndoStop()}_getLinesToRemove(e){let t=e.getSelections().map(o=>{let s=o.endLineNumber;return o.startLineNumbero.startLineNumber===s.startLineNumber?o.endLineNumber-s.endLineNumber:o.startLineNumber-s.startLineNumber);let r=[],n=t[0];for(let o=1;o=t[o].startLineNumber?n.endLineNumber=t[o].endLineNumber:(r.push(n),n=t[o]);return r.push(n),r}},J8=class extends de{constructor(){super({id:"editor.action.indentLines",label:b("lines.indent","Indent Line"),alias:"Indent Line",precondition:F.writable,kbOpts:{kbExpr:F.editorTextFocus,primary:2142,weight:100}})}run(e,t){let r=t._getViewModel();r&&(t.pushUndoStop(),t.executeCommands(this.id,o_.indent(r.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}},e7=class extends de{constructor(){super({id:"editor.action.outdentLines",label:b("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:F.writable,kbOpts:{kbExpr:F.editorTextFocus,primary:2140,weight:100}})}run(e,t){cf.Outdent.runEditorCommand(e,t,null)}},t7=class extends de{constructor(){super({id:"editor.action.insertLineBefore",label:b("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:F.writable,kbOpts:{kbExpr:F.editorTextFocus,primary:3075,weight:100}})}run(e,t){let r=t._getViewModel();r&&(t.pushUndoStop(),t.executeCommands(this.id,o_.lineInsertBefore(r.cursorConfig,t.getModel(),t.getSelections())))}},i7=class extends de{constructor(){super({id:"editor.action.insertLineAfter",label:b("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:F.writable,kbOpts:{kbExpr:F.editorTextFocus,primary:2051,weight:100}})}run(e,t){let r=t._getViewModel();r&&(t.pushUndoStop(),t.executeCommands(this.id,o_.lineInsertAfter(r.cursorConfig,t.getModel(),t.getSelections())))}},xS=class extends de{run(e,t){if(!t.hasModel())return;let r=t.getSelection(),n=this._getRangesToDelete(t),o=[];for(let l=0,c=n.length-1;lii.replace(l,""));t.pushUndoStop(),t.executeEdits(this.id,a,s),t.pushUndoStop()}},r7=class extends xS{constructor(){super({id:"deleteAllLeft",label:b("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let r=null,n=[],o=0;return t.forEach(s=>{let a;if(s.endColumn===1&&o>0){let l=s.startLineNumber-o;a=new Qe(l,s.startColumn,l,s.startColumn)}else a=new Qe(s.startLineNumber,s.startColumn,s.startLineNumber,s.startColumn);o+=s.endLineNumber-s.startLineNumber,s.intersectRanges(e)?r=a:n.push(a)}),r&&n.unshift(r),n}_getRangesToDelete(e){let t=e.getSelections();if(t===null)return[];let r=t,n=e.getModel();return n===null?[]:(r.sort(B.compareRangesUsingStarts),r=r.map(o=>{if(o.isEmpty())if(o.startColumn===1){let s=Math.max(1,o.startLineNumber-1),a=o.startLineNumber===1?1:n.getLineContent(s).length+1;return new B(s,a,o.startLineNumber,1)}else return new B(o.startLineNumber,1,o.startLineNumber,o.startColumn);else return new B(o.startLineNumber,1,o.endLineNumber,o.endColumn)}),r)}},n7=class extends xS{constructor(){super({id:"deleteAllRight",label:b("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let r=null,n=[];for(let o=0,s=t.length,a=0;o{if(o.isEmpty()){let s=t.getLineMaxColumn(o.startLineNumber);return o.startColumn===s?new B(o.startLineNumber,o.startColumn,o.startLineNumber+1,1):new B(o.startLineNumber,o.startColumn,o.startLineNumber,s)}return o});return n.sort(B.compareRangesUsingStarts),n}},o7=class extends de{constructor(){super({id:"editor.action.joinLines",label:b("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:F.writable,kbOpts:{kbExpr:F.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){let r=t.getSelections();if(r===null)return;let n=t.getSelection();if(n===null)return;r.sort(B.compareRangesUsingStarts);let o=[],s=r.reduce((h,f)=>h.isEmpty()?h.endLineNumber===f.startLineNumber?(n.equalsSelection(h)&&(n=f),f):f.startLineNumber>h.endLineNumber+1?(o.push(h),f):new Qe(h.startLineNumber,h.startColumn,f.endLineNumber,f.endColumn):f.startLineNumber>h.endLineNumber?(o.push(h),f):new Qe(h.startLineNumber,h.startColumn,f.endLineNumber,f.endColumn));o.push(s);let a=t.getModel();if(a===null)return;let l=[],c=[],d=n,u=0;for(let h=0,f=o.length;h=1){let Z=!0;O===""&&(Z=!1),Z&&(O.charAt(O.length-1)===" "||O.charAt(O.length-1)===" ")&&(Z=!1,O=O.replace(/[\s\uFEFF\xA0]+$/g," "));let ve=oe.substr(te-1);O+=(Z?" ":"")+ve,Z?_=ve.length+1:_=ve.length}else _=0}let U=new B(g,w,E,L);if(!U.isEmpty()){let Y;m.isEmpty()?(l.push(ii.replace(U,O)),Y=new Qe(U.startLineNumber-u,O.length-_+1,g-u,O.length-_+1)):m.startLineNumber===m.endLineNumber?(l.push(ii.replace(U,O)),Y=new Qe(m.startLineNumber-u,m.startColumn,m.endLineNumber-u,m.endColumn)):(l.push(ii.replace(U,O)),Y=new Qe(m.startLineNumber-u,m.startColumn,m.startLineNumber-u,O.length-A)),B.intersectRanges(U,n)!==null?d=Y:c.push(Y)}u+=U.endLineNumber-U.startLineNumber}c.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,l,c),t.pushUndoStop()}},s7=class extends de{constructor(){super({id:"editor.action.transpose",label:b("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:F.writable})}run(e,t){let r=t.getSelections();if(r===null)return;let n=t.getModel();if(n===null)return;let o=[];for(let s=0,a=r.length;s=d){if(c.lineNumber===n.getLineCount())continue;let u=new B(c.lineNumber,Math.max(1,c.column-1),c.lineNumber+1,1),h=n.getValueInRange(u).split("").reverse().join("");o.push(new ul(new Qe(c.lineNumber,Math.max(1,c.column-1),c.lineNumber+1,1),h))}else{let u=new B(c.lineNumber,Math.max(1,c.column-1),c.lineNumber,c.column+1),h=n.getValueInRange(u).split("").reverse().join("");o.push(new Qv(u,h,new Qe(c.lineNumber,c.column+1,c.lineNumber,c.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}},Wd=class extends de{run(e,t){let r=t.getSelections();if(r===null)return;let n=t.getModel();if(n===null)return;let o=t.getOption(128),s=[];for(let a of r)if(a.isEmpty()){let l=a.getStartPosition(),c=t.getConfiguredWordAtPosition(l);if(!c)continue;let d=new B(l.lineNumber,c.startColumn,l.lineNumber,c.endColumn),u=n.getValueInRange(d);s.push(ii.replace(d,this._modifyText(u,o)))}else{let l=n.getValueInRange(a);s.push(ii.replace(a,this._modifyText(l,o)))}t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop()}},a7=class extends Wd{constructor(){super({id:"editor.action.transformToUppercase",label:b("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:F.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}},l7=class extends Wd{constructor(){super({id:"editor.action.transformToLowercase",label:b("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:F.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}},mc=class{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(e){}}return this._actual}isSupported(){return this.get()!==null}},b1=class i extends Wd{constructor(){super({id:"editor.action.transformToTitlecase",label:b("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:F.writable})}_modifyText(e,t){let r=i.titleBoundary.get();return r?e.toLocaleLowerCase().replace(r,n=>n.toLocaleUpperCase()):e}};b1.titleBoundary=new mc("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");Ch=class i extends Wd{constructor(){super({id:"editor.action.transformToSnakecase",label:b("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:F.writable})}_modifyText(e,t){let r=i.caseBoundary.get(),n=i.singleLetters.get();return!r||!n?e:e.replace(r,"$1_$2").replace(n,"$1_$2$3").toLocaleLowerCase()}};Ch.caseBoundary=new mc("(\\p{Ll})(\\p{Lu})","gmu");Ch.singleLetters=new mc("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");v1=class i extends Wd{constructor(){super({id:"editor.action.transformToCamelcase",label:b("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:F.writable})}_modifyText(e,t){let r=i.wordBoundary.get();if(!r)return e;let n=e.split(r);return n.shift()+n.map(s=>s.substring(0,1).toLocaleUpperCase()+s.substring(1)).join("")}};v1.wordBoundary=new mc("[_\\s-]","gm");Sh=class i extends Wd{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every(t=>t.isSupported())}constructor(){super({id:"editor.action.transformToKebabcase",label:b("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:F.writable})}_modifyText(e,t){let r=i.caseBoundary.get(),n=i.singleLetters.get(),o=i.underscoreBoundary.get();return!r||!n||!o?e:e.replace(o,"$1-$3").replace(r,"$1-$2").replace(n,"$1-$2").toLocaleLowerCase()}};Sh.caseBoundary=new mc("(\\p{Ll})(\\p{Lu})","gmu");Sh.singleLetters=new mc("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu");Sh.underscoreBoundary=new mc("(\\S)(_)(\\S)","gm");ee(V8);ee(q8);ee(K8);ee($8);ee(G8);ee(Y8);ee(X8);ee(Q8);ee(wS);ee(Z8);ee(J8);ee(e7);ee(t7);ee(i7);ee(r7);ee(n7);ee(o7);ee(s7);ee(a7);ee(l7);Ch.caseBoundary.isSupported()&&Ch.singleLetters.isSupported()&&ee(Ch);v1.wordBoundary.isSupported()&&ee(v1);b1.titleBoundary.isSupported()&&ee(b1);Sh.isSupported()&&ee(Sh)});var mY=N(()=>{});var gY=N(()=>{mY()});function vY(i,e,t,r){let n=i.ordered(e);return u_(n.map(o=>()=>d7(this,void 0,void 0,function*(){try{return yield o.provideLinkedEditingRanges(e,t,r)}catch(s){Xt(s);return}})),o=>!!o&&Ki(o==null?void 0:o.ranges))}var Jbe,CS,d7,SS,bY,e1e,Vd,u7,t1e,tut,f7=N(()=>{mi();jt();ki();ca();qt();ei();ke();Ni();Ir();lt();In();di();et();ti();Ur();Hr();He();wt();Pt();tn();Ds();al();gY();Jbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},CS=function(i,e){return function(t,r){e(t,r,i)}},d7=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},bY=new ht("LinkedEditingInputVisible",!1),e1e="linked-editing-decoration",Vd=SS=class extends ce{static get(e){return e.getContribution(SS.ID)}constructor(e,t,r,n,o){super(),this.languageConfigurationService=n,this._syncRangesToken=0,this._localToDispose=this._register(new le),this._editor=e,this._providers=r.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=bY.bindTo(t),this._debounceInformation=o.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 le),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize(!0))),this._register(this._editor.onDidChangeConfiguration(s=>{(s.hasChanged(68)||s.hasChanged(91))&&this.reinitialize(!1)})),this._register(this._providers.onDidChange(()=>this.reinitialize(!1))),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize(!0))),this.reinitialize(!0)}reinitialize(e){let t=this._editor.getModel(),r=t!==null&&(this._editor.getOption(68)||this._editor.getOption(91))&&this._providers.has(t);if(r===this._enabled&&!e||(this._enabled=r,this.clearRanges(),this._localToDispose.clear(),!r||t===null))return;this._localToDispose.add(ci.runAndSubscribe(t.onDidChangeLanguageConfiguration,()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()}));let n=new Do(this._debounceInformation.get(t)),o=()=>{var l;this._rangeUpdateTriggerPromise=n.trigger(()=>this.updateRanges(),(l=this._debounceDuration)!==null&&l!==void 0?l:this._debounceInformation.get(t))},s=new Do(0),a=l=>{this._rangeSyncTriggerPromise=s.trigger(()=>this._syncRanges(l))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{o()})),this._localToDispose.add(this._editor.onDidChangeModelContent(l=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){let c=this._currentDecorations.getRange(0);if(c&&l.changes.every(d=>c.intersectRanges(d.range))){a(this._syncRangesToken);return}}o()})),this._localToDispose.add({dispose:()=>{n.dispose(),s.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||this._currentDecorations.length===0)return;let t=this._editor.getModel(),r=this._currentDecorations.getRange(0);if(!r||r.startLineNumber!==r.endLineNumber)return this.clearRanges();let n=t.getValueInRange(r);if(this._currentWordPattern){let s=n.match(this._currentWordPattern);if((s?s[0].length:0)!==n.length)return this.clearRanges()}let o=[];for(let s=1,a=this._currentDecorations.length;s1){this.clearRanges();return}let r=this._editor.getModel(),n=r.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===n){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){let s=this._currentDecorations.getRange(0);if(s&&s.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=n;let o=Jt(s=>d7(this,void 0,void 0,function*(){try{let a=new mr(!1),l=yield vY(this._providers,r,t,s);if(this._debounceInformation.update(r,a.elapsed()),o!==this._currentRequest||(this._currentRequest=null,n!==r.getVersionId()))return;let c=[];l!=null&&l.ranges&&(c=l.ranges),this._currentWordPattern=(l==null?void 0:l.wordPattern)||this._languageWordPattern;let d=!1;for(let h=0,f=c.length;h({range:h,options:SS.DECORATION}));this._visibleContextKey.set(!0),this._currentDecorations.set(u),this._syncRangesToken++}catch(a){Yo(a)||ft(a),(this._currentRequest===o||!this._currentRequest)&&this.clearRanges()}}));return this._currentRequest=o,o})}};Vd.ID="editor.contrib.linkedEditing";Vd.DECORATION=mt.register({description:"linked-editing",stickiness:0,className:e1e});Vd=SS=Jbe([CS(1,it),CS(2,Se),CS(3,Ot),CS(4,lr)],Vd);u7=class extends de{constructor(){super({id:"editor.action.linkedEditing",label:b("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:fe.and(F.writable,F.hasRenameProvider),kbOpts:{kbExpr:F.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){let r=e.get(ai),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return yt.isUri(n)&&Ie.isIPosition(o)?r.openCodeEditor({resource:n},r.getActiveCodeEditor()).then(s=>{s&&(s.setPosition(o),s.invokeWithinContext(a=>(this.reportTelemetry(a,s),this.run(a,s))))},ft):super.runCommand(e,t)}run(e,t){let r=Vd.get(t);return r?Promise.resolve(r.updateRanges(!0)):Promise.resolve()}},t1e=Fi.bindToContribution(Vd.get);We(new t1e({id:"cancelLinkedEditingInput",precondition:bY,handler:i=>i.clearRanges(),kbOpts:{kbExpr:F.editorTextFocus,weight:100+99,primary:9,secondary:[1033]}}));tut=je("editor.linkedEditingBackground",{dark:vt.fromHex("#f00").transparent(.3),light:vt.fromHex("#f00").transparent(.3),hcDark:vt.fromHex("#f00").transparent(.3),hcLight:vt.white},b("editorLinkedEditingBackground","Background color when the editor auto renames on type."));$n("_executeLinkedEditingProvider",(i,e,t)=>{let{linkedEditingRangeProvider:r}=i.get(Se);return vY(r,e,t,st.None)});Ue(Vd.ID,Vd,1);ee(u7)});var _Y=N(()=>{});var yY=N(()=>{_Y()});function m7(i,e,t){let r=[],n=i.ordered(e).reverse().map((o,s)=>Promise.resolve(o.provideLinks(e,t)).then(a=>{a&&(r[s]=[a,o])},Xt));return Promise.all(n).then(()=>{let o=new kS(hn(r));return t.isCancellationRequested?(o.dispose(),new kS([])):o})}var wY,p7,kS,xY=N(()=>{mi();ki();qt();ke();zr();Ir();et();Xo();Vi();Pt();wY=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},p7=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}resolve(e){return wY(this,void 0,void 0,function*(){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"))})}},kS=class i{constructor(e){this._disposables=new le;let t=[];for(let[r,n]of e){let o=r.links.map(s=>new p7(s,n));t=i._union(t,o),Fv(r)&&this._disposables.add(r)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){let r=[],n,o,s,a;for(n=0,s=0,o=e.length,a=t.length;nwY(void 0,void 0,void 0,function*(){let[t,r]=e;Bt(t instanceof yt),typeof r!="number"&&(r=0);let{linkProvider:n}=i.get(Se),o=i.get(Di).getModel(t);if(!o)return[];let s=yield m7(n,o,st.None);if(!s)return[];for(let l=0;l{jt();ki();qt();Es();ke();Dm();Tn();Lo();al();Ir();yY();lt();Ur();Ds();Pt();i1();xY();He();Mo();is();i1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ES=function(i,e){return function(t,r){e(t,r,i)}},r1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},$p=g7=class extends ce{static get(e){return e.getContribution(g7.ID)}constructor(e,t,r,n,o){super(),this.editor=e,this.openerService=t,this.notificationService=r,this.languageFeaturesService=n,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=o.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new ui(()=>this.computeLinksNow(),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;let s=this._register(new Qa(e));this._register(s.onMouseMoveOrRelevantKeyDown(([a,l])=>{this._onEditorMouseMove(a,l)})),this._register(s.onExecute(a=>{this.onEditorMouseUp(a)})),this._register(s.onCancel(a=>{this.cleanUpActiveLinkDecoration()})),this._register(e.onDidChangeConfiguration(a=>{a.hasChanged(69)&&(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)}computeLinksNow(){return r1e(this,void 0,void 0,function*(){if(!this.editor.hasModel()||!this.editor.getOption(69))return;let e=this.editor.getModel();if(this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=Jt(t=>m7(this.providers,e,t));try{let t=new mr(!1);if(this.activeLinksList=yield this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(t){ft(t)}finally{this.computePromise=null}}})}updateDecorations(e){let t=this.editor.getOption(76)==="altKey",r=[],n=Object.keys(this.currentOccurrences);for(let s of n){let a=this.currentOccurrences[s];r.push(a.decorationId)}let o=[];if(e)for(let s of e)o.push(TS.decoration(s,t));this.editor.changeDecorations(s=>{let a=s.deltaDecorations(r,o);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let l=0,c=a.length;l{n.activate(o,r),this.activeLinkDecorationId=n.decorationId})}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){let e=this.editor.getOption(76)==="altKey";if(this.activeLinkDecorationId){let t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations(r=>{t.deactivate(r,e)}),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;let t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,r=!1){if(!this.openerService)return;let{link:n}=e;n.resolve(st.None).then(o=>{if(typeof o=="string"&&this.editor.hasModel()){let s=this.editor.getModel().uri;if(s.scheme===Eo.file&&o.startsWith(`${Eo.file}:`)){let a=yt.parse(o);if(a.scheme===Eo.file){let l=XP(a),c=null;l.startsWith("/./")?c=`.${l.substr(1)}`:l.startsWith("//./")&&(c=`.${l.substr(2)}`),c&&(o=JP(s,c))}}}return this.openerService.open(o,{openToSide:t,fromUserGesture:r,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})},o=>{let s=o instanceof Error?o.message:o;s==="invalid"?this.notificationService.warn(b("invalid.url","Failed to open this link because it is not well-formed: {0}",n.url.toString())):s==="missing"?this.notificationService.warn(b("missing.url","Failed to open this link because its target is missing.")):ft(o)})}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;let t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(let r of t){let n=this.currentOccurrences[r.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()}};$p.ID="editor.linkDetector";$p=g7=i1e([ES(1,tr),ES(2,Ri),ES(3,Se),ES(4,lr)],$p);CY={general:mt.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:mt.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},TS=class i{static decoration(e,t){return{range:e.range,options:i._getOptions(e,t,!1)}}static _getOptions(e,t,r){let n=Object.assign({},r?CY.active:CY.general);return n.hoverMessage=n1e(e,t),n}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,i._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,i._getOptions(this.link,t,!1))}};b7=class extends de{constructor(){super({id:"editor.action.openLink",label:b("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){let r=$p.get(t);if(!r||!t.hasModel())return;let n=t.getSelections();for(let o of n){let s=r.getLinkOccurrence(o.getEndPosition());s&&r.openLinkOccurrence(s,!1)}}};Ue($p.ID,$p,1);ee(b7)});var _1,_7=N(()=>{ke();lt();_1=class extends ce{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown(t=>{let r=this._editor.getOption(115);r>=0&&t.target.type===6&&t.target.position.column>=r&&this._editor.updateOptions({stopRenderingLineAfter:-1})}))}};_1.ID="editor.contrib.longLinesHelper";Ue(_1.ID,_1,2)});var SY=N(()=>{});var kY=N(()=>{SY()});function EY(i){return i===Qm.Write?l1e:i===Qm.Text?c1e:h1e}function TY(i){return i?u1e:d1e}var IS,AS,o1e,s1e,a1e,l1e,c1e,d1e,u1e,h1e,y7=N(()=>{kY();qc();Ur();fn();He();tn();rn();IS=je("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},b("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);je("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},b("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);je("editor.wordHighlightTextBackground",{light:IS,dark:IS,hcDark:IS,hcLight:IS},b("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);AS=je("editor.wordHighlightBorder",{light:null,dark:null,hcDark:ua,hcLight:ua},b("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));je("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:ua,hcLight:ua},b("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable."));je("editor.wordHighlightTextBorder",{light:AS,dark:AS,hcDark:AS,hcLight:AS},b("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));o1e=je("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},b("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),s1e=je("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},b("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),a1e=je("editorOverviewRuler.wordHighlightTextForeground",{dark:gf,light:gf,hcDark:gf,hcLight:gf},b("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),l1e=mt.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Ei(s1e),position:Gn.Center},minimap:{color:Ei(Gm),position:la.Inline}}),c1e=mt.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:Ei(a1e),position:Gn.Center},minimap:{color:Ei(Gm),position:la.Inline}}),d1e=mt.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:Ei(gf),position:Gn.Center},minimap:{color:Ei(Gm),position:la.Inline}}),u1e=mt.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),h1e=mt.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:Ei(o1e),position:Gn.Center},minimap:{color:Ei(Gm),position:la.Inline}});bf((i,e)=>{let t=i.getColor(xO);t&&e.addRule(`.monaco-editor .selectionHighlight { background-color: ${t.transparent(.5)}; }`)})});function Kd(i,e){let t=e.filter(r=>!i.find(n=>n.equals(r)));if(t.length>=1){let r=t.map(o=>`line ${o.viewState.position.lineNumber} column ${o.viewState.position.column}`).join(", "),n=t.length===1?b("cursorAdded","Cursor added: {0}",r):b("cursorsAdded","Cursors added: {0}",r);uu(n)}}function AY(i,e,t){let r=IY(i,e[0],!t);for(let n=1,o=e.length;n{Io();jt();ll();ke();lt();IP();et();Ar();ti();y2();He();Ji();wt();Pt();y7();Ut();f1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},p1e=function(i,e){return function(t,r){e(t,r,i)}};x7=class extends de{constructor(){super({id:"editor.action.insertCursorAbove",label:b("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,r){if(!t.hasModel())return;let n=!0;r&&r.logicalLine===!1&&(n=!1);let o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();let s=o.getCursorStates();o.setCursorStates(r.source,3,Fm.addCursorUp(o,s,n)),o.revealTopMostCursor(r.source),Kd(s,o.getCursorStates())}},C7=class extends de{constructor(){super({id:"editor.action.insertCursorBelow",label:b("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,r){if(!t.hasModel())return;let n=!0;r&&r.logicalLine===!1&&(n=!1);let o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();let s=o.getCursorStates();o.setCursorStates(r.source,3,Fm.addCursorDown(o,s,n)),o.revealBottomMostCursor(r.source),Kd(s,o.getCursorStates())}},S7=class extends de{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:b("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,r){if(!e.isEmpty()){for(let n=e.startLineNumber;n1&&r.push(new Qe(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;let r=t.getModel(),n=t.getSelections(),o=t._getViewModel(),s=o.getCursorStates(),a=[];n.forEach(l=>this.getCursorsForSelection(l,r,a)),a.length>0&&t.setSelections(a),Kd(s,o.getCursorStates())}},k7=class extends de{constructor(){super({id:"editor.action.addCursorsToBottom",label:b("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;let r=t.getSelections(),n=t.getModel().getLineCount(),o=[];for(let l=r[0].startLineNumber;l<=n;l++)o.push(new Qe(l,r[0].startColumn,l,r[0].endColumn));let s=t._getViewModel(),a=s.getCursorStates();o.length>0&&t.setSelections(o),Kd(a,s.getCursorStates())}},E7=class extends de{constructor(){super({id:"editor.action.addCursorsToTop",label:b("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;let r=t.getSelections(),n=[];for(let a=r[0].startLineNumber;a>=1;a--)n.push(new Qe(a,r[0].startColumn,a,r[0].endColumn));let o=t._getViewModel(),s=o.getCursorStates();n.length>0&&t.setSelections(n),Kd(s,o.getCursorStates())}},Gp=class{constructor(e,t,r){this.selections=e,this.revealRange=t,this.revealScrollType=r}},LS=class i{static create(e,t){if(!e.hasModel())return null;let r=t.getState();if(!e.hasTextFocus()&&r.isRevealed&&r.searchString.length>0)return new i(e,t,!1,r.searchString,r.wholeWord,r.matchCase,null);let n=!1,o,s,a=e.getSelections();a.length===1&&a[0].isEmpty()?(n=!0,o=!0,s=!0):(o=r.wholeWord,s=r.matchCase);let l=e.getSelection(),c,d=null;if(l.isEmpty()){let u=e.getConfiguredWordAtPosition(l.getStartPosition());if(!u)return null;c=u.word,d=new Qe(l.startLineNumber,u.startColumn,l.startLineNumber,u.endColumn)}else c=e.getModel().getValueInRange(l).replace(/\r\n/g,` +`);return new i(e,t,n,c,o,s,d)}constructor(e,t,r,n,o,s,a){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=r,this.searchText=n,this.wholeWord=o,this.matchCase=s,this.currentMatch=a}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new Gp(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new Gp(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let n=this.currentMatch;return this.currentMatch=null,n}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],r=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(128):null,!1);return r?new Qe(r.range.startLineNumber,r.range.startColumn,r.range.endLineNumber,r.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new Gp(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new Gp(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let n=this.currentMatch;return this.currentMatch=null,n}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],r=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(128):null,!1);return r?new Qe(r.range.startLineNumber,r.range.startColumn,r.range.endLineNumber,r.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();let t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(128):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(128):null,!1,1073741824)}},kh=class i extends ce{static get(e){return e.getContribution(i.ID)}constructor(e){super(),this._sessionDispose=this._register(new le),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){let t=LS.create(this._editor,e);if(!t)return;this._session=t;let r={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(r.wholeWordOverride=1,r.matchCaseOverride=1,r.isRegexOverride=2),e.getState().change(r,!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){let 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;let r=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return r?new Qe(t.startLineNumber,r.startColumn,t.startLineNumber,r.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){let t=this._editor.getSelections();if(t.length>1){let n=e.getState().matchCase;if(!AY(this._editor.getModel(),t,n)){let s=this._editor.getModel(),a=[];for(let l=0,c=t.length;l0&&r.isRegex){let n=this._editor.getModel();r.searchScope?t=n.findMatches(r.searchString,r.searchScope,r.isRegex,r.matchCase,r.wholeWord?this._editor.getOption(128):null,!1,1073741824):t=n.findMatches(r.searchString,!0,r.isRegex,r.matchCase,r.wholeWord?this._editor.getOption(128):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(r.searchScope)}if(t.length>0){let n=this._editor.getSelection();for(let o=0,s=t.length;onew Qe(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn)))}}};kh.ID="editor.contrib.multiCursorController";qd=class extends de{run(e,t){let r=kh.get(t);if(!r)return;let n=t._getViewModel();if(n){let o=n.getCursorStates(),s=ln.get(t);if(s)this._run(r,s);else{let a=e.get(Ke).createInstance(ln,t);this._run(r,a),a.dispose()}Kd(o,n.getCursorStates())}}},T7=class extends qd{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:b("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:2082,weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}},I7=class extends qd{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:b("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}},A7=class extends qd{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:b("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:gi(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}},L7=class extends qd{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:b("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)}},D7=class extends qd{constructor(){super({id:"editor.action.selectHighlights",label:b("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:3114,weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}},M7=class extends qd{constructor(){super({id:"editor.action.changeAll",label:b("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:fe.and(F.writable,F.editorTextFocus),kbOpts:{kbExpr:F.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}},N7=class{constructor(e,t,r,n,o){this._model=e,this._searchText=t,this._matchCase=r,this._wordSeparators=n,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,o&&this._model===o._model&&this._searchText===o._searchText&&this._matchCase===o._matchCase&&this._wordSeparators===o._wordSeparators&&this._modelVersionId===o._modelVersionId&&(this._cachedFindMatches=o._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(B.compareRangesUsingStarts)),this._cachedFindMatches}},y1=w7=class extends ce{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(106),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new ui(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(n=>{this._isEnabled=e.getOption(106)})),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()}));let r=ln.get(e);r&&this._register(r.getState().onFindReplaceStateChange(n=>{this._update()})),this.updateSoon.schedule()}_update(){this._setState(w7._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,r){if(!t||!r.hasModel())return null;let n=r.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;let o=kh.get(r);if(!o)return null;let s=ln.get(r);if(!s)return null;let a=o.getSession(s);if(!a){let d=r.getSelections();if(d.length>1){let h=s.getState().matchCase;if(!AY(r.getModel(),d,h))return null}a=LS.create(r,s)}if(!a||a.currentMatch||/^[ \t]+$/.test(a.searchText)||a.searchText.length>200)return null;let l=s.getState(),c=l.matchCase;if(l.isRevealed){let d=l.searchString;c||(d=d.toLowerCase());let u=a.searchText;if(c||(u=u.toLowerCase()),d===u&&a.matchCase===l.matchCase&&a.wholeWord===l.wholeWord&&!l.isRegex)return null}return new N7(r.getModel(),a.searchText,a.matchCase,a.wholeWord?r.getOption(128):null,e)}_setState(e){if(this.state=e,!this.state){this._decorations.clear();return}if(!this.editor.hasModel())return;let t=this.editor.getModel();if(t.isTooLargeForTokenization())return;let r=this.state.findMatches(),n=this.editor.getSelections();n.sort(B.compareRangesUsingStarts);let o=[];for(let l=0,c=0,d=r.length,u=n.length;l=u)o.push(h),l++;else{let f=B.compareRangesUsingStarts(h,n[c]);f<0?((n[c].isEmpty()||!B.areIntersecting(h,n[c]))&&o.push(h),l++):(f>0||l++,c++)}}let s=this._languageFeaturesService.documentHighlightProvider.has(t)&&this.editor.getOption(79),a=o.map(l=>({range:l,options:TY(s)}));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};y1.ID="editor.contrib.selectionHighlighter";y1=w7=f1e([p1e(1,Se)],y1);R7=class extends de{constructor(){super({id:"editor.action.focusNextCursor",label:b("mutlicursor.focusNextCursor","Focus Next Cursor"),description:{description:b("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,r){if(!t.hasModel())return;let n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();let o=Array.from(n.getCursorStates()),s=o.shift();s&&(o.push(s),n.setCursorStates(r.source,3,o),n.revealPrimaryCursor(r.source,!0),Kd(o,n.getCursorStates()))}},P7=class extends de{constructor(){super({id:"editor.action.focusPreviousCursor",label:b("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),description:{description:b("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,r){if(!t.hasModel())return;let n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();let o=Array.from(n.getCursorStates()),s=o.pop();s&&(o.unshift(s),n.setCursorStates(r.source,3,o),n.revealPrimaryCursor(r.source,!0),Kd(o,n.getCursorStates()))}};Ue(kh.ID,kh,4);Ue(y1.ID,y1,1);ee(x7);ee(C7);ee(S7);ee(T7);ee(I7);ee(A7);ee(L7);ee(D7);ee(M7);ee(k7);ee(E7);ee(R7);ee(P7)});function F7(i,e,t,r,n){return LY(this,void 0,void 0,function*(){let o=i.ordered(e);for(let s of o)try{let a=yield s.provideSignatureHelp(e,t,n,r);if(a)return a}catch(a){Xt(a)}})}var LY,gc,DS=N(()=>{ki();qt();zr();Ir();di();fn();Pt();ra();Vi();wt();LY=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},gc={Visible:new ht("parameterHintsVisible",!1),MultipleSignatures:new ht("parameterHintsMultipleSignatures",!1)};Dt.registerCommand("_executeSignatureHelpProvider",(i,...e)=>LY(void 0,void 0,void 0,function*(){let[t,r,n]=e;Bt(yt.isUri(t)),Bt(Ie.isIPosition(r)),Bt(typeof n=="string"||!n);let o=i.get(Se),s=yield i.get(Cr).createModelReference(t);try{let a=yield F7(o.signatureHelpProvider,s.object.textEditorModel,Ie.lift(r),{triggerKind:Is.Invoke,isRetrigger:!1,triggerCharacter:n},st.None);return a?(setTimeout(()=>a.dispose(),0),a.value):void 0}finally{s.dispose()}}))});function g1e(i,e){switch(e.triggerKind){case Is.Invoke:return e;case Is.ContentChange:return i;case Is.TriggerCharacter:default:return e}}var m1e,$d,w1,DY=N(()=>{jt();qt();ei();ke();K3();fn();DS();m1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};(function(i){i.Default={type:0};class e{constructor(n,o){this.request=n,this.previouslyActiveHints=o,this.type=2}}i.Pending=e;class t{constructor(n){this.hints=n,this.type=1}}i.Active=t})($d||($d={}));w1=class i extends ce{constructor(e,t,r=i.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new Je),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=$d.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new Wi),this.triggerChars=new fu,this.retriggerChars=new fu,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new Do(r),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=$d.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){let r=this.editor.getModel();if(!r||!this.providers.has(r))return;let n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(n),t).catch(ft)}next(){if(this.state.type!==1)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,r=t%e===e-1,n=this.editor.getOption(84).cycle;if((e<2||r)&&!n){this.cancel();return}this.updateActiveSignature(r&&n?0:t+1)}previous(){if(this.state.type!==1)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,r=t===0,n=this.editor.getOption(84).cycle;if((e<2||r)&&!n){this.cancel();return}this.updateActiveSignature(r&&n?e-1:t-1)}updateActiveSignature(e){this.state.type===1&&(this.state=new $d.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){return m1e(this,void 0,void 0,function*(){let t=this.state.type===1||this.state.type===2,r=this.getLastActiveHints();if(this.cancel(!0),this._pendingTriggers.length===0)return!1;let n=this._pendingTriggers.reduce(g1e);this._pendingTriggers=[];let o={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:r};if(!this.editor.hasModel())return!1;let s=this.editor.getModel(),a=this.editor.getPosition();this.state=new $d.Pending(Jt(l=>F7(this.providers,s,a,o,l)),r);try{let l=yield 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 $d.Active(l.value),this._lastSignatureHelpResult.value=l,this._onChangedHints.fire(this.state.hints),!0)}catch(l){return e===this.triggerId&&(this.state=$d.Default),ft(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();let e=this.editor.getModel();if(e)for(let t of this.providers.ordered(e)){for(let r of t.signatureHelpTriggerCharacters||[])if(r.length){let n=r.charCodeAt(0);this.triggerChars.add(n),this.retriggerChars.add(n)}for(let r of t.signatureHelpRetriggerCharacters||[])r.length&&this.retriggerChars.add(r.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;let t=e.length-1,r=e.charCodeAt(t);(this.triggerChars.has(r)||this.isTriggered&&this.retriggerChars.has(r))&&this.trigger({triggerKind:Is.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){e.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:Is.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:Is.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(84).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}};w1.DEFAULT_DELAY=120});var MY=N(()=>{});var NY=N(()=>{MY()});var b1e,z7,B7,yo,v1e,_1e,x1,RY=N(()=>{Ht();Io();N_();Zr();ei();ke();Ni();zr();NY();es();kd();DS();He();wt();is();tn();Sl();An();b1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},z7=function(i,e){return function(t,r){e(t,r,i)}},yo=Ae,v1e=Pi("parameter-hints-next",pt.chevronDown,b("parameterHintsNextIcon","Icon for show next parameter hint.")),_1e=Pi("parameter-hints-previous",pt.chevronUp,b("parameterHintsPreviousIcon","Icon for show previous parameter hint.")),x1=B7=class extends ce{constructor(e,t,r,n,o){super(),this.editor=e,this.model=t,this.renderDisposeables=this._register(new le),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new to({editor:e},o,n)),this.keyVisible=gc.Visible.bindTo(r),this.keyMultipleSignatures=gc.MultipleSignatures.bindTo(r)}createParameterHintDOMNodes(){let e=yo(".editor-widget.parameter-hints-widget"),t=Te(e,yo(".phwrapper"));t.tabIndex=-1;let r=Te(t,yo(".controls")),n=Te(r,yo(".button"+_t.asCSSSelector(_1e))),o=Te(r,yo(".overloads")),s=Te(r,yo(".button"+_t.asCSSSelector(v1e)));this._register(Lt(n,"click",h=>{cu.stop(h),this.previous()})),this._register(Lt(s,"click",h=>{cu.stop(h),this.next()}));let a=yo(".body"),l=new Cf(a,{alwaysConsumeMouseWheel:!0});this._register(l),t.appendChild(l.getDomNode());let c=Te(a,yo(".signature")),d=Te(a,yo(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:c,overloads:o,docs:d,scrollbar:l},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(h=>{this.visible&&this.editor.layoutContentWidget(this)}));let u=()=>{if(!this.domNodes)return;let h=this.editor.getOption(49);this.domNodes.element.style.fontSize=`${h.fontSize}px`,this.domNodes.element.style.lineHeight=`${h.lineHeight/h.fontSize}`};u(),this._register(ci.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(h=>h.hasChanged(49)).on(u,null)),this._register(this.editor.onDidLayoutChange(h=>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;let r=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",r),this.keyMultipleSignatures.set(r),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";let n=e.signatures[e.activeSignature];if(!n)return;let o=Te(this.domNodes.signature,yo(".code")),s=this.editor.getOption(49);o.style.fontSize=`${s.fontSize}px`,o.style.fontFamily=s.fontFamily;let a=n.parameters.length>0,l=(t=n.activeParameter)!==null&&t!==void 0?t:e.activeParameter;if(a)this.renderParameters(o,n,l);else{let u=Te(o,yo("span"));u.textContent=n.label}let c=n.parameters[l];if(c!=null&&c.documentation){let u=yo("span.documentation");if(typeof c.documentation=="string")u.textContent=c.documentation;else{let h=this.renderMarkdownDocs(c.documentation);u.appendChild(h.element)}Te(this.domNodes.docs,yo("p",{},u))}if(n.documentation!==void 0)if(typeof n.documentation=="string")Te(this.domNodes.docs,yo("p",{},n.documentation));else{let u=this.renderMarkdownDocs(n.documentation);Te(this.domNodes.docs,u.element)}let d=this.hasDocs(n,c);if(this.domNodes.signature.classList.toggle("has-docs",d),this.domNodes.docs.classList.toggle("empty",!d),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,c){let u="",h=n.parameters[l];Array.isArray(h.label)?u=n.label.substring(h.label[0],h.label[1]):u=h.label,h.documentation&&(u+=typeof h.documentation=="string"?`, ${h.documentation}`:`, ${h.documentation.value}`),n.documentation&&(u+=typeof n.documentation=="string"?`, ${n.documentation}`:`, ${n.documentation.value}`),this.announcedLabel!==u&&(ar(b("hint","{0}, hint",u)),this.announcedLabel=u)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){let t=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var r;(r=this.domNodes)===null||r===void 0||r.scrollbar.scanDomNode()}}));return t.element.classList.add("markdown-docs"),t}hasDocs(e,t){return!!(t&&typeof t.documentation=="string"&&Nc(t.documentation).length>0||t&&typeof t.documentation=="object"&&Nc(t.documentation).value.length>0||e.documentation&&typeof e.documentation=="string"&&Nc(e.documentation).length>0||e.documentation&&typeof e.documentation=="object"&&Nc(e.documentation.value).length>0)}renderParameters(e,t,r){let[n,o]=this.getParameterLabelOffsets(t,r),s=document.createElement("span");s.textContent=t.label.substring(0,n);let a=document.createElement("span");a.textContent=t.label.substring(n,o),a.className="parameter active";let l=document.createElement("span");l.textContent=t.label.substring(o),Te(e,s,a,l)}getParameterLabelOffsets(e,t){let r=e.parameters[t];if(r){if(Array.isArray(r.label))return r.label;if(r.label.length){let n=new RegExp(`(\\W|^)${cl(r.label)}(?=\\W|$)`,"g");n.test(e.label);let o=n.lastIndex-r.label.length;return o>=0?[o,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 B7.ID}updateMaxHeight(){if(!this.domNodes)return;let t=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=t;let r=this.domNodes.element.getElementsByClassName("phwrapper");r.length&&(r[0].style.maxHeight=t)}};x1.ID="editor.widget.parameterHintsWidget";x1=B7=b1e([z7(2,it),z7(3,tr),z7(4,er)],x1);je("editorHoverWidget.highlightForeground",{dark:fa,light:fa,hcDark:fa,hcLight:fa},b("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."))});var y1e,PY,H7,Eh,U7,j7,W7,V7=N(()=>{F3();ke();lt();ti();fn();Pt();DY();DS();He();wt();Ut();RY();y1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},PY=function(i,e){return function(t,r){e(t,r,i)}},Eh=H7=class extends ce{static get(e){return e.getContribution(H7.ID)}constructor(e,t,r){super(),this.editor=e,this.model=this._register(new w1(e,r.signatureHelpProvider)),this._register(this.model.onChangedHints(n=>{var o;n?(this.widget.value.show(),this.widget.value.render(n)):(o=this.widget.rawValue)===null||o===void 0||o.hide()})),this.widget=new rf(()=>this._register(t.createInstance(x1,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)}};Eh.ID="editor.controller.parameterHints";Eh=H7=y1e([PY(1,Ke),PY(2,Se)],Eh);U7=class extends de{constructor(){super({id:"editor.action.triggerParameterHints",label:b("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:F.hasSignatureHelpProvider,kbOpts:{kbExpr:F.editorTextFocus,primary:3082,weight:100}})}run(e,t){let r=Eh.get(t);r==null||r.trigger({triggerKind:Is.Invoke})}};Ue(Eh.ID,Eh,2);ee(U7);j7=100+75,W7=Fi.bindToContribution(Eh.get);We(new W7({id:"closeParameterHints",precondition:gc.Visible,handler:i=>i.cancel(),kbOpts:{weight:j7,kbExpr:F.focus,primary:9,secondary:[1033]}}));We(new W7({id:"showPrevParameterHint",precondition:fe.and(gc.Visible,gc.MultipleSignatures),handler:i=>i.previous(),kbOpts:{weight:j7,kbExpr:F.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}}));We(new W7({id:"showNextParameterHint",precondition:fe.and(gc.Visible,gc.MultipleSignatures),handler:i=>i.next(),kbOpts:{weight:j7,kbExpr:F.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))});var OY=N(()=>{});var FY=N(()=>{OY()});var w1e,q7,C1,MS,zY=N(()=>{ke();FY();di();He();wt();jr();tn();rn();w1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},q7=function(i,e){return function(t,r){e(t,r,i)}},C1=new ht("renameInputVisible",!1,b("renameInputVisible","Whether the rename input widget is visible")),MS=class{constructor(e,t,r,n,o){this._editor=e,this._acceptKeybindings=t,this._themeService=r,this._keybindingService=n,this._disposables=new le,this.allowEditorOverflow=!0,this._visibleContextKey=C1.bindTo(o),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(49)&&this._updateFont()})),this._disposables.add(r.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._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",b("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),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,r,n,o;if(!this._input||!this._domNode)return;let s=e.getColor(p_),a=e.getColor(m_);this._domNode.style.backgroundColor=String((t=e.getColor(bl))!==null&&t!==void 0?t:""),this._domNode.style.boxShadow=s?` 0 0 8px 2px ${s}`:"",this._domNode.style.border=a?`1px solid ${a}`:"",this._domNode.style.color=String((r=e.getColor(fO))!==null&&r!==void 0?r:""),this._input.style.backgroundColor=String((n=e.getColor(hO))!==null&&n!==void 0?n:"");let l=e.getColor(pO);this._input.style.borderWidth=l?"1px":"0px",this._input.style.borderStyle=l?"solid":"none",this._input.style.borderColor=(o=l==null?void 0:l.toString())!==null&&o!==void 0?o:"none"}_updateFont(){if(!this._input||!this._label)return;let e=this._editor.getOption(49);this._input.style.fontFamily=e.fontFamily,this._input.style.fontWeight=e.fontWeight,this._input.style.fontSize=`${e.fontSize}px`,this._label.style.fontSize=`${e.fontSize*.8}px`}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}beforeRender(){var e,t;let[r,n]=this._acceptKeybindings;return this._label.innerText=b({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(r))===null||e===void 0?void 0:e.getLabel(),(t=this._keybindingService.lookupKeybinding(n))===null||t===void 0?void 0:t.getLabel()),null}afterRender(e){e||this.cancelInput(!0)}acceptInput(e){var t;(t=this._currentAcceptInput)===null||t===void 0||t.call(this,e)}cancelInput(e){var t;(t=this._currentCancelInput)===null||t===void 0||t.call(this,e)}getInput(e,t,r,n,o,s){this._domNode.classList.toggle("preview",o),this._position=new Ie(e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",r.toString()),this._input.setAttribute("selectionEnd",n.toString()),this._input.size=Math.max((e.endColumn-e.startColumn)*1.1,20);let a=new le;return new Promise(l=>{this._currentCancelInput=c=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,l(c),!0),this._currentAcceptInput=c=>{if(this._input.value.trim().length===0||this._input.value===t){this.cancelInput(!0);return}this._currentAcceptInput=void 0,this._currentCancelInput=void 0,l({newName:this._input.value,wantsPreview:o&&c})},a.add(s.onCancellationRequested(()=>this.cancelInput(!0))),a.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!document.hasFocus()))),this._show()}).finally(()=>{a.dispose(),this._hide()})}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))},100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};MS=w1e([q7(2,br),q7(3,Kt),q7(4,it)],MS)});function C1e(i,e,t,r){return Ih(this,void 0,void 0,function*(){let n=new S1(e,t,i),o=yield n.resolveRenameLocation(st.None);return o!=null&&o.rejectReason?{edits:[],rejectReason:o.rejectReason}:n.provideRenameEdits(r,st.None)})}var x1e,Th,Ih,K7,S1,Ah,$7,G7,Y7=N(()=>{Io();jt();ki();qt();ke();zr();Ir();yu();lt();tg();In();di();et();ti();sne();M0();He();X3();wt();Ut();Yv();Mo();$c();dl();zY();Pt();x1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Th=function(i,e){return function(t,r){e(t,r,i)}},Ih=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},S1=class{constructor(e,t,r){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=r.ordered(e)}hasProvider(){return this._providers.length>0}resolveRenameLocation(e){return Ih(this,void 0,void 0,function*(){let t=[];for(this._providerRenameIdx=0;this._providerRenameIdx0?t.join(` `):void 0}:{range:B.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join(` `):void 0}})}provideRenameEdits(e,t){return Ih(this,void 0,void 0,function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)})}_provideRenameEdits(e,t,r,n){return Ih(this,void 0,void 0,function*(){let o=this._providers[t];if(!o)return{edits:[],rejectReason:r.join(` -`)};let s=yield o.provideRenameEdits(this.model,this.position,e,n);if(s){if(s.rejectReason)return this._provideRenameEdits(e,t+1,r.concat(s.rejectReason),n)}else return this._provideRenameEdits(e,t+1,r.concat(b("no result","No result.")),n);return s})}};Ah=K7=class{static get(e){return e.getContribution(K7.ID)}constructor(e,t,r,n,o,s,a,l){this.editor=e,this._instaService=t,this._notificationService=r,this._bulkEditService=n,this._progressService=o,this._logService=s,this._configService=a,this._languageFeaturesService=l,this._disposableStore=new ae,this._cts=new zi,this._renameInputField=this._disposableStore.add(this._instaService.createInstance(MS,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}run(){var e,t;return Ih(this,void 0,void 0,function*(){if(this._cts.dispose(!0),this._cts=new zi,!this.editor.hasModel())return;let r=this.editor.getPosition(),n=new S1(this.editor.getModel(),r,this._languageFeaturesService.renameProvider);if(!n.hasProvider())return;let o=new ga(this.editor,5,void 0,this._cts.token),s;try{let m=n.resolveRenameLocation(o.token);this._progressService.showWhile(m,250),s=yield m}catch(m){(e=qr.get(this.editor))===null||e===void 0||e.showMessage(m||b("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),r);return}finally{o.dispose()}if(!s)return;if(s.rejectReason){(t=qr.get(this.editor))===null||t===void 0||t.showMessage(s.rejectReason,r);return}if(o.token.isCancellationRequested)return;let a=new ga(this.editor,5,s.range,this._cts.token),l=this.editor.getSelection(),c=0,d=s.text.length;!B.isEmpty(l)&&!B.spansMultipleLines(l)&&B.containsRange(s.range,l)&&(c=Math.max(0,l.startColumn-s.range.startColumn),d=Math.min(s.range.endColumn,l.endColumn)-s.range.startColumn);let u=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),h=yield this._renameInputField.getInput(s.range,s.text,c,d,u,a.token);if(typeof h=="boolean"){h&&this.editor.focus(),a.dispose();return}this.editor.focus();let f=Vc(n.provideRenameEdits(h.newName,a.token),a.token).then(m=>Ih(this,void 0,void 0,function*(){if(!(!m||!this.editor.hasModel())){if(m.rejectReason){this._notificationService.info(m.rejectReason);return}this.editor.setSelection(B.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(m,{editor:this.editor,showPreview:h.wantsPreview,label:b("label","Renaming '{0}' to '{1}'",s==null?void 0:s.text,h.newName),code:"undoredo.rename",quotableLabel:b("quotableLabel","Renaming {0} to {1}",s==null?void 0:s.text,h.newName),respectAutoSaveConfig:!0}).then(g=>{g.ariaSummary&&ar(b("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",s.text,h.newName,g.ariaSummary))}).catch(g=>{this._notificationService.error(b("rename.failedApply","Rename failed to apply edits")),this._logService.error(g)})}}),m=>{this._notificationService.error(b("rename.failed","Rename failed to compute edits")),this._logService.error(m)}).finally(()=>{a.dispose()});return this._progressService.showWhile(f,250),f})}acceptRenameInput(e){this._renameInputField.acceptInput(e)}cancelRenameInput(){this._renameInputField.cancelInput(!0)}};Ah.ID="editor.contrib.renameController";Ah=K7=x1e([Th(1,Ke),Th(2,Ri),Th(3,Kc),Th(4,vl),Th(5,Hc),Th(6,hz),Th(7,Se)],Ah);$7=class extends de{constructor(){super({id:"editor.action.rename",label:b("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:fe.and(O.writable,O.hasRenameProvider),kbOpts:{kbExpr:O.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){let r=e.get(ai),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return yt.isUri(n)&&Ie.isIPosition(o)?r.openCodeEditor({resource:n},r.getActiveCodeEditor()).then(s=>{s&&(s.setPosition(o),s.invokeWithinContext(a=>(this.reportTelemetry(a,s),this.run(a,s))))},ft):super.runCommand(e,t)}run(e,t){let r=Ah.get(t);return r?r.run():Promise.resolve()}};Ue(Ah.ID,Ah,4);ee($7);G7=Fi.bindToContribution(Ah.get);We(new G7({id:"acceptRenameInput",precondition:C1,handler:i=>i.acceptRenameInput(!1),kbOpts:{weight:100+99,kbExpr:fe.and(O.focus,fe.not("isComposing")),primary:3}}));We(new G7({id:"acceptRenameInputWithPreview",precondition:fe.and(C1,fe.has("config.editor.rename.enablePreview")),handler:i=>i.acceptRenameInput(!0),kbOpts:{weight:100+99,kbExpr:fe.and(O.focus,fe.not("isComposing")),primary:1024+3}}));We(new G7({id:"cancelRenameInput",precondition:C1,handler:i=>i.cancelRenameInput(),kbOpts:{weight:100+99,kbExpr:O.focus,primary:9,secondary:[1033]}}));$n("_executeDocumentRenameProvider",function(i,e,t,...r){let[n]=r;Bt(typeof n=="string");let{renameProvider:o}=i.get(Se);return C1e(o,e,t,n)});$n("_executePrepareRename",function(i,e,t){return Ih(this,void 0,void 0,function*(){let{renameProvider:r}=i.get(Se),o=yield new S1(e,t,r).resolveRenameLocation(st.None);if(o!=null&&o.rejectReason)throw new Error(o.rejectReason);return o})});Jr.as(af.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:b("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})});function S1e(i){for(let e=0,t=i.length;e{pre();Tn()});function k1(i){return i&&!!i.data}function J7(i){return i&&Array.isArray(i.edits)}function eD(i,e){return i.has(e)}function T1e(i,e){let t=i.orderedGroups(e);return t.length>0?t[0]:[]}function tD(i,e,t,r,n){return Gd(this,void 0,void 0,function*(){let o=T1e(i,e),s=yield Promise.all(o.map(a=>Gd(this,void 0,void 0,function*(){let l,c=null;try{l=yield a.provideDocumentSemanticTokens(e,a===t?r:null,n)}catch(d){c=d,l=null}return(!l||!k1(l)&&!J7(l))&&(l=null),new Q7(a,l,c)})));for(let a of s){if(a.error)throw a.error;if(a.tokens)return a}return s.length>0?s[0]:null})}function I1e(i,e){let t=i.orderedGroups(e);return t.length>0?t[0]:null}function HY(i,e){return i.has(e)}function UY(i,e){let t=i.orderedGroups(e);return t.length>0?t[0]:[]}function NS(i,e,t,r){return Gd(this,void 0,void 0,function*(){let n=UY(i,e),o=yield Promise.all(n.map(s=>Gd(this,void 0,void 0,function*(){let a;try{a=yield s.provideDocumentRangeSemanticTokens(e,t,r)}catch(l){Xt(l),a=null}return(!a||!k1(a))&&(a=null),new Z7(s,a)})));for(let s of o)if(s.tokens)return s;return o.length>0?o[0]:null})}var Gd,Q7,Z7,iD=M(()=>{ki();qt();Ir();Xo();Vi();zr();BY();et();Pt();Gd=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};Q7=class{constructor(e,t,r){this.provider=e,this.tokens=t,this.error=r}};Z7=class{constructor(e,t){this.provider=e,this.tokens=t}};Dt.registerCommand("_provideDocumentSemanticTokensLegend",(i,...e)=>Gd(void 0,void 0,void 0,function*(){let[t]=e;Bt(t instanceof yt);let r=i.get(Di).getModel(t);if(!r)return;let{documentSemanticTokensProvider:n}=i.get(Se),o=I1e(n,r);return o?o[0].getLegend():i.get(_i).executeCommand("_provideDocumentRangeSemanticTokensLegend",t)}));Dt.registerCommand("_provideDocumentSemanticTokens",(i,...e)=>Gd(void 0,void 0,void 0,function*(){let[t]=e;Bt(t instanceof yt);let r=i.get(Di).getModel(t);if(!r)return;let{documentSemanticTokensProvider:n}=i.get(Se);if(!eD(n,r))return i.get(_i).executeCommand("_provideDocumentRangeSemanticTokens",t,r.getFullModelRange());let o=yield tD(n,r,null,null,st.None);if(!o)return;let{provider:s,tokens:a}=o;if(!a||!k1(a))return;let l=X7({id:0,type:"full",data:a.data});return a.resultId&&s.releaseDocumentSemanticTokens(a.resultId),l}));Dt.registerCommand("_provideDocumentRangeSemanticTokensLegend",(i,...e)=>Gd(void 0,void 0,void 0,function*(){let[t,r]=e;Bt(t instanceof yt);let n=i.get(Di).getModel(t);if(!n)return;let{documentRangeSemanticTokensProvider:o}=i.get(Se),s=UY(o,n);if(s.length===0)return;if(s.length===1)return s[0].getLegend();if(!r||!B.isIRange(r))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),s[0].getLegend();let a=yield NS(o,n,B.lift(r),st.None);if(a)return a.provider.getLegend()}));Dt.registerCommand("_provideDocumentRangeSemanticTokens",(i,...e)=>Gd(void 0,void 0,void 0,function*(){let[t,r]=e;Bt(t instanceof yt),Bt(B.isIRange(r));let n=i.get(Di).getModel(t);if(!n)return;let{documentRangeSemanticTokensProvider:o}=i.get(Se),s=yield NS(o,n,B.lift(r),st.None);if(!(!s||!s.tokens))return X7({id:0,type:"full",data:s.tokens.data})}))});function T1(i,e,t){var r;let n=(r=t.getValue(E1,{overrideIdentifier:i.getLanguageId(),resource:i.uri}))===null||r===void 0?void 0:r.enabled;return typeof n=="boolean"?n:e.getColorTheme().semanticHighlighting}var E1,rD=M(()=>{E1="editor.semanticHighlighting"});var jY,Ja,Yd,nD,I1,oD,sD=M(()=>{ke();qt();Xo();Sr();jt();ki();rn();fz();iD();Ds();al();Pt();pz();j_();rD();jY=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ja=function(i,e){return function(t,r){e(t,r,i)}},nD=class extends ce{constructor(e,t,r,n,o,s){super(),this._watchers=Object.create(null);let a=d=>{this._watchers[d.uri.toString()]=new I1(d,e,r,o,s)},l=(d,u)=>{u.dispose(),delete this._watchers[d.uri.toString()]},c=()=>{for(let d of t.getModels()){let u=this._watchers[d.uri.toString()];T1(d,r,n)?u||a(d):u&&l(d,u)}};this._register(t.onModelAdded(d=>{T1(d,r,n)&&a(d)})),this._register(t.onModelRemoved(d=>{let u=this._watchers[d.uri.toString()];u&&l(d,u)})),this._register(n.onDidChangeConfiguration(d=>{d.affectsConfiguration(E1)&&c()})),this._register(r.onDidColorThemeChange(c))}dispose(){for(let e of Object.values(this._watchers))e.dispose();super.dispose()}};nD=jY([Ja(0,dg),Ja(1,Di),Ja(2,br),Ja(3,Mt),Ja(4,lr),Ja(5,Se)],nD);I1=Yd=class extends ce{constructor(e,t,r,n,o){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=o.documentSemanticTokensProvider,this._debounceInformation=n.for(this._provider,"DocumentSemanticTokens",{min:Yd.REQUEST_MIN_DELAY,max:Yd.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new ui(()=>this._fetchDocumentSemanticTokensNow(),Yd.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)}));let s=()=>{ji(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(let 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)}))};s(),this._register(this._provider.onDidChange(()=>{s(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(r.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),ji(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!eD(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}if(!this._model.isAttachedToEditor())return;let e=new zi,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,r=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=tD(this._provider,this._model,t,r,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;let o=[],s=this._model.onDidChangeContent(l=>{o.push(l)}),a=new mr(!1);n.then(l=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,s.dispose(),!l)this._setDocumentSemanticTokens(null,null,null,o);else{let{provider:c,tokens:d}=l,u=this._semanticTokensStylingService.getStyling(c);this._setDocumentSemanticTokens(c,d||null,u,o)}},l=>{l&&(Yo(l)||typeof l.message=="string"&&l.message.indexOf("busy")!==-1)||ft(l),this._currentDocumentRequestCancellationTokenSource=null,s.dispose(),(o.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,r,n,o){o=Math.min(o,r.length-n,e.length-t);for(let s=0;s{(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||!r){this._model.tokenization.setSemanticTokens(null,!1);return}if(!t){this._model.tokenization.setSemanticTokens(null,!0),s();return}if(J7(t)){if(!o){this._model.tokenization.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:o.data};else{let a=0;for(let h of t.edits)a+=(h.data?h.data.length:0)-h.deleteCount;let l=o.data,c=new Uint32Array(l.length+a),d=l.length,u=c.length;for(let h=t.edits.length-1;h>=0;h--){let f=t.edits[h];if(f.start>l.length){r.warnInvalidEditStart(o.resultId,t.resultId,h,f.start,l.length),this._model.tokenization.setSemanticTokens(null,!0);return}let m=d-(f.start+f.deleteCount);m>0&&(Yd._copy(l,d-m,c,u-m,m),u-=m),f.data&&(Yd._copy(f.data,0,c,u-f.data.length,f.data.length),u-=f.data.length),d=f.start}d>0&&Yd._copy(l,0,c,0,d),t={resultId:t.resultId,data:c}}}if(k1(t)){this._currentDocumentResponse=new oD(e,t.resultId,t.data);let a=ny(t,r,this._model.getLanguageId());if(n.length>0)for(let l of n)for(let c of a)for(let d of l.changes)c.applyEdit(d.range,d.text);this._model.tokenization.setSemanticTokens(a,!0)}else this._model.tokenization.setSemanticTokens(null,!0);s()}};I1.REQUEST_MIN_DELAY=300;I1.REQUEST_MAX_DELAY=2e3;I1=Yd=jY([Ja(1,dg),Ja(2,br),Ja(3,lr),Ja(4,Se)],I1);oD=class{constructor(e,t,r){this.provider=e,this.resultId=t,this.data=r}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}};Yc(nD)});var A1e,A1,L1,aD=M(()=>{jt();ke();lt();iD();rD();fz();Sr();rn();Ds();al();Pt();pz();A1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},A1=function(i,e){return function(t,r){e(t,r,i)}},L1=class extends ce{constructor(e,t,r,n,o,s){super(),this._semanticTokensStylingService=t,this._themeService=r,this._configurationService=n,this._editor=e,this._provider=s.documentRangeSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new ui(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[];let 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(E1)&&(this._cancelAll(),a())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),a()})),a()}_cancelAll(){for(let e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,r=this._outstandingRequests.length;tthis._requestRange(e,r)))}_requestRange(e,t){let r=e.getVersionId(),n=Jt(s=>Promise.resolve(NS(this._provider,e,t,s))),o=new mr(!1);return n.then(s=>{if(this._debounceInformation.update(e,o.elapsed()),!s||!s.tokens||e.isDisposed()||e.getVersionId()!==r)return;let{provider:a,tokens:l}=s,c=this._semanticTokensStylingService.getStyling(a);e.tokenization.setPartialSemanticTokens(t,ny(l,c,e.getLanguageId()))}).then(()=>this._removeOutstandingRequest(n),()=>this._removeOutstandingRequest(n)),n}};L1.ID="editor.contrib.viewportSemanticTokens";L1=A1e([A1(1,dg),A1(2,br),A1(3,Mt),A1(4,lr),A1(5,Se)],L1);Ue(L1.ID,L1,1)});var RS,WY=M(()=>{Ni();et();RS=class{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){let r=[];for(let n of t){let o=[];r.push(o),this.selectSubwords&&this._addInWordRanges(o,e,n),this._addWordRanges(o,e,n),this._addWhitespaceLine(o,e,n),o.push({range:e.getFullModelRange()})}return r}_addInWordRanges(e,t,r){let n=t.getWordAtPosition(r);if(!n)return;let{word:o,startColumn:s}=n,a=r.column-s,l=a,c=a,d=0;for(;l>=0;l--){let u=o.charCodeAt(l);if(l!==a&&(u===95||u===45))break;if(B3(u)&&H3(d))break;d=u}for(l+=1;c0&&t.getLineFirstNonWhitespaceColumn(r.lineNumber)===0&&t.getLineLastNonWhitespaceColumn(r.lineNumber)===0&&e.push({range:new B(r.lineNumber,1,r.lineNumber,t.getLineMaxColumn(r.lineNumber))})}}});function VY(i,e,t,r,n){return OS(this,void 0,void 0,function*(){let o=i.all(e).concat(new RS(r.selectSubwords));o.length===1&&o.unshift(new Nd);let s=[],a=[];for(let l of o)s.push(Promise.resolve(l.provideSelectionRanges(e,t,n)).then(c=>{if(Ki(c)&&c.length===t.length)for(let d=0;d{if(l.length===0)return[];l.sort((h,f)=>Ie.isBefore(h.getStartPosition(),f.getStartPosition())?1:Ie.isBefore(f.getStartPosition(),h.getStartPosition())||Ie.isBefore(h.getEndPosition(),f.getEndPosition())?-1:Ie.isBefore(f.getEndPosition(),h.getEndPosition())?1:0);let c=[],d;for(let h of l)(!d||B.containsRange(h,d)&&!B.equalsRange(h,d))&&(c.push(h),d=h);if(!r.selectLeadingAndTrailingWhitespace)return c;let u=[c[0]];for(let h=1;h{mi();ki();qt();lt();di();et();Ar();ti();oL();WY();He();Ji();Vi();Pt();ra();zr();Ir();L1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},D1e=function(i,e){return function(t,r){e(t,r,i)}},OS=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},cD=class i{constructor(e,t){this.index=e,this.ranges=t}mov(e){let t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;let r=new i(t,this.ranges);return r.ranges[t].equalsRange(this.ranges[this.index])?r.mov(e):r}},Yp=lD=class{static get(e){return e.getContribution(lD.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()}run(e){return OS(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;let t=this._editor.getSelections(),r=this._editor.getModel();if(this._state||(yield VY(this._languageFeaturesService.selectionRangeProvider,r,t.map(o=>o.getPosition()),this._editor.getOption(111),st.None).then(o=>{var s;if(!(!Ki(o)||o.length!==t.length)&&!(!this._editor.hasModel()||!ks(this._editor.getSelections(),t,(a,l)=>a.equalsSelection(l)))){for(let a=0;al.containsPosition(t[a].getStartPosition())&&l.containsPosition(t[a].getEndPosition())),o[a].unshift(t[a]);this._state=o.map(a=>new cD(0,a)),(s=this._selectionListener)===null||s===void 0||s.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(o=>o.mov(e));let n=this._state.map(o=>Qe.fromPositions(o.ranges[o.index].getStartPosition(),o.ranges[o.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(n)}finally{this._ignoreSelection=!1}})}};Yp.ID="editor.contrib.smartSelectController";Yp=lD=L1e([D1e(1,Se)],Yp);PS=class extends de{constructor(e,t){super(t),this._forward=e}run(e,t){return OS(this,void 0,void 0,function*(){let r=Yp.get(t);r&&(yield r.run(this._forward))})}},dD=class extends PS{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:b("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"1_basic",title:b({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}};Dt.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");uD=class extends PS{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:b("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"1_basic",title:b({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}};Ue(Yp.ID,Yp,4);ee(dD);ee(uD);Dt.registerCommand("_executeSelectionRangeProvider",function(i,...e){return OS(this,void 0,void 0,function*(){let[t,r]=e;Bt(yt.isUri(t));let n=i.get(Se).selectionRangeProvider,o=yield i.get(Cr).createModelReference(t);try{return VY(n,o.object.textEditorModel,r,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},st.None)}finally{o.dispose()}})})});var qY,KY=M(()=>{He();qY=Object.freeze({View:{value:b("view","View"),original:"View"},Help:{value:b("help","Help"),original:"Help"},Test:{value:b("test","Test"),original:"Test"},File:{value:b("file","File"),original:"File"},Preferences:{value:b("preferences","Preferences"),original:"Preferences"},Developer:{value:b({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer"),original:"Developer"}})});var $Y=M(()=>{});var GY=M(()=>{$Y()});var M1e,D1,YY,XY,FS,fD,pD,QY=M(()=>{Ht();ck();ke();An();GY();ene();Ap();di();zP();$F();GF();hb();nA();eA();M1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},D1=class{constructor(e,t,r,n=null){this.startLineNumbers=e,this.endLineNumbers=t,this.lastLineRelativePosition=r,this.showEndForLine=n}},YY=xf("stickyScrollViewLayer",{createHTML:i=>i}),XY="data-sticky-line-index",FS=class extends ce{constructor(e){super(),this._editor=e,this._foldingIconStore=new ae,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(65),this._stickyLines=[],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 Wo),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);let t=()=>{this._linesDomNode.style.left=this._editor.getOption(113).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(113)&&t(),r.hasChanged(65)&&(this._lineHeight=this._editor.getOption(65))})),this._register(this._editor.onDidScrollChange(r=>{r.scrollLeftChanged&&t(),r.scrollWidthChanged&&this._updateWidgetWidth()})),this._register(this._editor.onDidChangeModel(()=>{t(),this._updateWidgetWidth()})),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange(r=>{this._updateWidgetWidth()})),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getCurrentLines(){return this._lineNumbers}setState(e){if(this._clearStickyWidget(),!e||!this._editor._getViewModel())return;if(e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition>0){this._lastLineRelativePosition=e.lastLineRelativePosition;let r=[...e.startLineNumbers];e.showEndForLine!==null&&(r[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=r}else this._lastLineRelativePosition=0,this._lineNumbers=[];this._renderRootNode()}_updateWidgetWidth(){let e=this._editor.getLayoutInfo(),r=this._editor.getOption(71).side==="left"?e.contentLeft-e.minimap.minimapCanvasOuterWidth:e.contentLeft;this._lineNumbersDomNode.style.width=`${r}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",`${this._editor.getScrollWidth()-e.verticalScrollbarWidth}px`),this._rootDomNode.style.width=`${e.width-e.minimap.minimapCanvasOuterWidth-e.verticalScrollbarWidth}px`}_clearStickyWidget(){this._stickyLines=[],this._foldingIconStore.clear(),qn(this._lineNumbersDomNode),qn(this._linesDomNode),this._rootDomNode.style.display="none"}_useFoldingOpacityTransition(e){this._lineNumbersDomNode.style.setProperty("--vscode-editorStickyScroll-foldingOpacityTransition",`opacity ${e?.5:0}s`)}_setFoldingIconsVisibility(e){for(let t of this._stickyLines){let r=t.foldingIcon;r&&r.setVisible(e?!0:r.isCollapsed)}}_renderRootNode(){var e;return M1e(this,void 0,void 0,function*(){let t=yield(e=fs.get(this._editor))===null||e===void 0?void 0:e.getFoldingModel(),r=this._editor.getLayoutInfo();for(let[s,a]of this._lineNumbers.entries()){let l=this._renderChildNode(s,a,r,t);this._linesDomNode.appendChild(l.lineDomNode),this._lineNumbersDomNode.appendChild(l.lineNumberDomNode),this._stickyLines.push(l)}t&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));let n=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;if(n===0){this._clearStickyWidget();return}this._rootDomNode.style.display="block",this._lineNumbersDomNode.style.height=`${n}px`,this._linesDomNodeScrollable.style.height=`${n}px`,this._rootDomNode.style.height=`${n}px`,this._editor.getOption(71).side==="left"?this._rootDomNode.style.marginLeft=r.minimap.minimapCanvasOuterWidth+"px":this._rootDomNode.style.marginLeft="0px",this._updateMinContentWidth(),this._editor.layoutOverlayWidget(this)})}_setFoldingHoverListeners(){this._editor.getOption(108)==="mouseover"&&(this._foldingIconStore.add(Lt(this._lineNumbersDomNode,bi.MOUSE_ENTER,t=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)})),this._foldingIconStore.add(Lt(this._lineNumbersDomNode,bi.MOUSE_LEAVE,()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)})))}_renderChildNode(e,t,r,n){let o=this._editor._getViewModel(),s=o.coordinatesConverter.convertModelPositionToViewPosition(new Ie(t,1)).lineNumber,a=o.getViewLineRenderingData(s),l=this._editor.getOption(71).side,c=this._editor.getOption(66),d;try{d=ag.filter(a.inlineDecorations,s,a.minColumn,a.maxColumn)}catch(re){d=[]}let u=new G_(!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 i_(2e3),f=Y_(u,h),m;YY?m=YY.createHTML(h.build()):m=h.build();let g=document.createElement("span");g.className="sticky-line-content",g.classList.add(`stickyLine${t}`),g.style.lineHeight=`${this._lineHeight}px`,g.innerHTML=m;let w=document.createElement("span");w.className="sticky-line-number",w.style.lineHeight=`${this._lineHeight}px`;let _=l==="left"?r.contentLeft-r.minimap.minimapCanvasOuterWidth:r.contentLeft;w.style.width=`${_}px`;let E=document.createElement("span");c.renderType===1||c.renderType===3&&t%10===0?E.innerText=t.toString():c.renderType===2&&(E.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),E.className="sticky-line-number-inner",E.style.lineHeight=`${this._lineHeight}px`,E.style.width=`${r.lineNumbersWidth}px`,E.style.float="left",l==="left"?E.style.paddingLeft=`${r.lineNumbersLeft-r.minimap.minimapCanvasOuterWidth}px`:l==="right"&&(E.style.paddingLeft=`${r.lineNumbersLeft}px`),w.appendChild(E);let I=this._renderFoldingIconForLine(w,n,e,t);this._editor.applyFontInfo(g),this._editor.applyFontInfo(E),g.setAttribute("role","listitem"),g.setAttribute(XY,String(e)),g.tabIndex=0,w.style.lineHeight=`${this._lineHeight}px`,g.style.lineHeight=`${this._lineHeight}px`,w.style.height=`${this._lineHeight}px`,g.style.height=`${this._lineHeight}px`;let N=e===this._lineNumbers.length-1,U="0",z="1";g.style.zIndex=N?U:z,w.style.zIndex=N?U:z;let Y=`${e*this._lineHeight+this._lastLineRelativePosition+(I!=null&&I.isCollapsed?1:0)}px`,le=`${e*this._lineHeight}px`;return g.style.top=N?Y:le,w.style.top=N?Y:le,new fD(t,g,w,I,f.characterMapping)}_renderFoldingIconForLine(e,t,r,n){let o=this._editor.getOption(108);if(!t||o==="never")return;let s=t.regions,a=s.findRange(n),l=s.getStartLineNumber(a);if(!(n===l))return;let d=s.isCollapsed(a),u=new pD(d,this._lineHeight);return e.append(u.domNode),u.setVisible(this._isOnGlyphMargin?!0:d||o==="always"),this._foldingIconStore.add(Lt(u.domNode,bi.CLICK,()=>{x2(t,Number.MAX_VALUE,[n]),u.isCollapsed=!d;let h=(d?this._editor.getTopForLineNumber(l):this._editor.getTopForLineNumber(s.getEndLineNumber(a)))-this._lineHeight*r+1;this._editor.setScrollTop(h)})),u}_updateMinContentWidth(){this._minContentWidthInPx=0;for(let e of this._stickyLines)e.lineDomNode.scrollWidth>this._minContentWidthInPx&&(this._minContentWidthInPx=e.lineDomNode.scrollWidth);this._minContentWidthInPx+=this._editor.getLayoutInfo().verticalScrollbarWidth}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:null}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e0)return null;let t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;let r=ez(t.characterMapping,e,0);return new Ie(t.lineNumber,r)}getLineNumberFromChildDomNode(e){var t,r;return(r=(t=this._getRenderedStickyLineFromChildDomNode(e))===null||t===void 0?void 0:t.lineNumber)!==null&&r!==void 0?r:null}_getRenderedStickyLineFromChildDomNode(e){let t=this.getStickyLineIndexFromChildDomNode(e);return t===null||t<0||t>=this._stickyLines.length?null:this._stickyLines[t]}getStickyLineIndexFromChildDomNode(e){for(;e&&e!==this._rootDomNode;){let t=e.getAttribute(XY);if(t)return parseInt(t,10);e=e.parentElement}return null}},fD=class{constructor(e,t,r,n,o){this.lineNumber=e,this.lineDomNode=t,this.lineNumberDomNode=r,this.foldingIcon=n,this.characterMapping=o}},pD=class{constructor(e,t){this.isCollapsed=e,this.dimension=t,this.domNode=document.createElement("div"),this.domNode.style.width=`${t}px`,this.domNode.style.height=`${t}px`,this.domNode.className=_t.asClassName(e?cb:lb)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}});var N1e,mD,R1e,Xd,Xp,M1,N1,Lh,gD,R1=M(()=>{mi();ki();qt();Jh();df();di();et();Ds();Ut();hl();Xo();ke();Pt();N1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},mD=function(i,e){return function(t,r){e(t,r,i)}},R1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Xd=class{remove(){var e;(e=this.parent)===null||e===void 0||e.children.delete(this.id)}static findId(e,t){let r;typeof e=="string"?r=`${t.id}/${e}`:(r=`${t.id}/${e.name}`,t.children.get(r)!==void 0&&(r=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let n=r;for(let o=0;t.children.get(n)!==void 0;o++)n=`${r}_${o}`;return n}static empty(e){return e.children.size===0}},Xp=class extends Xd{constructor(e,t,r){super(),this.id=e,this.parent=t,this.symbol=r,this.children=new Map}},M1=class extends Xd{constructor(e,t,r,n){super(),this.id=e,this.parent=t,this.label=r,this.order=n,this.children=new Map}},N1=class i extends Xd{static create(e,t,r){let n=new zi(r),o=new i(t.uri),s=e.ordered(t),a=s.map((c,d)=>{var u;let h=Xd.findId(`provider_${d}`,o),f=new M1(h,o,(u=c.displayName)!==null&&u!==void 0?u:"Unknown Outline Provider",d);return Promise.resolve(c.provideDocumentSymbols(t,n.token)).then(m=>{for(let g of m||[])i._makeOutlineElement(g,f);return f},m=>(Xt(m),f)).then(m=>{Xd.empty(m)?m.remove():o._groups.set(h,m)})}),l=e.onDidChange(()=>{let c=e.ordered(t);ks(c,s)||n.cancel()});return Promise.all(a).then(()=>n.token.isCancellationRequested&&!r.isCancellationRequested?i.create(e,t,r):o._compact()).finally(()=>{l.dispose()})}static _makeOutlineElement(e,t){let r=Xd.findId(e,t),n=new Xp(r,t,e);if(e.children)for(let o of e.children)i._makeOutlineElement(o,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(let[t,r]of this._groups)r.children.size===0?this._groups.delete(t):e+=1;if(e!==1)this.children=this._groups;else{let t=kn.first(this._groups.values());for(let[,r]of t.children)r.parent=this,this.children.set(r.id,r)}return this}getTopLevelSymbols(){let e=[];for(let t of this.children.values())t instanceof Xp?e.push(t.symbol):e.push(...kn.map(t.children.values(),r=>r.symbol));return e.sort((t,r)=>B.compareRangesUsingStarts(t.range,r.range))}asListOfDocumentSymbols(){let e=this.getTopLevelSymbols(),t=[];return i._flattenDocumentSymbols(t,e,""),t.sort((r,n)=>Ie.compare(B.getStartPosition(r.range),B.getStartPosition(n.range))||Ie.compare(B.getEndPosition(n.range),B.getEndPosition(r.range)))}static _flattenDocumentSymbols(e,t,r){for(let n of t)e.push({kind:n.kind,tags:n.tags,name:n.name,detail:n.detail,containerName:n.containerName||r,range:n.range,selectionRange:n.selectionRange,children:void 0}),n.children&&i._flattenDocumentSymbols(e,n.children,n.name)}},Lh=Qr("IOutlineModelService"),gD=class{constructor(e,t,r){this._languageFeaturesService=e,this._disposables=new ae,this._cache=new sa(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(r.onModelRemoved(n=>{this._cache.delete(n.id)}))}dispose(){this._disposables.dispose()}getOrCreate(e,t){return R1e(this,void 0,void 0,function*(){let r=this._languageFeaturesService.documentSymbolProvider,n=r.ordered(e),o=this._cache.get(e.id);if(!o||o.versionId!==e.getVersionId()||!ks(o.provider,n)){let a=new zi;o={versionId:e.getVersionId(),provider:n,promiseCnt:0,source:a,promise:N1.create(r,e,a.token),model:void 0},this._cache.set(e.id,o);let l=Date.now();o.promise.then(c=>{o.model=c,this._debounceInformation.update(e,Date.now()-l)}).catch(c=>{this._cache.delete(e.id)})}if(o.model)return o.model;o.promiseCnt+=1;let s=t.onCancellationRequested(()=>{--o.promiseCnt===0&&(o.source.cancel(),this._cache.delete(e.id))});try{return yield o.promise}finally{s.dispose()}})}};gD=N1e([mD(0,Se),mD(1,lr),mD(2,Di)],gD);en(Lh,gD,1)});var bc,Dh,P1,bD=M(()=>{bc=class{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}},Dh=class{constructor(e,t,r){this.range=e,this.children=t,this.parent=r}},P1=class{constructor(e,t,r,n){this.uri=e,this.version=t,this.element=r,this.outlineProviderId=n}}});var US,F1,ZY,O1,Qd,zS,BS,vD,HS,_D,yD,JY=M(()=>{ke();Pt();R1();jt();hb();sA();iA();Hr();qt();bD();Jh();US=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},F1=function(i,e){return function(t,r){e(t,r,i)}},ZY=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};(function(i){i.OUTLINE_MODEL="outlineModel",i.FOLDING_PROVIDER_MODEL="foldingProviderModel",i.INDENTATION_MODEL="indentationModel"})(O1||(O1={}));(function(i){i[i.VALID=0]="VALID",i[i.INVALID=1]="INVALID",i[i.CANCELED=2]="CANCELED"})(Qd||(Qd={}));zS=class extends ce{constructor(e,t,r,n){super(),this._editor=e,this._languageConfigurationService=t,this._languageFeaturesService=r,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new Do(300)),this._updateOperation=this._register(new ae);let o=new vD(r),s=new yD(this._editor,r),a=new _D(this._editor,t);switch(n){case O1.OUTLINE_MODEL:this._modelProviders.push(o),this._modelProviders.push(s),this._modelProviders.push(a);break;case O1.FOLDING_PROVIDER_MODEL:this._modelProviders.push(s),this._modelProviders.push(a);break;case O1.INDENTATION_MODEL:this._modelProviders.push(a);break}}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}update(e,t,r){return ZY(this,void 0,void 0,function*(){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),yield this._updateScheduler.trigger(()=>ZY(this,void 0,void 0,function*(){for(let n of this._modelProviders){let{statusPromise:o,modelPromise:s}=n.computeStickyModel(e,t,r);this._modelPromise=s;let a=yield o;if(this._modelPromise!==s)return null;switch(a){case Qd.CANCELED:return this._updateOperation.clear(),null;case Qd.VALID:return n.stickyModel}}return null})).catch(n=>(ft(n),null))})}};zS=US([F1(1,Ot),F1(2,Se)],zS);BS=class{constructor(){this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,Qd.INVALID}computeStickyModel(e,t,r){if(r.isCancellationRequested||!this.isProviderValid(e))return{statusPromise:this._invalid(),modelPromise:null};let n=Jt(o=>this.createModelFromProvider(e,t,o));return{statusPromise:n.then(o=>this.isModelValid(o)?r.isCancellationRequested?Qd.CANCELED:(this._stickyModel=this.createStickyModel(e,t,r,o),Qd.VALID):this._invalid()).then(void 0,o=>(ft(o),Qd.CANCELED)),modelPromise:n}}isModelValid(e){return!0}isProviderValid(e){return!0}},vD=class extends BS{constructor(e){super(),this._languageFeaturesService=e}createModelFromProvider(e,t,r){return N1.create(this._languageFeaturesService.documentSymbolProvider,e,r)}createStickyModel(e,t,r,n){var o;let{stickyOutlineElement:s,providerID:a}=this._stickyModelFromOutlineModel(n,(o=this._stickyModel)===null||o===void 0?void 0:o.outlineProviderId);return new P1(e.uri,t,s,a)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let r;if(kn.first(e.children.values())instanceof M1){let a=kn.find(e.children.values(),l=>l.id===t);if(a)r=a.children;else{let l="",c=-1,d;for(let[u,h]of e.children.entries()){let f=this._findSumOfRangesOfGroup(h);f>c&&(d=h,c=f,l=h.id)}t=l,r=d.children}}else r=e.children;let n=[],o=Array.from(r.values()).sort((a,l)=>{let c=new bc(a.symbol.range.startLineNumber,a.symbol.range.endLineNumber),d=new bc(l.symbol.range.startLineNumber,l.symbol.range.endLineNumber);return this._comparator(c,d)});for(let a of o)n.push(this._stickyModelFromOutlineElement(a,a.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new Dh(void 0,n,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){let r=[];for(let o of e.children.values())if(o.symbol.selectionRange.startLineNumber!==o.symbol.range.endLineNumber)if(o.symbol.selectionRange.startLineNumber!==t)r.push(this._stickyModelFromOutlineElement(o,o.symbol.selectionRange.startLineNumber));else for(let s of o.children.values())r.push(this._stickyModelFromOutlineElement(s,o.symbol.selectionRange.startLineNumber));r.sort((o,s)=>this._comparator(o.range,s.range));let n=new bc(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new Dh(n,r,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(let r of e.children.values())t+=this._findSumOfRangesOfGroup(r);return e instanceof Xp?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};vD=US([F1(0,Se)],vD);HS=class extends BS{constructor(e){super(),this._foldingLimitReporter=new ub(e)}createStickyModel(e,t,r,n){let o=this._fromFoldingRegions(n);return new P1(e.uri,t,o,void 0)}isModelValid(e){return e!==null}_fromFoldingRegions(e){let t=e.length,r=[],n=new Dh(void 0,[],void 0);for(let o=0;o0}createModelFromProvider(e,t,r){let n=fs.getFoldingRangeProviders(this._languageFeaturesService,e);return new oh(e,n,()=>this.createModelFromProvider(e,t,r),this._foldingLimitReporter,void 0).compute(r)}};yD=US([F1(1,Se)],yD)});var P1e,eX,tX,wD,jS,iX=M(()=>{ke();Pt();ki();jt();mi();ei();Hr();JY();P1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},eX=function(i,e){return function(t,r){e(t,r,i)}},tX=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},wD=class{constructor(e,t,r){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=r}},jS=class extends ce{constructor(e,t,r){super(),this._languageFeaturesService=t,this._languageConfigurationService=r,this._onDidChangeStickyScroll=this._register(new Je),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._options=null,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new ae),this._updateSoon=this._register(new ui(()=>this.update(),50)),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(113)&&this.readConfiguration()})),this.readConfiguration()}readConfiguration(){this._stickyModelProvider=null,this._sessionStore.clear(),this._options=this._editor.getOption(113),this._options.enabled&&(this._stickyModelProvider=this._sessionStore.add(new zS(this._editor,this._languageConfigurationService,this._languageFeaturesService,this._options.defaultModel)),this._sessionStore.add(this._editor.onDidChangeModel(()=>{this._model=null,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.update())}getVersionId(){var e;return(e=this._model)===null||e===void 0?void 0:e.version}update(){var e;return tX(this,void 0,void 0,function*(){(e=this._cts)===null||e===void 0||e.dispose(!0),this._cts=new zi,yield this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()})}updateStickyModel(e){return tX(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._stickyModelProvider){this._model=null;return}let t=this._editor.getModel(),r=t.getVersionId(),n=yield this._stickyModelProvider.update(t,r,e);e.isCancellationRequested||(this._model=n)})}updateIndex(e){return e===-1?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,r,n,o){if(t.children.length===0)return;let s=o,a=[];for(let d=0;dd-u)),c=this.updateIndex(pu(a,e.startLineNumber+n,(d,u)=>d-u));for(let d=l;d<=c;d++){let u=t.children[d];if(!u)return;if(u.range){let h=u.range.startLineNumber,f=u.range.endLineNumber;e.startLineNumber<=f+1&&h-1<=e.endLineNumber&&h!==s&&(s=h,r.push(new wD(h,f-1,n+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,u,r,n+1,h))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,u,r,n,o)}}getCandidateStickyLinesIntersecting(e){var t,r;if(!(!((t=this._model)===null||t===void 0)&&t.element))return[];let n=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,n,0,-1);let o=(r=this._editor._getViewModel())===null||r===void 0?void 0:r.getHiddenAreas();if(o)for(let s of o)n=n.filter(a=>!(a.startLineNumber>=s.startLineNumber&&a.endLineNumber<=s.endLineNumber+1));return n}};jS=P1e([eX(1,Se),eX(2,Ot)],jS)});var O1e,Qp,rX,xD,bs,CD=M(()=>{ke();Pt();QY();iX();Ut();yl();Ji();wt();ti();i1();et();IC();N8();di();ki();Hr();Ds();Ht();bD();J9();O1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Qp=function(i,e){return function(t,r){e(t,r,i)}},rX=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},bs=xD=class extends ce{constructor(e,t,r,n,o,s,a){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=r,this._instaService=n,this._contextKeyService=a,this._sessionStore=new ae,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 FS(this._editor),this._stickyLineCandidateProvider=new jS(this._editor,r,o),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=new D1([],[],0),this._readConfiguration();let l=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration(d=>{(d.hasChanged(113)||d.hasChanged(71)||d.hasChanged(65)||d.hasChanged(108))&&this._readConfiguration()})),this._register(Lt(l,bi.CONTEXT_MENU,d=>rX(this,void 0,void 0,function*(){this._onContextMenu(d)}))),this._stickyScrollFocusedContextKey=O.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=O.stickyScrollVisible.bindTo(this._contextKeyService);let c=this._register(xs(l));this._register(c.onDidBlur(d=>{this._positionRevealed===!1&&l.clientHeight===0?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()})),this._register(c.onDidFocus(d=>{this.focus()})),this._registerMouseListeners(),this._register(Lt(l,bi.MOUSE_DOWN,d=>{this._onMouseDown=!0}))}static get(e){return e.getContribution(xD.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 ae,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(){let 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(B.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){let e=this._register(new ae),t=this._register(new Qa(this._editor,{extractLineNumberFromMouseEvent:o=>{let s=this._stickyScrollWidget.getEditorPositionFromNode(o.target.element);return s?s.lineNumber:0}})),r=o=>{if(!this._editor.hasModel()||o.target.type!==12||o.target.detail!==this._stickyScrollWidget.getId())return null;let s=o.target.element;if(!s||s.innerText!==s.innerHTML)return null;let a=this._stickyScrollWidget.getEditorPositionFromNode(s);return a?{range:new B(a.lineNumber,a.column,a.lineNumber,a.column+s.innerText.length),textElement:s}:null},n=this._stickyScrollWidget.getDomNode();this._register(To(n,bi.CLICK,o=>{if(o.ctrlKey||o.altKey||o.metaKey||!o.leftButton)return;if(o.shiftKey){let a=this._stickyScrollWidget.getStickyLineIndexFromChildDomNode(o.target);if(a===null)return;let l=new Ie(this._endLineNumbers[a],1);this._revealLineInCenterIfOutsideViewport(l);return}let s=this._stickyScrollWidget.getEditorPositionFromNode(o.target);if(!s){let a=this._stickyScrollWidget.getLineNumberFromChildDomNode(o.target);if(a===null)return;s=new Ie(a,1)}this._revealPosition(s)})),this._register(To(n,bi.MOUSE_MOVE,o=>{if(o.shiftKey){let s=this._stickyScrollWidget.getStickyLineIndexFromChildDomNode(o.target);if(s===null||this._showEndForLine!==null&&this._showEndForLine===s)return;this._showEndForLine=s,this._renderStickyScroll();return}this._showEndForLine!==null&&(this._showEndForLine=null,this._renderStickyScroll())})),this._register(Lt(n,bi.MOUSE_LEAVE,o=>{this._showEndForLine!==null&&(this._showEndForLine=null,this._renderStickyScroll())})),this._register(t.onMouseMoveOrRelevantKeyDown(([o,s])=>{let a=r(o);if(!a||!o.hasTriggerModifier||!this._editor.hasModel()){e.clear();return}let{range:l,textElement:c}=a;if(!l.equalsRange(this._stickyRangeProjectedOnEditor))this._stickyRangeProjectedOnEditor=l,e.clear();else if(c.style.textDecoration==="underline")return;let d=new zi;e.add(ri(()=>d.dispose(!0)));let u;mh(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new Ie(l.startLineNumber,l.startColumn+1),d.token).then(h=>{if(!d.token.isCancellationRequested)if(h.length!==0){this._candidateDefinitionsLength=h.length;let f=c;u!==f?(e.clear(),u=f,u.style.textDecoration="underline",e.add(ri(()=>{u.style.textDecoration="none"}))):u||(u=f,u.style.textDecoration="underline",e.add(ri(()=>{u.style.textDecoration="none"})))}else e.clear()})})),this._register(t.onCancel(()=>{e.clear()})),this._register(t.onExecute(o=>rX(this,void 0,void 0,function*(){if(o.target.type!==12||o.target.detail!==this._stickyScrollWidget.getId())return;let s=this._stickyScrollWidget.getEditorPositionFromNode(o.target.element);s&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:s.lineNumber,column:1})),this._instaService.invokeFunction(dS,o,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(e){let t=new Vv(e);this._contextMenuService.showContextMenu({menuId:Me.StickyScrollContext,getAnchor:()=>t})}_readConfiguration(){let e=this._editor.getOption(113);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(r=>{r.scrollTopChanged&&(this._showEndForLine=null,this._renderStickyScroll())})),this._sessionStore.add(this._editor.onDidLayoutChange(()=>this._onDidResize())),this._sessionStore.add(this._editor.onDidChangeModelTokens(r=>this._onTokensChange(r))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll(()=>{this._showEndForLine=null,this._renderStickyScroll()})),this._enabled=!0);this._editor.getOption(66).renderType===2&&this._sessionStore.add(this._editor.onDidChangeCursorPosition(()=>{this._showEndForLine=null,this._renderStickyScroll()}))}_needsUpdate(e){let t=this._stickyScrollWidget.getCurrentLines();for(let r of t)for(let n of e.ranges)if(r>=n.fromLineNumber&&r<=n.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll()}_onDidResize(){let t=this._editor.getLayoutInfo().height/this._editor.getOption(65);this._maxStickyLines=Math.round(t*.25)}_renderStickyScroll(){let e=this._editor.getModel();if(!e||e.isTooLargeForTokenization()){this._stickyScrollWidget.setState(void 0);return}let t=this._stickyLineCandidateProvider.getVersionId();if(t===void 0||t===e.getVersionId())if(this._widgetState=this.findScrollWidgetState(),this._stickyScrollVisibleContextKey.set(this._widgetState.startLineNumbers.length!==0),!this._focused)this._stickyScrollWidget.setState(this._widgetState);else if(this._focusedStickyElementIndex===-1)this._stickyScrollWidget.setState(this._widgetState),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,this._focusedStickyElementIndex!==-1&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{let r=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];this._stickyScrollWidget.setState(this._widgetState),this._stickyScrollWidget.lineNumberCount===0?this._focusedStickyElementIndex=-1:(this._stickyScrollWidget.lineNumbers.includes(r)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}}findScrollWidgetState(){let e=this._editor.getOption(65),t=Math.min(this._maxStickyLines,this._editor.getOption(113).maxLineCount),r=this._editor.getScrollTop(),n=0,o=[],s=[],a=this._editor.getVisibleRanges();if(a.length!==0){let l=new bc(a[0].startLineNumber,a[a.length-1].endLineNumber),c=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(l);for(let d of c){let u=d.startLineNumber,h=d.endLineNumber,f=d.nestingDepth;if(h-u>0){let m=(f-1)*e,g=f*e,w=this._editor.getBottomForLineNumber(u)-r,_=this._editor.getTopForLineNumber(h)-r,E=this._editor.getBottomForLineNumber(h)-r;if(m>_&&m<=E){o.push(u),s.push(h+1),n=E-g;break}else g>w&&g<=E&&(o.push(u),s.push(h+1));if(o.length===t)break}}}return this._endLineNumbers=s,new D1(o,s,n,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};bs.ID="store.contrib.stickyScrollController";bs=xD=O1e([Qp(1,rs),Qp(2,Se),Qp(3,Ke),Qp(4,Ot),Qp(5,lr),Qp(6,it)],bs)});var F1e,WS,YS,VS,qS,KS,$S,GS,nX=M(()=>{lt();He();KY();Ji();Sr();wt();ti();CD();F1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},WS=class extends Jo{constructor(){super({id:"editor.action.toggleStickyScroll",title:{value:b("toggleStickyScroll","Toggle Sticky Scroll"),mnemonicTitle:b({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Sticky Scroll"),original:"Toggle Sticky Scroll"},category:qY.View,toggled:{condition:fe.equals("config.editor.stickyScroll.enabled",!0),title:b("stickyScroll","Sticky Scroll"),mnemonicTitle:b({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:Me.CommandPalette},{id:Me.MenubarAppearanceMenu,group:"4_editor",order:3},{id:Me.StickyScrollContext}]})}run(e){return F1e(this,void 0,void 0,function*(){let t=e.get(Mt),r=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",r)})}},YS=100,VS=class extends oa{constructor(){super({id:"editor.action.focusStickyScroll",title:{value:b("focusStickyScroll","Focus Sticky Scroll"),mnemonicTitle:b({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll"),original:"Focus Sticky Scroll"},precondition:fe.and(fe.has("config.editor.stickyScroll.enabled"),O.stickyScrollVisible),menu:[{id:Me.CommandPalette}]})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.focus()}},qS=class extends oa{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:{value:b("selectNextStickyScrollLine.title","Select next sticky scroll line"),original:"Select next sticky scroll line"},precondition:O.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:YS,primary:18}})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.focusNext()}},KS=class extends oa{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:{value:b("selectPreviousStickyScrollLine.title","Select previous sticky scroll line"),original:"Select previous sticky scroll line"},precondition:O.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:YS,primary:16}})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.focusPrevious()}},$S=class extends oa{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:{value:b("goToFocusedStickyScrollLine.title","Go to focused sticky scroll line"),original:"Go to focused sticky scroll line"},precondition:O.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:YS,primary:3}})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.goToFocused()}},GS=class extends oa{constructor(){super({id:"editor.action.selectEditor",title:{value:b("selectEditor.title","Select Editor"),original:"Select Editor"},precondition:O.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:YS,primary:9}})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.selectEditor()}}});var SD=M(()=>{lt();nX();CD();Ji();Ue(bs.ID,bs,1);Si(WS);Si(VS);Si(KS);Si(qS);Si($S);Si(GS)});var ID,Nh,z1e,Mh,kD,ED,TD,XS,AD=M(()=>{ki();pl();Jh();ke();lt();In();et();Pt();aL();uh();rL();sL();Zm();Ut();ID=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Nh=function(i,e){return function(t,r){e(t,r,i)}},z1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},kD=class{constructor(e,t,r,n,o,s){this.range=e,this.insertText=t,this.filterText=r,this.additionalTextEdits=n,this.command=o,this.completion=s}},ED=class extends U9{constructor(e,t,r,n,o,s){super(o.disposable),this.model=e,this.line=t,this.word=r,this.completionModel=n,this._suggestMemoryService=s}canBeReused(e,t,r){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===r.startColumn&&this.word.endColumn=0&&l.resolve(st.None)}return t}};ED=ID([Nh(5,Ep)],ED);TD=class{constructor(e,t,r,n){this._getEditorOption=e,this._languageFeatureService=t,this._clipboardService=r,this._suggestMemoryService=n}provideInlineCompletions(e,t,r,n){var o;return z1e(this,void 0,void 0,function*(){if(r.selectedSuggestionInfo)return;let s=this._getEditorOption(87,e);if(Ga.isAllOff(s))return;e.tokenization.tokenizeIfCheap(t.lineNumber);let a=e.tokenization.getLineTokens(t.lineNumber),l=a.getStandardTokenType(a.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if(Ga.valueFor(s,l)!=="inline")return;let c=e.getWordAtPosition(t),d;if(c!=null&&c.word||(d=this._getTriggerCharacterInfo(e,t)),!(c!=null&&c.word)&&!d||(c||(c=e.getWordUntilPosition(t)),c.endColumn!==t.column))return;let u,h=e.getValueInRange(new B(t.lineNumber,1,t.lineNumber,t.column));if(!d&&(!((o=this._lastResult)===null||o===void 0)&&o.canBeReused(e,t.lineNumber,c))){let f=new Rb(h,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=f,this._lastResult.acquire(),u=this._lastResult}else{let f=yield wb(this._languageFeatureService.completionProvider,e,t,new nc(void 0,void 0,d==null?void 0:d.providers),d&&{triggerKind:1,triggerCharacter:d.ch},n),m;f.needsClipboard&&(m=yield this._clipboardService.readText());let g=new Ip(f.items,t.column,new Rb(h,0),Rd.None,this._getEditorOption(116,e),this._getEditorOption(110,e),{boostFullMatch:!1,firstMatchCanBeWeak:!1},m);u=new ED(e,t.lineNumber,c,g,f,this._suggestMemoryService)}return this._lastResult=u,u})}handleItemDidShow(e,t){t.completion.resolve(st.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var r;let n=e.getValueInRange(B.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),o=new Set;for(let s of this._languageFeatureService.completionProvider.all(e))!((r=s.triggerCharacters)===null||r===void 0)&&r.includes(n)&&o.add(s);if(o.size!==0)return{providers:o,ch:n}}};TD=ID([Nh(1,Se),Nh(2,As),Nh(3,Ep)],TD);XS=Mh=class{constructor(e,t,r,n){if(++Mh._counter===1){let o=n.createInstance(TD,(s,a)=>{var l;return((l=r.listCodeEditors().find(d=>d.getModel()===a))!==null&&l!==void 0?l:e).getOption(s)});Mh._disposable=t.inlineCompletionsProvider.register("*",o)}}dispose(){var e;--Mh._counter===0&&((e=Mh._disposable)===null||e===void 0||e.dispose(),Mh._disposable=void 0)}};XS._counter=0;XS=Mh=ID([Nh(1,Se),Nh(2,ai),Nh(3,Ke)],XS);Ue("suggest.inlineCompletionsProvider",XS,0)});var oX=M(()=>{});var sX=M(()=>{oX()});var aX=M(()=>{});var lX=M(()=>{aX()});var cX=M(()=>{});var dX=M(()=>{cX()});var B1e,H1e,QS,uX=M(()=>{Ht();Mre();Z9();oF();ei();ke();is();dX();B1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},H1e=function(i,e){return function(t,r){e(t,r,i)}},QS=class extends ce{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,r={},n){var o;super(),this._link=t,this._enabled=!0,this.el=Te(e,Ae("a.monaco-link",{tabIndex:(o=t.tabIndex)!==null&&o!==void 0?o:0,href:t.href,title:t.title},t.label)),this.el.setAttribute("role","button");let s=this._register(new x_(this.el,"click")),a=this._register(new x_(this.el,"keypress")),l=ci.chain(a.event).map(u=>new Wv(u)).filter(u=>u.keyCode===3).event,c=this._register(new x_(this.el,nF.Tap)).event;this._register(I_.addTarget(this.el));let d=ci.any(s.event,l,c);this._register(d(u=>{this.enabled&&(cu.stop(u,!0),r!=null&&r.opener?r.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}};QS=B1e([H1e(3,tr)],QS)});var hX,fX,U1e,ZS,LD,pX=M(()=>{lX();Ht();ng();Fc();ke();kd();Ut();uX();Sl();An();hX=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},fX=function(i,e){return function(t,r){e(t,r,i)}},U1e=26,ZS=class extends ce{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(LD))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show(Object.assign(Object.assign({},e),{onClose:()=>{var t;this.hide(),(t=e.onClose)===null||t===void 0||t.call(e)}})),this._editor.setBanner(this.banner.element,U1e)}};ZS=hX([fX(1,Ke)],ZS);LD=class extends ce{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(to,{}),this.element=Ae("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"){let t=Ae("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){qn(this.element)}show(e){qn(this.element);let t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);let r=Te(this.element,Ae("div.icon-container"));r.setAttribute("aria-hidden","true"),e.icon&&r.appendChild(Ae(`div${_t.asCSSSelector(e.icon)}`));let n=Te(this.element,Ae("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=Te(this.element,Ae("div.message-actions-container")),e.actions)for(let s of e.actions)this._register(this.instantiationService.createInstance(QS,this.messageActionsContainer,Object.assign(Object.assign({},s),{tabIndex:-1}),{}));let o=Te(this.element,Ae("div.action-container"));this.actionBar=this._register(new Ls(o)),this.actionBar.push(this._register(new Qo("banner.close","Close Banner",_t.asClassName(V_),!0,()=>{typeof e.onClose=="function"&&e.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};LD=hX([fX(0,Ke)],LD)});function W1e(i,e){return{nonBasicASCII:e.nonBasicASCII===C_?!i:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments===C_?!i:e.includeComments,includeStrings:e.includeStrings===C_?!i:e.includeStrings,allowedCharacters:e.allowedCharacters,allowedLocales:e.allowedLocales}}function PD(i){return`U+${i.toString(16).padStart(4,"0")}`}function DD(i){let e=`\`${PD(i)}\``;return U3.isInvisibleCharacter(i)||(e+=` "${`${V1e(i)}`}"`),e}function V1e(i){return i===96?"`` ` ``":"`"+String.fromCodePoint(i)+"`"}function mX(i,e){return Nk.computeUnicodeHighlightReason(i,e)}function q1e(i,e){return $r(this,void 0,void 0,function*(){let t=i.getValue(ma.allowedCharacters),r;typeof t=="object"&&t?r=t:r={};for(let n of e)r[String.fromCodePoint(n)]=!0;yield i.updateValue(ma.allowedCharacters,r,2)})}function K1e(i,e){var t;return $r(this,void 0,void 0,function*(){let r=(t=i.inspect(ma.allowedLocales).user)===null||t===void 0?void 0:t.value,n;typeof r=="object"&&r?n=Object.assign({},r):n={};for(let o of e)n[o]=!0;yield i.updateValue(ma.allowedLocales,n,2)})}function $1e(i){throw new Error(`Unexpected value: ${i}`)}var zD,Zp,$r,j1e,Jp,MD,ND,RD,em,OD,FD,Zd,tm,im,z1,BD=M(()=>{jt();Zr();Es();ke();Tn();Ni();sX();lt();eg();Ur();ane();q_();es();tne();rc();ZC();pX();He();Sr();Ut();is();wl();Sl();lne();zD=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Zp=function(i,e){return function(t,r){e(t,r,i)}},$r=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},j1e=Pi("extensions-warning-message",pt.warning,b("warningIcon","Icon shown with a warning message in the extensions editor.")),Jp=class extends ce{constructor(e,t,r,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=r,this._highlighter=null,this._bannerClosed=!1,this._updateState=o=>{if(o&&o.hasMore){if(this._bannerClosed)return;let s=Math.max(o.ambiguousCharacterCount,o.nonBasicAsciiCharacterCount,o.invisibleCharacterCount),a;if(o.nonBasicAsciiCharacterCount>=s)a={message:b("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new im};else if(o.ambiguousCharacterCount>=s)a={message:b("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new Zd};else if(o.invisibleCharacterCount>=s)a={message:b("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new tm};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:a.message,icon:j1e,actions:[{label:a.command.shortLabel,href:`command:${a.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(ZS,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(123),this._register(r.onDidChangeTrust(o=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(o=>{o.hasChanged(123)&&(this._options=e.getOption(123),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;let e=W1e(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every(r=>r===!1))return;let t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map(r=>r.codePointAt(0)),allowedLocales:Object.keys(e.allowedLocales).map(r=>r==="_os"?new Intl.NumberFormat().resolvedOptions().locale:r==="_vscode"?X9:r)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new MD(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new ND(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};Jp.ID="editor.contrib.unicodeHighlighter";Jp=zD([Zp(1,kl),Zp(2,mz),Zp(3,Ke)],Jp);MD=class extends ce{constructor(e,t,r,n){super(),this._editor=e,this._options=t,this._updateState=r,this._editorWorkerService=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new ui(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let 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);let r=[];if(!t.hasMore)for(let n of t.ranges)r.push({range:n,options:em.instance.getDecorationFromOptions(this._options)});this._decorations.set(r)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel();if(!kk(t,e))return null;let r=t.getValueInRange(e.range);return{reason:mX(r,this._options),inComment:Ek(t,e),inString:Tk(t,e)}}};MD=zD([Zp(3,kl)],MD);ND=class extends ce{constructor(e,t,r){super(),this._editor=e,this._options=t,this._updateState=r,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new ui(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let e=this._editor.getVisibleRanges(),t=[],r={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(let n of e){let o=Nk.computeUnicodeHighlights(this._model,this._options,n);for(let s of o.ranges)r.ranges.push(s);r.ambiguousCharacterCount+=r.ambiguousCharacterCount,r.invisibleCharacterCount+=r.invisibleCharacterCount,r.nonBasicAsciiCharacterCount+=r.nonBasicAsciiCharacterCount,r.hasMore=r.hasMore||o.hasMore}if(!r.hasMore)for(let n of r.ranges)t.push({range:n,options:em.instance.getDecorationFromOptions(this._options)});this._updateState(r),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel(),r=t.getValueInRange(e.range);return kk(t,e)?{reason:mX(r,this._options),inComment:Ek(t,e),inString:Tk(t,e)}:null}},RD=class{constructor(e,t,r){this._editor=e,this._languageService=t,this._openerService=r,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];let r=this._editor.getModel(),n=this._editor.getContribution(Jp.ID);if(!n)return[];let o=[],s=new Set,a=300;for(let l of t){let c=n.getDecorationInfo(l);if(!c)continue;let u=r.getValueInRange(l.range).codePointAt(0),h=DD(u),f;switch(c.reason.kind){case 0:{$v(c.reason.confusableWith)?f=b("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",h,DD(c.reason.confusableWith.codePointAt(0))):f=b("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,DD(c.reason.confusableWith.codePointAt(0)));break}case 1:f=b("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:f=b("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h);break}if(s.has(f))continue;s.add(f);let m={codePoint:u,reason:c.reason,inComment:c.inComment,inString:c.inString},g=b("unicodeHighlight.adjustSettings","Adjust settings"),w=`command:${z1.ID}?${encodeURIComponent(JSON.stringify(m))}`,_=new $i("",!0).appendMarkdown(f).appendText(" ").appendLink(w,g);o.push(new ro(this,l.range,[_],!1,a++))}return o}renderHoverParts(e,t){return d8(e,t,this._editor,this._languageService,this._openerService)}};RD=zD([Zp(1,er),Zp(2,tr)],RD);em=class{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){let r=`${e}${t}`,n=this.map.get(r);return n||(n=mt.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(r,n)),n}};em.instance=new em;OD=class extends de{constructor(){super({id:Zd.ID,label:b("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.includeComments,!1,2)})}},FD=class extends de{constructor(){super({id:Zd.ID,label:b("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.includeStrings,!1,2)})}},Zd=class i extends de{constructor(){super({id:i.ID,label:b("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.ambiguousCharacters,!1,2)})}};Zd.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";tm=class i extends de{constructor(){super({id:i.ID,label:b("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.invisibleCharacters,!1,2)})}};tm.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";im=class i extends de{constructor(){super({id:i.ID,label:b("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.nonBasicASCII,!1,2)})}};im.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";z1=class i extends de{constructor(){super({id:i.ID,label:b("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}run(e,t,r){return $r(this,void 0,void 0,function*(){let{codePoint:n,reason:o,inString:s,inComment:a}=r,l=String.fromCodePoint(n),c=e.get(nn),d=e.get(Mt);function u(m){return U3.isInvisibleCharacter(m)?b("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",PD(m)):b("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${PD(m)} "${l}"`)}let h=[];if(o.kind===0)for(let m of o.notAmbiguousInLocales)h.push({label:b("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',m),run:()=>$r(this,void 0,void 0,function*(){K1e(d,[m])})});if(h.push({label:u(n),run:()=>q1e(d,[n])}),a){let m=new OD;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}else if(s){let m=new FD;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}if(o.kind===0){let m=new Zd;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}else if(o.kind===1){let m=new tm;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}else if(o.kind===2){let m=new im;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}else $1e(o);let f=yield c.pick(h,{title:b("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options")});f&&(yield f.run())})}};z1.ID="editor.action.unicodeHighlight.showExcludeOptions";ee(Zd);ee(tm);ee(im);ee(z1);Ue(Jp.ID,Jp,1);Uo.register(RD)});function X1e(i,e,t){i.setModelProperty(e.uri,bX,t)}function Q1e(i,e){return i.getModelProperty(e.uri,bX)}var G1e,gX,Y1e,bX,B1,HD=M(()=>{ke();Lo();lt();In();He();Rk();G1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},gX=function(i,e){return function(t,r){e(t,r,i)}},Y1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},bX="ignoreUnusualLineTerminators";B1=class extends ce{constructor(e,t,r){super(),this._editor=e,this._dialogService=t,this._codeEditorService=r,this._isPresentingDialog=!1,this._config=this._editor.getOption(124),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(124)&&(this._config=this._editor.getOption(124),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(n=>{n.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}_checkForUnusualLineTerminators(){return Y1e(this,void 0,void 0,function*(){if(this._config==="off"||!this._editor.hasModel())return;let e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators()||Q1e(this._codeEditorService,e)===!0||this._editor.getOption(89))return;if(this._config==="auto"){e.removeUnusualLineTerminators(this._editor.getSelections());return}if(this._isPresentingDialog)return;let r;try{this._isPresentingDialog=!0,r=yield this._dialogService.confirm({title:b("unusualLineTerminators.title","Unusual Line Terminators"),message:b("unusualLineTerminators.message","Detected unusual line terminators"),detail:b("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`.",Dn(e.uri)),primaryButton:b({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:b("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}if(!r.confirmed){X1e(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())})}};B1.ID="editor.contrib.unusualLineTerminatorsDetector";B1=G1e([gX(1,Ef),gX(2,ai)],B1);Ue(B1.ID,B1,1)});function _X(i,e,t,r){let n=i.ordered(e);return u_(n.map(o=>()=>Promise.resolve(o.provideDocumentHighlights(e,t,r)).then(void 0,Xt)),Ki)}function J1e(i,e,t,r){return i.has(e)?new jD(e,t,r,i):new WD(e,t,r)}var Z1e,vX,UD,t4,JS,jD,WD,VD,Rh,e4,qD,KD,$D,GD=M(()=>{Io();mi();jt();ki();qt();ke();lt();et();ti();fn();He();wt();Pt();y7();Jh();Z1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},vX=function(i,e){return function(t,r){e(t,r,i)}},t4=new ht("hasWordHighlights",!1);JS=class{constructor(e,t,r){this._model=e,this._selection=t,this._wordSeparators=r,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=Jt(e=>this._compute(this._model,this._selection,this._wordSeparators,e))),this._result}_getCurrentWordRange(e,t){let r=e.getWordAtPosition(t.getPosition());return r?new B(t.startLineNumber,r.startColumn,t.startLineNumber,r.endColumn):null}isValid(e,t,r){let n=t.startLineNumber,o=t.startColumn,s=t.endColumn,a=this._getCurrentWordRange(e,t),l=!!(this._wordRange&&this._wordRange.equalsRange(a));for(let c=0,d=r.length;!l&&c=s&&(l=!0)}return l}cancel(){this.result.cancel()}},jD=class extends JS{constructor(e,t,r,n){super(e,t,r),this._providers=n}_compute(e,t,r,n){return _X(this._providers,e,t.getPosition(),n).then(o=>o||[])}},WD=class extends JS{constructor(e,t,r){super(e,t,r),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,r,n){return hf(250,n).then(()=>{if(!t.isEmpty())return[];let o=e.getWordAtPosition(t.getPosition());return!o||o.word.length>1e3?[]:e.findMatches(o.word,!0,!1,!0,r,!1).map(a=>({range:a.range,kind:Qm.Text}))})}isValid(e,t,r){let n=t.isEmpty();return this._selectionIsEmpty!==n?!1:super.isValid(e,t,r)}};$n("_executeDocumentHighlights",(i,e,t)=>{let r=i.get(Se);return _X(r.documentHighlightProvider,e,t,st.None)});VD=class{constructor(e,t,r,n){this.toUnhook=new ae,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this.linkedHighlighters=r,this._hasWordHighlights=t4.bindTo(n),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(79),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(o=>{this._ignorePositionChangeEvent||this.occurrencesHighlight&&this._onPositionChanged(o)})),this.toUnhook.add(e.onDidChangeModelContent(o=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(o=>{let s=this.editor.getOption(79);this.occurrencesHighlight!==s&&(this.occurrencesHighlight=s,this._stopAll())})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this.decorations.length>0}restore(){this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(B.compareRangesUsingStarts)}moveNext(){let e=this._getSortedHighlights(),r=(e.findIndex(o=>o.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[r];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let o=this._getWord();if(o){let s=this.editor.getModel().getLineContent(n.startLineNumber);ar(`${s}, ${r+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let e=this._getSortedHighlights(),r=(e.findIndex(o=>o.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[r];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let o=this._getWord();if(o){let s=this.editor.getModel().getLineContent(n.startLineNumber);ar(`${s}, ${r+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),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){if(!this.occurrencesHighlight){this._stopAll();return}if(e.reason!==3){this._stopAll();return}this._run()}_getWord(){let e=this.editor.getSelection(),t=e.startLineNumber,r=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:r})}_run(){let e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber){this._stopAll();return}let t=e.startColumn,r=e.endColumn,n=this._getWord();if(!n||n.startColumn>t||n.endColumn{s===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=a||[],this._beginRenderDecorations())},ft)}}_beginRenderDecorations(){let e=new Date().getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;let e=[];for(let t of this.workerRequestValue)t.range&&e.push({range:t.range,options:EY(t.kind)});this.decorations.set(e),this._hasWordHighlights.set(this.hasDecorations());for(let t of this.linkedHighlighters())(t==null?void 0:t.editor.getModel())===this.editor.getModel()&&(t._stopAll(),t.decorations.set(e),t._hasWordHighlights.set(t.hasDecorations()))}dispose(){this._stopAll(),this.toUnhook.dispose()}},Rh=UD=class extends ce{static get(e){return e.getContribution(UD.ID)}constructor(e,t,r){super(),this.wordHighlighter=null,this.linkedContributions=new Set;let n=()=>{e.hasModel()&&(this.wordHighlighter=new VD(e,r.documentHighlightProvider,()=>kn.map(this.linkedContributions,o=>o.wordHighlighter),t))};this._register(e.onDidChangeModel(o=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),n()})),n()}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()}};Rh.ID="editor.contrib.wordHighlighter";Rh=UD=Z1e([vX(1,it),vX(2,Se)],Rh);e4=class extends de{constructor(e,t){super(t),this._isNext=e}run(e,t){let r=Rh.get(t);r&&(this._isNext?r.moveNext():r.moveBack())}},qD=class extends e4{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:b("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:t4,kbOpts:{kbExpr:O.editorTextFocus,primary:65,weight:100}})}},KD=class extends e4{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:b("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:t4,kbOpts:{kbExpr:O.editorTextFocus,primary:1089,weight:100}})}},$D=class extends de{constructor(){super({id:"editor.action.wordHighlight.trigger",label:b("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:t4.toNegated(),kbOpts:{kbExpr:O.editorTextFocus,primary:0,weight:100}})}run(e,t,r){let n=Rh.get(t);n&&n.restoreViewState(!0)}};Ue(Rh.ID,Rh,0);ee(qD);ee(KD);ee($D)});var Ph,el,tl,YD,XD,QD,ZD,JD,eM,tM,iM,rM,nM,oM,sM,aM,lM,cM,dM,Oh,H1,U1,uM,hM,fM,pM,mM,gM,bM,i4=M(()=>{lt();Zv();eg();dre();TP();hre();di();et();Ar();ti();Hr();He();X_();wt();lz();Ph=class extends Fi{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,r){if(!t.hasModel())return;let n=Uc(t.getOption(128)),o=t.getModel(),a=t.getSelections().map(l=>{let c=new Ie(l.positionLineNumber,l.positionColumn),d=this._move(n,o,c,this._wordNavigationType);return this._moveTo(l,d,this._inSelectionMode)});if(o.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map(l=>kP.fromModelSelection(l))),a.length===1){let l=new Ie(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(l,0)}}_moveTo(e,t,r){return r?new Qe(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new Qe(t.lineNumber,t.column,t.lineNumber,t.column)}},el=class extends Ph{_move(e,t,r,n){return sf.moveWordLeft(e,t,r,n)}},tl=class extends Ph{_move(e,t,r,n){return sf.moveWordRight(e,t,r,n)}},YD=class extends el{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}},XD=class extends el{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}},QD=class extends el{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:fe.and(O.textInputFocus,(e=fe.and(lg,cg))===null||e===void 0?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}},ZD=class extends el{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}},JD=class extends el{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}},eM=class extends el{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:fe.and(O.textInputFocus,(e=fe.and(lg,cg))===null||e===void 0?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}},tM=class extends el{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,r,n){return super._move(Uc(Jm.wordSeparators.defaultValue),t,r,n)}},iM=class extends el{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,r,n){return super._move(Uc(Jm.wordSeparators.defaultValue),t,r,n)}},rM=class extends tl{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}},nM=class extends tl{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:fe.and(O.textInputFocus,(e=fe.and(lg,cg))===null||e===void 0?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}},oM=class extends tl{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}},sM=class extends tl{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}},aM=class extends tl{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:fe.and(O.textInputFocus,(e=fe.and(lg,cg))===null||e===void 0?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}},lM=class extends tl{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}},cM=class extends tl{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,r,n){return super._move(Uc(Jm.wordSeparators.defaultValue),t,r,n)}},dM=class extends tl{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,r,n){return super._move(Uc(Jm.wordSeparators.defaultValue),t,r,n)}},Oh=class extends Fi{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,r){let n=e.get(Ot);if(!t.hasModel())return;let o=Uc(t.getOption(128)),s=t.getModel(),a=t.getSelections(),l=t.getOption(6),c=t.getOption(10),d=n.getLanguageConfiguration(s.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),h=a.map(f=>{let m=this._delete({wordSeparators:o,model:s,selection:f,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(8),autoClosingBrackets:l,autoClosingQuotes:c,autoClosingPairs:d,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new ul(m,"")});t.pushUndoStop(),t.executeCommands(this.id,h),t.pushUndoStop()}},H1=class extends Oh{_delete(e,t){let r=sf.deleteWordLeft(e,t);return r||new B(1,1,1,1)}},U1=class extends Oh{_delete(e,t){let r=sf.deleteWordRight(e,t);if(r)return r;let n=e.model.getLineCount(),o=e.model.getLineMaxColumn(n);return new B(n,o,n,o)}},uM=class extends H1{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:O.writable})}},hM=class extends H1{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:O.writable})}},fM=class extends H1{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}},pM=class extends U1{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:O.writable})}},mM=class extends U1{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:O.writable})}},gM=class extends U1{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}},bM=class extends de{constructor(){super({id:"deleteInsideWord",precondition:O.writable,label:b("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,r){if(!t.hasModel())return;let n=Uc(t.getOption(128)),o=t.getModel(),a=t.getSelections().map(l=>{let c=sf.deleteInsideWord(n,o,l);return new ul(c,"")});t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}};We(new YD);We(new XD);We(new QD);We(new ZD);We(new JD);We(new eM);We(new rM);We(new nM);We(new oM);We(new sM);We(new aM);We(new lM);We(new tM);We(new iM);We(new cM);We(new dM);We(new uM);We(new hM);We(new fM);We(new pM);We(new mM);We(new gM);ee(bM)});var vM,_M,r4,yM,wM,n4,xM,CM,SM=M(()=>{lt();TP();et();ti();i4();Vi();vM=class extends Oh{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){let r=Om.deleteWordPartLeft(e);return r||new B(1,1,1,1)}},_M=class extends Oh{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){let r=Om.deleteWordPartRight(e);if(r)return r;let n=e.model.getLineCount(),o=e.model.getLineMaxColumn(n);return new B(n,o,n,o)}},r4=class extends Ph{_move(e,t,r,n){return Om.moveWordPartLeft(e,t,r)}},yM=class extends r4{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:783},weight:100}})}};Dt.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");wM=class extends r4{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}};Dt.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");n4=class extends Ph{_move(e,t,r,n){return Om.moveWordPartRight(e,t,r)}},xM=class extends n4{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:785},weight:100}})}},CM=class extends n4{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}};We(new vM);We(new _M);We(new yM);We(new wM);We(new xM);We(new CM)});var j1,kM=M(()=>{Es();ke();lt();M0();He();j1=class extends ce{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){let e=qr.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(90);t||(this.editor.isSimpleWidget?t=new $i(b("editor.simple.readonly","Cannot edit in read-only input")):t=new $i(b("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}};j1.ID="editor.contrib.readOnlyMessageController";Ue(j1.ID,j1,2)});var yX=M(()=>{});var wX=M(()=>{yX()});var IM=Qi(W1=>{wX();Ht();ca();ke();lt();fn();Cre();Are();es();gz();xu();var eve=W1&&W1.__decorate||function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},xX=W1&&W1.__param||function(i,e){return function(t,r){e(t,r,i)}},EM,rm=EM=class extends ce{static get(e){return e.getContribution(EM.ID)}constructor(e,t,r){super(),this._editor=e,this._languageService=r,this._widget=null,this._register(this._editor.onDidChangeModel(n=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(n=>this.stop())),this._register(_f.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 o4(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};rm.ID="editor.contrib.inspectTokens";rm=EM=eve([xX(1,oy),xX(2,er)],rm);var TM=class extends de{constructor(){super({id:"editor.action.inspectTokens",label:bz.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){let r=rm.get(t);r==null||r.launch()}};function tve(i){let e="";for(let t=0,r=i.length;tKO,tokenize:(n,o,s)=>$O(e,s),tokenizeEncoded:(n,o,s)=>GO(r,s)}}var o4=class i extends ce{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=ive(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(r=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return i._ID}_compute(e){let t=this._getTokensAtLine(e.lineNumber),r=0;for(let l=t.tokens1.length-1;l>=0;l--){let c=t.tokens1[l];if(e.column-1>=c.offset){r=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}let o=this._model.getLineContent(e.lineNumber),s="";if(r{He();dl();ke();jr();ug();wl();rve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},CX=function(i,e){return function(t,r){e(t,r,i)}},q1=V1=class{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=Jr.as(xa.Quickaccess)}provide(e){let t=new ae;return t.add(e.onDidAccept(()=>{let[r]=e.selectedItems;r&&this.quickInputService.quickAccess.show(r.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(r=>{let n=this.registry.getQuickAccessProvider(r.substr(V1.PREFIX.length));n&&n.prefix&&n.prefix!==V1.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders().filter(r=>r.prefix!==V1.PREFIX),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((t,r)=>t.prefix.localeCompare(r.prefix)).flatMap(t=>this.createPicks(t))}createPicks(e){return e.helpEntries.map(t=>{let r=t.prefix||e.prefix,n=r||"\u2026";return{prefix:r,label:n,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:b("helpPickAriaLabel","{0}, {1}",n,t.description),description:t.description}})}};q1.PREFIX="?";q1=V1=rve([CX(0,nn),CX(1,Kt)],q1)});var AM=M(()=>{dl();ug();xu();SX();Jr.as(xa.Quickaccess).registerQuickAccessProvider({ctor:q1,prefix:"",helpEntries:[{description:vz.helpQuickAccessActionLabel}]})});var nm,LM=M(()=>{H9();ke();_k();qc();zO();rn();Io();nm=class{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var r;let n=new ae;e.canAcceptInBackground=!!(!((r=this.options)===null||r===void 0)&&r.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let o=n.add(new Wi);return o.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange(()=>{o.value=void 0,o.value=this.doProvide(e,t)})),n}doProvide(e,t){var r;let n=new ae,o=this.activeTextEditorControl;if(o&&this.canProvideWithTextEditor(o)){let s={editor:o},a=K_(o);if(a){let l=(r=o.saveViewState())!==null&&r!==void 0?r:void 0;n.add(a.onDidChangeCursorPosition(()=>{var c;l=(c=o.saveViewState())!==null&&c!==void 0?c:void 0})),s.restoreViewState=()=>{l&&o===this.activeTextEditorControl&&o.restoreViewState(l)},n.add(Ov(t.onCancellationRequested)(()=>{var c;return(c=s.restoreViewState)===null||c===void 0?void 0:c.call(s)}))}n.add(ri(()=>this.clearDecorations(o))),n.add(this.provideWithTextEditor(s,e,t))}else n.add(this.provideWithoutTextEditor(e,t));return n}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();let r=e.getModel();r&&"getLineContent"in r&&uu(`${r.getLineContent(t.range.startLineNumber)}`)}getModel(e){var t;return OF(e)?(t=e.getModel())===null||t===void 0?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(r=>{let n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);let o=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Ei(y_),position:Gn.Full}}}],[s,a]=r.deltaDecorations(n,o);this.rangeHighlightDecorationId={rangeHighlightId:s,overviewRulerDecorationId:a}})}clearDecorations(e){let t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(r=>{r.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}});var K1,kX=M(()=>{ke();_k();LM();He();K1=class i extends nm{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){let t=b("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,ce.None}provideWithTextEditor(e,t,r){let n=e.editor,o=new ae;o.add(t.onDidAccept(l=>{let[c]=t.selectedItems;if(c){if(!this.isValidLineNumber(n,c.lineNumber))return;this.gotoLocation(e,{range:this.toRange(c.lineNumber,c.column),keyMods:t.keyMods,preserveFocus:l.inBackground}),l.inBackground||t.hide()}}));let s=()=>{let l=this.parsePosition(n,t.value.trim().substr(i.PREFIX.length)),c=this.getPickLabel(n,l.lineNumber,l.column);if(t.items=[{lineNumber:l.lineNumber,column:l.column,label:c}],t.ariaLabel=c,!this.isValidLineNumber(n,l.lineNumber)){this.clearDecorations(n);return}let d=this.toRange(l.lineNumber,l.column);n.revealRangeInCenter(d,0),this.addDecorations(n,d)};s(),o.add(t.onDidChangeValue(()=>s()));let a=K_(n);return a&&a.getOptions().get(66).renderType===2&&(a.updateOptions({lineNumbers:"on"}),o.add(ri(()=>a.updateOptions({lineNumbers:"relative"})))),o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){let r=t.split(/,|:|#/).map(o=>parseInt(o,10)).filter(o=>!isNaN(o)),n=this.lineCount(e)+1;return{lineNumber:r[0]>0?r[0]:n+r[0],column:r[1]}}getPickLabel(e,t,r){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,r)?b("gotoLineColumnLabel","Go to line {0} and character {1}.",t,r):b("gotoLineLabel","Go to line {0}.",t);let n=e.getPosition()||{lineNumber:1,column:1},o=this.lineCount(e);return o>1?b("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,o):b("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,r){if(!r||typeof r!="number")return!1;let n=this.getModel(e);if(!n)return!1;let o={lineNumber:t,column:r};return n.validatePosition(o).equals(o)}lineCount(e){var t,r;return(r=(t=this.getModel(e))===null||t===void 0?void 0:t.getLineCount())!==null&&r!==void 0?r:0}};K1.PREFIX=":"});var nve,ove,$1,G1,DM=M(()=>{kX();dl();ug();In();xu();ei();lt();ti();wl();nve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ove=function(i,e){return function(t,r){e(t,r,i)}},$1=class extends K1{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=ci.None}get activeTextEditorControl(){var e;return(e=this.editorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}};$1=nve([ove(0,ai)],$1);G1=class i extends de{constructor(){super({id:i.ID,label:Pk.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(nn).quickAccess.show($1.PREFIX)}};G1.ID="editor.action.gotoLine";ee(G1);Jr.as(xa.Quickaccess).registerQuickAccessProvider({ctor:$1,prefix:$1.PREFIX,helpEntries:[{description:Pk.gotoLineActionLabel,commandId:G1.ID}]})});function a4(i,e,t=0,r=0){let n=e;return n.values&&n.values.length>1?sve(i,n.values,t,r):AX(i,e,t,r)}function sve(i,e,t,r){let n=0,o=[];for(let s of e){let[a,l]=AX(i,s,t,r);if(typeof a!="number")return IX;n+=a,o.push(...l)}return[n,ave(o)]}function AX(i,e,t,r){let n=l_(e.original,e.originalLowercase,t,i,i.toLowerCase(),r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],gu(n)]:IX}function ave(i){let e=i.sort((n,o)=>n.start-o.start),t=[],r;for(let n of e)!r||!lve(r,n)?(r=n,t.push(n)):(r.start=Math.min(r.start,n.start),r.end=Math.max(r.end,n.end));return t}function lve(i,e){return!(i.end=0,s=EX(i),a,l=i.split(LX);if(l.length>1)for(let c of l){let d=EX(c),{pathNormalized:u,normalized:h,normalizedLowercase:f}=TX(c);h&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:u,normalized:h,normalizedLowercase:f,expectContiguousMatch:d}))}return{original:i,originalLowercase:e,pathNormalized:t,normalized:r,normalizedLowercase:n,values:a,containsPathSeparator:o,expectContiguousMatch:s}}function TX(i){let e;Rc?e=i.replace(/\//g,qv):e=i.replace(/\\/g,qv);let t=pP(e).replace(/\s|"/g,"");return{pathNormalized:e,normalized:t,normalizedLowercase:t.toLowerCase()}}function MM(i){return Array.isArray(i)?s4(i.map(e=>e.original).join(LX)):s4(i.original)}var IX,uvt,LX,DX=M(()=>{pl();tP();Tn();Ni();IX=[void 0,[]];uvt=Object.freeze({score:0});LX=" "});var cve,MX,Y1,om,Ys,NM,RM,NX=M(()=>{jt();ki();Zr();An();DX();ke();Ni();et();fn();R1();LM();He();Pt();mi();cve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},MX=function(i,e){return function(t,r){e(t,r,i)}},Y1=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Ys=om=class extends nm{constructor(e,t,r=Object.create(null)){super(r),this._languageFeaturesService=e,this._outlineModelService=t,this.options=r,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,b("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),ce.None}provideWithTextEditor(e,t,r){let n=e.editor,o=this.getModel(n);return o?this._languageFeaturesService.documentSymbolProvider.has(o)?this.doProvideWithEditorSymbols(e,o,t,r):this.doProvideWithoutEditorSymbols(e,o,t,r):ce.None}doProvideWithoutEditorSymbols(e,t,r,n){let o=new ae;return this.provideLabelPick(r,b("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),Y1(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(t,o))||n.isCancellationRequested||o.add(this.doProvideWithEditorSymbols(e,t,r,n))}),o}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return Y1(this,void 0,void 0,function*(){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;let r=new f_,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),r.complete(!0))}));return t.add(ri(()=>r.complete(!1))),r.p})}doProvideWithEditorSymbols(e,t,r,n){var o;let s=e.editor,a=new ae;a.add(r.onDidAccept(u=>{let[h]=r.selectedItems;h&&h.range&&(this.gotoLocation(e,{range:h.range.selection,keyMods:r.keyMods,preserveFocus:u.inBackground}),u.inBackground||r.hide())})),a.add(r.onDidTriggerItemButton(({item:u})=>{u&&u.range&&(this.gotoLocation(e,{range:u.range.selection,keyMods:r.keyMods,forceSideBySide:!0}),r.hide())}));let l=this.getDocumentSymbols(t,n),c,d=u=>Y1(this,void 0,void 0,function*(){c==null||c.dispose(!0),r.busy=!1,c=new zi(n),r.busy=!0;try{let h=s4(r.value.substr(om.PREFIX.length).trim()),f=yield this.doGetSymbolPicks(l,h,void 0,c.token);if(n.isCancellationRequested)return;if(f.length>0){if(r.items=f,u&&h.original.length===0){let m=MP(f,g=>!!(g.type!=="separator"&&g.range&&B.containsPosition(g.range.decoration,u)));m&&(r.activeItems=[m])}}else h.original.length>0?this.provideLabelPick(r,b("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(r,b("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(r.busy=!1)}});return a.add(r.onDidChangeValue(()=>d(void 0))),d((o=s.getSelection())===null||o===void 0?void 0:o.getPosition()),a.add(r.onDidChangeActive(()=>{let[u]=r.activeItems;u&&u.range&&(s.revealRangeInCenter(u.range.selection,0),this.addDecorations(s,u.range.decoration))})),a}doGetSymbolPicks(e,t,r,n){var o,s;return Y1(this,void 0,void 0,function*(){let a=yield e;if(n.isCancellationRequested)return[];let l=t.original.indexOf(om.SCOPE_PREFIX)===0,c=l?1:0,d,u;t.values&&t.values.length>1?(d=MM(t.values[0]),u=MM(t.values.slice(1))):d=t;let h,f=(s=(o=this.options)===null||o===void 0?void 0:o.openSideBySideDirection)===null||s===void 0?void 0:s.call(o);f&&(h=[{iconClass:f==="right"?_t.asClassName(pt.splitHorizontal):_t.asClassName(pt.splitVertical),tooltip:f==="right"?b("openToSide","Open to the Side"):b("openToBottom","Open to the Bottom")}]);let m=[];for(let _=0;_c){let Pe=!1;if(d!==t&&([Y,le]=a4(N,Object.assign(Object.assign({},t),{values:void 0}),c,U),typeof Y=="number"&&(Pe=!0)),typeof Y!="number"&&([Y,le]=a4(N,d,c,U),typeof Y!="number"))continue;if(!Pe&&u){if(z&&u.original.length>0&&([re,Z]=a4(z,u)),typeof re!="number")continue;typeof Y=="number"&&(Y+=re)}}let ye=E.tags&&E.tags.indexOf(1)>=0;m.push({index:_,kind:E.kind,score:Y,label:N,ariaLabel:WO(E.name,E.kind),description:z,highlights:ye?void 0:{label:le,description:Z},range:{selection:B.collapseToStart(E.selectionRange),decoration:E.range},strikethrough:ye,buttons:h})}let g=m.sort((_,E)=>l?this.compareByKindAndScore(_,E):this.compareByScore(_,E)),w=[];if(l){let N=function(){E&&typeof _=="number"&&I>0&&(E.label=nf(RM[_]||NM,I))},_,E,I=0;for(let U of g)_!==U.kind?(N(),_=U.kind,I=1,E={type:"separator"},w.push(E)):I++,w.push(U);N()}else g.length>0&&(w=[{label:b("symbols","symbols ({0})",m.length),type:"separator"},...g]);return w})}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){let r=RM[e.kind]||NM,n=RM[t.kind]||NM,o=r.localeCompare(n);return o===0?this.compareByScore(e,t):o}getDocumentSymbols(e,t){return Y1(this,void 0,void 0,function*(){let r=yield this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:r.asListOfDocumentSymbols()})}};Ys.PREFIX="@";Ys.SCOPE_PREFIX=":";Ys.PREFIX_BY_CATEGORY=`${om.PREFIX}${om.SCOPE_PREFIX}`;Ys=om=cve([MX(0,Se),MX(1,Lh)],Ys);NM=b("property","properties ({0})"),RM={5:b("method","methods ({0})"),11:b("function","functions ({0})"),8:b("_constructor","constructors ({0})"),12:b("variable","variables ({0})"),4:b("class","classes ({0})"),22:b("struct","structs ({0})"),23:b("event","events ({0})"),24:b("operator","operators ({0})"),10:b("interface","interfaces ({0})"),2:b("namespace","namespaces ({0})"),3:b("package","packages ({0})"),25:b("typeParameter","type parameters ({0})"),1:b("modules","modules ({0})"),6:b("property","properties ({0})"),9:b("enum","enumerations ({0})"),21:b("enumMember","enumeration members ({0})"),14:b("string","strings ({0})"),0:b("file","files ({0})"),17:b("array","arrays ({0})"),15:b("number","numbers ({0})"),16:b("boolean","booleans ({0})"),18:b("object","objects ({0})"),19:b("key","keys ({0})"),7:b("field","fields ({0})"),13:b("constant","constants ({0})")}});var dve,PM,OM,X1,FM=M(()=>{D0();Lx();NX();dl();ug();In();xu();ei();lt();ti();wl();R1();Pt();dve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},PM=function(i,e){return function(t,r){e(t,r,i)}},OM=class extends Ys{constructor(e,t,r){super(t,r),this.editorService=e,this.onDidActiveTextEditorControlChange=ci.None}get activeTextEditorControl(){var e;return(e=this.editorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}};OM=dve([PM(0,ai),PM(1,Se),PM(2,Lh)],OM);X1=class i extends de{constructor(){super({id:i.ID,label:sy.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:O.hasDocumentSymbolProvider,kbOpts:{kbExpr:O.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(nn).quickAccess.show(Ys.PREFIX,{itemActivation:xF.NONE})}};X1.ID="editor.action.quickOutline";ee(X1);Jr.as(xa.Quickaccess).registerQuickAccessProvider({ctor:OM,prefix:Ys.PREFIX,helpEntries:[{description:sy.quickOutlineActionLabel,prefix:Ys.PREFIX,commandId:X1.ID},{description:sy.quickOutlineByCategoryActionLabel,prefix:Ys.PREFIX_BY_CATEGORY}]})});function zM(i,e){return e&&(i.stack||i.stacktrace)?b("stackTrace.format","{0}: {1}",PX(i),RX(i.stack)||RX(i.stacktrace)):PX(i)}function RX(i){return Array.isArray(i)?i.join(` -`):i}function PX(i){return i.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${i.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof i.code=="string"&&typeof i.errno=="number"&&typeof i.syscall=="string"?b("nodeExceptionMessage","A system error occurred ({0})",i.message):i.message||b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function BM(i=null,e=!1){if(!i)return b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(i)){let t=hn(i),r=BM(t[0],e);return t.length>1?b("error.moreErrors","{0} ({1} errors in total)",r,t.length):r}if(Bv(i))return i;if(i.detail){let t=i.detail;if(t.error)return zM(t.error,e);if(t.exception)return zM(t.exception,e)}return i.stack?zM(i,e):i.message?i.message:b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var OX=M(()=>{mi();zr();He()});function HM(i){let e=i;return Array.isArray(e.items)}function FX(i){let e=i;return!!e.picks&&e.additionalPicks instanceof Promise}var Q1,sm,l4,zX=M(()=>{jt();ki();ke();zr();Q1=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};(function(i){i[i.NO_ACTION=0]="NO_ACTION",i[i.CLOSE_PICKER=1]="CLOSE_PICKER",i[i.REFRESH_PICKER=2]="REFRESH_PICKER",i[i.REMOVE_ITEM=3]="REMOVE_ITEM"})(sm||(sm={}));l4=class extends ce{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,r){var n;let o=new ae;e.canAcceptInBackground=!!(!((n=this.options)===null||n===void 0)&&n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let s,a=o.add(new Wi),l=()=>Q1(this,void 0,void 0,function*(){let c=a.value=new ae;s==null||s.dispose(!0),e.busy=!1,s=new zi(t);let d=s.token,u=e.value.substr(this.prefix.length).trim(),h=this._getPicks(u,c,d,r),f=(g,w)=>{var _;let E,I;if(HM(g)?(E=g.items,I=g.active):E=g,E.length===0){if(w)return!1;(u.length>0||e.hideInput)&&(!((_=this.options)===null||_===void 0)&&_.noResultsPick)&&(G9(this.options.noResultsPick)?E=[this.options.noResultsPick(u)]:E=[this.options.noResultsPick])}return e.items=E,I&&(e.activeItems=[I]),!0},m=g=>Q1(this,void 0,void 0,function*(){let w=!1,_=!1;yield Promise.all([(()=>Q1(this,void 0,void 0,function*(){typeof g.mergeDelay=="number"&&(yield hf(g.mergeDelay),d.isCancellationRequested)||_||(w=f(g.picks,!0))}))(),(()=>Q1(this,void 0,void 0,function*(){e.busy=!0;try{let E=yield g.additionalPicks;if(d.isCancellationRequested)return;let I,N;HM(g.picks)?(I=g.picks.items,N=g.picks.active):I=g.picks;let U,z;if(HM(E)?(U=E.items,z=E.active):U=E,U.length>0||!w){let Y;if(!N&&!z){let le=e.activeItems[0];le&&I.indexOf(le)!==-1&&(Y=le)}f({items:[...I,...U],active:N||z||Y})}}finally{d.isCancellationRequested||(e.busy=!1),_=!0}}))()])});if(h!==null)if(FX(h))yield m(h);else if(!(h instanceof Promise))f(h);else{e.busy=!0;try{let g=yield h;if(d.isCancellationRequested)return;FX(g)?yield m(g):f(g)}finally{d.isCancellationRequested||(e.busy=!1)}}});return o.add(e.onDidChangeValue(()=>l())),l(),o.add(e.onDidAccept(c=>{let[d]=e.selectedItems;typeof(d==null?void 0:d.accept)=="function"&&(c.inBackground||e.hide(),d.accept(e.keyMods,c))})),o.add(e.onDidTriggerItemButton(({button:c,item:d})=>Q1(this,void 0,void 0,function*(){var u,h;if(typeof d.trigger=="function"){let f=(h=(u=d.buttons)===null||u===void 0?void 0:u.indexOf(c))!==null&&h!==void 0?h:-1;if(f>=0){let m=d.trigger(f,e.keyMods),g=typeof m=="number"?m:yield m;if(t.isCancellationRequested)return;switch(g){case sm.NO_ACTION:break;case sm.CLOSE_PICKER:e.hide();break;case sm.REFRESH_PICKER:l();break;case sm.REMOVE_ITEM:{let w=e.items.indexOf(d);if(w!==-1){let _=e.items.slice(),E=_.splice(w,1),I=e.activeItems.filter(U=>U!==E[0]),N=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=_,I&&(e.activeItems=I),e.keepScrollPosition=N}break}}}}}))),o}}});var BX,Fh,UM,Z1,hr,am,zh,HX=M(()=>{OX();qt();pl();ke();df();He();Vi();Sr();Rk();Ut();jr();zX();wu();Bc();BX=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Fh=function(i,e){return function(t,r){e(t,r,i)}},UM=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},am=Z1=class extends l4{constructor(e,t,r,n,o,s){super(Z1.PREFIX,e),this.instantiationService=t,this.keybindingService=r,this.commandService=n,this.telemetryService=o,this.dialogService=s,this.commandsHistory=this._register(this.instantiationService.createInstance(zh)),this.options=e}_getPicks(e,t,r,n){var o,s,a,l;return UM(this,void 0,void 0,function*(){let c=yield this.getCommandPicks(r);if(r.isCancellationRequested)return[];let d=[];for(let g of c){let w=(o=Z1.WORD_FILTER(e,g.label))!==null&&o!==void 0?o:void 0,_=g.commandAlias&&(s=Z1.WORD_FILTER(e,g.commandAlias))!==null&&s!==void 0?s:void 0;w||_?(g.highlights={label:w,detail:this.options.showAlias?_:void 0},d.push(g)):e===g.commandId&&d.push(g)}let u=new Map;for(let g of d){let w=u.get(g.label);w?(g.description=g.commandId,w.description=w.commandId):u.set(g.label,g)}d.sort((g,w)=>{let _=this.commandsHistory.peek(g.commandId),E=this.commandsHistory.peek(w.commandId);if(_&&E)return _>E?-1:1;if(_)return-1;if(E)return 1;if(this.options.suggestedCommandIds){let I=this.options.suggestedCommandIds.has(g.commandId),N=this.options.suggestedCommandIds.has(w.commandId);if(I&&N)return 0;if(I)return-1;if(N)return 1}return g.label.localeCompare(w.label)});let h=[],f=!1,m=!!this.options.suggestedCommandIds;for(let g=0;gUM(this,void 0,void 0,function*(){let g=yield this.getAdditionalCommandPicks(c,d,e,r);return r.isCancellationRequested?[]:g.map(w=>this.toCommandPick(w,n))}))()}:h})}toCommandPick(e,t){if(e.type==="separator")return e;let r=this.keybindingService.lookupKeybinding(e.commandId),n=r?b("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,r.getAriaLabel()):e.label;return Object.assign(Object.assign({},e),{ariaLabel:n,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:r,accept:()=>UM(this,void 0,void 0,function*(){var o,s;this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:(o=t==null?void 0:t.from)!==null&&o!==void 0?o:"quick open"});try{!((s=e.args)===null||s===void 0)&&s.length?yield this.commandService.executeCommand(e.commandId,...e.args):yield this.commandService.executeCommand(e.commandId)}catch(a){Yo(a)||this.dialogService.error(b("canNotRun","Command '{0}' resulted in an error",e.label),BM(a))}})})}};am.PREFIX=">";am.WORD_FILTER=UP(jP,qP,WP);am=Z1=BX([Fh(1,Ke),Fh(2,Kt),Fh(3,_i),Fh(4,Ln),Fh(5,Ef)],am);zh=hr=class extends ce{constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>this.updateConfiguration(e)))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=hr.getConfiguredCommandHistoryLength(this.configurationService),hr.cache&&hr.cache.limit!==this.configuredCommandsHistoryLength&&(hr.cache.limit=this.configuredCommandsHistoryLength,hr.saveState(this.storageService)))}load(){let e=this.storageService.get(hr.PREF_KEY_CACHE,0),t;if(e)try{t=JSON.parse(e)}catch(n){}let r=hr.cache=new sa(this.configuredCommandsHistoryLength,1);if(t){let n;t.usesLRU?n=t.entries:n=t.entries.sort((o,s)=>o.value-s.value),n.forEach(o=>r.set(o.key,o.value))}hr.counter=this.storageService.getNumber(hr.PREF_KEY_COUNTER,0,hr.counter)}push(e){hr.cache&&(hr.cache.set(e,hr.counter++),hr.saveState(this.storageService))}peek(e){var t;return(t=hr.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!hr.cache)return;let t={usesLRU:!0,entries:[]};hr.cache.forEach((r,n)=>t.entries.push({key:n,value:r})),e.store(hr.PREF_KEY_CACHE,JSON.stringify(t),0,0),e.store(hr.PREF_KEY_COUNTER,hr.counter,0,0)}static getConfiguredCommandHistoryLength(e){var t,r;let o=(r=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||r===void 0?void 0:r.history;return typeof o=="number"?o:hr.DEFAULT_COMMANDS_HISTORY_LENGTH}};zh.DEFAULT_COMMANDS_HISTORY_LENGTH=50;zh.PREF_KEY_CACHE="commandPalette.mru.cache";zh.PREF_KEY_COUNTER="commandPalette.mru.counter";zh.counter=1;zh=hr=BX([Fh(0,Yn),Fh(1,Mt)],zh)});var c4,UX=M(()=>{vre();HX();c4=class extends am{constructor(e,t,r,n,o,s){super(e,t,r,n,o,s)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let r of e.getSupportedActions())t.push({commandId:r.id,commandAlias:r.alias,label:GP(r.label)||r.id});return t}}});var uve,lm,jX,J1,ev,jM=M(()=>{dl();ug();xu();In();UX();Ut();jr();Vi();Bc();Rk();lt();ti();wl();uve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},lm=function(i,e){return function(t,r){e(t,r,i)}},jX=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},J1=class extends c4{get activeTextEditorControl(){var e;return(e=this.codeEditorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}constructor(e,t,r,n,o,s){super({showAlias:!1},e,r,n,o,s),this.codeEditorService=t}getCommandPicks(){return jX(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}hasAdditionalCommandPicks(){return!1}getAdditionalCommandPicks(){return jX(this,void 0,void 0,function*(){return[]})}};J1=uve([lm(0,Ke),lm(1,ai),lm(2,Kt),lm(3,_i),lm(4,Ln),lm(5,Ef)],J1);ev=class i extends de{constructor(){super({id:i.ID,label:Ok.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(nn).quickAccess.show(J1.PREFIX)}};ev.ID="editor.action.quickCommand";ee(ev);Jr.as(xa.Quickaccess).registerQuickAccessProvider({ctor:J1,prefix:J1.PREFIX,helpEntries:[{description:Ok.quickCommandHelp,commandId:ev.ID}]})});var hve,cm,WM,VM=M(()=>{lt();In();ML();Sr();wt();Ut();Mo();wu();hve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},cm=function(i,e){return function(t,r){e(t,r,i)}},WM=class extends Xa{constructor(e,t,r,n,o,s,a){super(!0,e,t,r,n,o,s,a)}};WM=hve([cm(1,it),cm(2,ai),cm(3,Ri),cm(4,Ke),cm(5,Yn),cm(6,Mt)],WM);Ue(Xa.ID,WM,4)});function wve(){return import("./jsonMode-ILQOKGQC.js")}var fve,pve,mve,gve,WX,bve,tv,vve,_ve,yve,VX,qM=M(()=>{Ns();Ns();fve=Object.defineProperty,pve=Object.getOwnPropertyDescriptor,mve=Object.getOwnPropertyNames,gve=Object.prototype.hasOwnProperty,WX=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of mve(e))!gve.call(i,n)&&n!==t&&fve(i,n,{get:()=>e[n],enumerable:!(r=pve(e,n))||r.enumerable});return i},bve=(i,e,t)=>(WX(i,e,"default"),t&&WX(t,e,"default")),tv={};bve(tv,Ms);vve=class{constructor(i,e,t){xr(this,"_onDidChange",new tv.Emitter);xr(this,"_diagnosticsOptions");xr(this,"_modeConfiguration");xr(this,"_languageId");this._languageId=i,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(i){this._diagnosticsOptions=i||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},_ve={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},yve={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},VX=new vve("json",_ve,yve);tv.languages.json={jsonDefaults:VX};tv.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});tv.languages.onLanguage("json",()=>{wve().then(i=>i.setupMode(VX))})});function te(i){let e=i.id;KX[e]=i,iv.languages.register(i);let t=$X.getOrCreate(e);iv.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),iv.languages.onLanguageEncountered(e,async()=>{let r=await t.load();iv.languages.setLanguageConfiguration(e,r.conf)})}var xve,Cve,Sve,kve,qX,Eve,iv,KX,KM,$X,Ge=M(()=>{Ns();xve=Object.defineProperty,Cve=Object.getOwnPropertyDescriptor,Sve=Object.getOwnPropertyNames,kve=Object.prototype.hasOwnProperty,qX=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sve(e))!kve.call(i,n)&&n!==t&&xve(i,n,{get:()=>e[n],enumerable:!(r=Cve(e,n))||r.enumerable});return i},Eve=(i,e,t)=>(qX(i,e,"default"),t&&qX(t,e,"default")),iv={};Eve(iv,Ms);KX={},KM={},$X=class{constructor(i){xr(this,"_languageId");xr(this,"_loadingTriggered");xr(this,"_lazyLoadPromise");xr(this,"_lazyLoadPromiseResolve");xr(this,"_lazyLoadPromiseReject");this._languageId=i,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(i){return KM[i]||(KM[i]=new $X(i)),KM[i]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,KX[this._languageId].loader().then(i=>this._lazyLoadPromiseResolve(i),i=>this._lazyLoadPromiseReject(i))),this._lazyLoadPromise}}});var $M=M(()=>{Ge();te({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>import("./elixir-I7MUXEB2.js")})});var GM=M(()=>{Ge();te({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>import("./markdown-GNMXFE7H.js")})});var YM=M(()=>{Ge();te({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>import("./javascript-6A7FQGGU.js")})});var XM=M(()=>{Ge();te({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>import("./sql-5LBGPTDB.js")})});var QM=M(()=>{Ge();te({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>import("./css-MRJBVA6L.js")})});var ZM=M(()=>{Ge();te({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:()=>import("./html-CMHOMJOM.js")})});var JM=M(()=>{Ge();te({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\import("./xml-5NTT7CCO.js")})});var eN=M(()=>{Ge();te({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>import("./dockerfile-QFITLKOJ.js")})});var nQ=Qi(()=>{});var u4=Qi((d4,oQ)=>{(function(i,e){typeof d4=="object"?oQ.exports=d4=e():typeof define=="function"&&define.amd?define([],e):i.CryptoJS=e()})(d4,function(){var i=i||function(e,t){var r;if(typeof window!="undefined"&&window.crypto&&(r=window.crypto),typeof self!="undefined"&&self.crypto&&(r=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window!="undefined"&&window.msCrypto&&(r=window.msCrypto),!r&&typeof global!="undefined"&&global.crypto&&(r=global.crypto),!r&&typeof lu=="function")try{r=nQ()}catch(_){}var n=function(){if(r){if(typeof r.getRandomValues=="function")try{return r.getRandomValues(new Uint32Array(1))[0]}catch(_){}if(typeof r.randomBytes=="function")try{return r.randomBytes(4).readInt32LE()}catch(_){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function _(){}return function(E){var I;return _.prototype=E,I=new _,_.prototype=null,I}}(),s={},a=s.lib={},l=a.Base=function(){return{extend:function(_){var E=o(this);return _&&E.mixIn(_),(!E.hasOwnProperty("init")||this.init===E.init)&&(E.init=function(){E.$super.init.apply(this,arguments)}),E.init.prototype=E,E.$super=this,E},create:function(){var _=this.extend();return _.init.apply(_,arguments),_},init:function(){},mixIn:function(_){for(var E in _)_.hasOwnProperty(E)&&(this[E]=_[E]);_.hasOwnProperty("toString")&&(this.toString=_.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=a.WordArray=l.extend({init:function(_,E){_=this.words=_||[],E!=t?this.sigBytes=E:this.sigBytes=_.length*4},toString:function(_){return(_||u).stringify(this)},concat:function(_){var E=this.words,I=_.words,N=this.sigBytes,U=_.sigBytes;if(this.clamp(),N%4)for(var z=0;z>>2]>>>24-z%4*8&255;E[N+z>>>2]|=Y<<24-(N+z)%4*8}else for(var le=0;le>>2]=I[le>>>2];return this.sigBytes+=U,this},clamp:function(){var _=this.words,E=this.sigBytes;_[E>>>2]&=4294967295<<32-E%4*8,_.length=e.ceil(E/4)},clone:function(){var _=l.clone.call(this);return _.words=this.words.slice(0),_},random:function(_){for(var E=[],I=0;I<_;I+=4)E.push(n());return new c.init(E,_)}}),d=s.enc={},u=d.Hex={stringify:function(_){for(var E=_.words,I=_.sigBytes,N=[],U=0;U>>2]>>>24-U%4*8&255;N.push((z>>>4).toString(16)),N.push((z&15).toString(16))}return N.join("")},parse:function(_){for(var E=_.length,I=[],N=0;N>>3]|=parseInt(_.substr(N,2),16)<<24-N%8*4;return new c.init(I,E/2)}},h=d.Latin1={stringify:function(_){for(var E=_.words,I=_.sigBytes,N=[],U=0;U>>2]>>>24-U%4*8&255;N.push(String.fromCharCode(z))}return N.join("")},parse:function(_){for(var E=_.length,I=[],N=0;N>>2]|=(_.charCodeAt(N)&255)<<24-N%4*8;return new c.init(I,E)}},f=d.Utf8={stringify:function(_){try{return decodeURIComponent(escape(h.stringify(_)))}catch(E){throw new Error("Malformed UTF-8 data")}},parse:function(_){return h.parse(unescape(encodeURIComponent(_)))}},m=a.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(_){typeof _=="string"&&(_=f.parse(_)),this._data.concat(_),this._nDataBytes+=_.sigBytes},_process:function(_){var E,I=this._data,N=I.words,U=I.sigBytes,z=this.blockSize,Y=z*4,le=U/Y;_?le=e.ceil(le):le=e.max((le|0)-this._minBufferSize,0);var re=le*z,Z=e.min(re*4,U);if(re){for(var ye=0;ye{(function(i,e){typeof h4=="object"?sQ.exports=h4=e(u4()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(h4,function(i){return function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,s=t.algo,a=[];(function(){for(var f=0;f<64;f++)a[f]=e.abs(e.sin(f+1))*4294967296|0})();var l=s.MD5=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(f,m){for(var g=0;g<16;g++){var w=m+g,_=f[w];f[w]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var E=this._hash.words,I=f[m+0],N=f[m+1],U=f[m+2],z=f[m+3],Y=f[m+4],le=f[m+5],re=f[m+6],Z=f[m+7],ye=f[m+8],Pe=f[m+9],Ee=f[m+10],Oe=f[m+11],Xe=f[m+12],dt=f[m+13],be=f[m+14],we=f[m+15],X=E[0],R=E[1],ne=E[2],me=E[3];X=c(X,R,ne,me,I,7,a[0]),me=c(me,X,R,ne,N,12,a[1]),ne=c(ne,me,X,R,U,17,a[2]),R=c(R,ne,me,X,z,22,a[3]),X=c(X,R,ne,me,Y,7,a[4]),me=c(me,X,R,ne,le,12,a[5]),ne=c(ne,me,X,R,re,17,a[6]),R=c(R,ne,me,X,Z,22,a[7]),X=c(X,R,ne,me,ye,7,a[8]),me=c(me,X,R,ne,Pe,12,a[9]),ne=c(ne,me,X,R,Ee,17,a[10]),R=c(R,ne,me,X,Oe,22,a[11]),X=c(X,R,ne,me,Xe,7,a[12]),me=c(me,X,R,ne,dt,12,a[13]),ne=c(ne,me,X,R,be,17,a[14]),R=c(R,ne,me,X,we,22,a[15]),X=d(X,R,ne,me,N,5,a[16]),me=d(me,X,R,ne,re,9,a[17]),ne=d(ne,me,X,R,Oe,14,a[18]),R=d(R,ne,me,X,I,20,a[19]),X=d(X,R,ne,me,le,5,a[20]),me=d(me,X,R,ne,Ee,9,a[21]),ne=d(ne,me,X,R,we,14,a[22]),R=d(R,ne,me,X,Y,20,a[23]),X=d(X,R,ne,me,Pe,5,a[24]),me=d(me,X,R,ne,be,9,a[25]),ne=d(ne,me,X,R,z,14,a[26]),R=d(R,ne,me,X,ye,20,a[27]),X=d(X,R,ne,me,dt,5,a[28]),me=d(me,X,R,ne,U,9,a[29]),ne=d(ne,me,X,R,Z,14,a[30]),R=d(R,ne,me,X,Xe,20,a[31]),X=u(X,R,ne,me,le,4,a[32]),me=u(me,X,R,ne,ye,11,a[33]),ne=u(ne,me,X,R,Oe,16,a[34]),R=u(R,ne,me,X,be,23,a[35]),X=u(X,R,ne,me,N,4,a[36]),me=u(me,X,R,ne,Y,11,a[37]),ne=u(ne,me,X,R,Z,16,a[38]),R=u(R,ne,me,X,Ee,23,a[39]),X=u(X,R,ne,me,dt,4,a[40]),me=u(me,X,R,ne,I,11,a[41]),ne=u(ne,me,X,R,z,16,a[42]),R=u(R,ne,me,X,re,23,a[43]),X=u(X,R,ne,me,Pe,4,a[44]),me=u(me,X,R,ne,Xe,11,a[45]),ne=u(ne,me,X,R,we,16,a[46]),R=u(R,ne,me,X,U,23,a[47]),X=h(X,R,ne,me,I,6,a[48]),me=h(me,X,R,ne,Z,10,a[49]),ne=h(ne,me,X,R,be,15,a[50]),R=h(R,ne,me,X,le,21,a[51]),X=h(X,R,ne,me,Xe,6,a[52]),me=h(me,X,R,ne,z,10,a[53]),ne=h(ne,me,X,R,Ee,15,a[54]),R=h(R,ne,me,X,N,21,a[55]),X=h(X,R,ne,me,ye,6,a[56]),me=h(me,X,R,ne,we,10,a[57]),ne=h(ne,me,X,R,re,15,a[58]),R=h(R,ne,me,X,dt,21,a[59]),X=h(X,R,ne,me,Y,6,a[60]),me=h(me,X,R,ne,Oe,10,a[61]),ne=h(ne,me,X,R,U,15,a[62]),R=h(R,ne,me,X,Pe,21,a[63]),E[0]=E[0]+X|0,E[1]=E[1]+R|0,E[2]=E[2]+ne|0,E[3]=E[3]+me|0},_doFinalize:function(){var f=this._data,m=f.words,g=this._nDataBytes*8,w=f.sigBytes*8;m[w>>>5]|=128<<24-w%32;var _=e.floor(g/4294967296),E=g;m[(w+64>>>9<<4)+15]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,m[(w+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,f.sigBytes=(m.length+1)*4,this._process();for(var I=this._hash,N=I.words,U=0;U<4;U++){var z=N[U];N[U]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}return I},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f}});function c(f,m,g,w,_,E,I){var N=f+(m&g|~m&w)+_+I;return(N<>>32-E)+m}function d(f,m,g,w,_,E,I){var N=f+(m&w|g&~w)+_+I;return(N<>>32-E)+m}function u(f,m,g,w,_,E,I){var N=f+(m^g^w)+_+I;return(N<>>32-E)+m}function h(f,m,g,w,_,E,I){var N=f+(g^(m|~w))+_+I;return(N<>>32-E)+m}t.MD5=o._createHelper(l),t.HmacMD5=o._createHmacHelper(l)}(Math),i.MD5})});var cQ=Qi((f4,lQ)=>{(function(i,e){typeof f4=="object"?lQ.exports=f4=e(u4()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(f4,function(i){return function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,s=t.algo,a=[],l=[];(function(){function u(g){for(var w=e.sqrt(g),_=2;_<=w;_++)if(!(g%_))return!1;return!0}function h(g){return(g-(g|0))*4294967296|0}for(var f=2,m=0;m<64;)u(f)&&(m<8&&(a[m]=h(e.pow(f,1/2))),l[m]=h(e.pow(f,1/3)),m++),f++})();var c=[],d=s.SHA256=o.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(u,h){for(var f=this._hash.words,m=f[0],g=f[1],w=f[2],_=f[3],E=f[4],I=f[5],N=f[6],U=f[7],z=0;z<64;z++){if(z<16)c[z]=u[h+z]|0;else{var Y=c[z-15],le=(Y<<25|Y>>>7)^(Y<<14|Y>>>18)^Y>>>3,re=c[z-2],Z=(re<<15|re>>>17)^(re<<13|re>>>19)^re>>>10;c[z]=le+c[z-7]+Z+c[z-16]}var ye=E&I^~E&N,Pe=m&g^m&w^g&w,Ee=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),Oe=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),Xe=U+Oe+ye+l[z]+c[z],dt=Ee+Pe;U=N,N=I,I=E,E=_+Xe|0,_=w,w=g,g=m,m=Xe+dt|0}f[0]=f[0]+m|0,f[1]=f[1]+g|0,f[2]=f[2]+w|0,f[3]=f[3]+_|0,f[4]=f[4]+E|0,f[5]=f[5]+I|0,f[6]=f[6]+N|0,f[7]=f[7]+U|0},_doFinalize:function(){var u=this._data,h=u.words,f=this._nDataBytes*8,m=u.sigBytes*8;return h[m>>>5]|=128<<24-m%32,h[(m+64>>>9<<4)+14]=e.floor(f/4294967296),h[(m+64>>>9<<4)+15]=f,u.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var u=o.clone.call(this);return u._hash=this._hash.clone(),u}});t.SHA256=o._createHelper(d),t.HmacSHA256=o._createHmacHelper(d)}(Math),i.SHA256})});var uQ=Qi((p4,dQ)=>{(function(i,e){typeof p4=="object"?dQ.exports=p4=e(u4()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(p4,function(i){return function(){var e=i,t=e.lib,r=t.WordArray,n=e.enc,o=n.Base64={stringify:function(a){var l=a.words,c=a.sigBytes,d=this._map;a.clamp();for(var u=[],h=0;h>>2]>>>24-h%4*8&255,m=l[h+1>>>2]>>>24-(h+1)%4*8&255,g=l[h+2>>>2]>>>24-(h+2)%4*8&255,w=f<<16|m<<8|g,_=0;_<4&&h+_*.75>>6*(3-_)&63));var E=d.charAt(64);if(E)for(;u.length%4;)u.push(E);return u.join("")},parse:function(a){var l=a.length,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var u=0;u>>6-h%4*2,g=f|m;d[u>>>2]|=g<<24-u%4*8,u++}return r.create(d,u)}}(),i.enc.Base64})});var VQ=Qi(T4=>{"use strict";Object.defineProperty(T4,"__esModule",{value:!0});T4.default=void 0;var Oi=(Ns(),Qh(Ms)),n_e=(Z3(),Qh(gre));function o_e(i,e){return c_e(i)||l_e(i,e)||a_e(i,e)||s_e()}function s_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +`)};let s=yield o.provideRenameEdits(this.model,this.position,e,n);if(s){if(s.rejectReason)return this._provideRenameEdits(e,t+1,r.concat(s.rejectReason),n)}else return this._provideRenameEdits(e,t+1,r.concat(b("no result","No result.")),n);return s})}};Ah=K7=class{static get(e){return e.getContribution(K7.ID)}constructor(e,t,r,n,o,s,a,l){this.editor=e,this._instaService=t,this._notificationService=r,this._bulkEditService=n,this._progressService=o,this._logService=s,this._configService=a,this._languageFeaturesService=l,this._disposableStore=new le,this._cts=new zi,this._renameInputField=this._disposableStore.add(this._instaService.createInstance(MS,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}run(){var e,t;return Ih(this,void 0,void 0,function*(){if(this._cts.dispose(!0),this._cts=new zi,!this.editor.hasModel())return;let r=this.editor.getPosition(),n=new S1(this.editor.getModel(),r,this._languageFeaturesService.renameProvider);if(!n.hasProvider())return;let o=new ga(this.editor,5,void 0,this._cts.token),s;try{let m=n.resolveRenameLocation(o.token);this._progressService.showWhile(m,250),s=yield m}catch(m){(e=qr.get(this.editor))===null||e===void 0||e.showMessage(m||b("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),r);return}finally{o.dispose()}if(!s)return;if(s.rejectReason){(t=qr.get(this.editor))===null||t===void 0||t.showMessage(s.rejectReason,r);return}if(o.token.isCancellationRequested)return;let a=new ga(this.editor,5,s.range,this._cts.token),l=this.editor.getSelection(),c=0,d=s.text.length;!B.isEmpty(l)&&!B.spansMultipleLines(l)&&B.containsRange(s.range,l)&&(c=Math.max(0,l.startColumn-s.range.startColumn),d=Math.min(s.range.endColumn,l.endColumn)-s.range.startColumn);let u=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),h=yield this._renameInputField.getInput(s.range,s.text,c,d,u,a.token);if(typeof h=="boolean"){h&&this.editor.focus(),a.dispose();return}this.editor.focus();let f=Vc(n.provideRenameEdits(h.newName,a.token),a.token).then(m=>Ih(this,void 0,void 0,function*(){if(!(!m||!this.editor.hasModel())){if(m.rejectReason){this._notificationService.info(m.rejectReason);return}this.editor.setSelection(B.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(m,{editor:this.editor,showPreview:h.wantsPreview,label:b("label","Renaming '{0}' to '{1}'",s==null?void 0:s.text,h.newName),code:"undoredo.rename",quotableLabel:b("quotableLabel","Renaming {0} to {1}",s==null?void 0:s.text,h.newName),respectAutoSaveConfig:!0}).then(g=>{g.ariaSummary&&ar(b("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",s.text,h.newName,g.ariaSummary))}).catch(g=>{this._notificationService.error(b("rename.failedApply","Rename failed to apply edits")),this._logService.error(g)})}}),m=>{this._notificationService.error(b("rename.failed","Rename failed to compute edits")),this._logService.error(m)}).finally(()=>{a.dispose()});return this._progressService.showWhile(f,250),f})}acceptRenameInput(e){this._renameInputField.acceptInput(e)}cancelRenameInput(){this._renameInputField.cancelInput(!0)}};Ah.ID="editor.contrib.renameController";Ah=K7=x1e([Th(1,Ke),Th(2,Ri),Th(3,Kc),Th(4,vl),Th(5,Hc),Th(6,hz),Th(7,Se)],Ah);$7=class extends de{constructor(){super({id:"editor.action.rename",label:b("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:fe.and(F.writable,F.hasRenameProvider),kbOpts:{kbExpr:F.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){let r=e.get(ai),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return yt.isUri(n)&&Ie.isIPosition(o)?r.openCodeEditor({resource:n},r.getActiveCodeEditor()).then(s=>{s&&(s.setPosition(o),s.invokeWithinContext(a=>(this.reportTelemetry(a,s),this.run(a,s))))},ft):super.runCommand(e,t)}run(e,t){let r=Ah.get(t);return r?r.run():Promise.resolve()}};Ue(Ah.ID,Ah,4);ee($7);G7=Fi.bindToContribution(Ah.get);We(new G7({id:"acceptRenameInput",precondition:C1,handler:i=>i.acceptRenameInput(!1),kbOpts:{weight:100+99,kbExpr:fe.and(F.focus,fe.not("isComposing")),primary:3}}));We(new G7({id:"acceptRenameInputWithPreview",precondition:fe.and(C1,fe.has("config.editor.rename.enablePreview")),handler:i=>i.acceptRenameInput(!0),kbOpts:{weight:100+99,kbExpr:fe.and(F.focus,fe.not("isComposing")),primary:1024+3}}));We(new G7({id:"cancelRenameInput",precondition:C1,handler:i=>i.cancelRenameInput(),kbOpts:{weight:100+99,kbExpr:F.focus,primary:9,secondary:[1033]}}));$n("_executeDocumentRenameProvider",function(i,e,t,...r){let[n]=r;Bt(typeof n=="string");let{renameProvider:o}=i.get(Se);return C1e(o,e,t,n)});$n("_executePrepareRename",function(i,e,t){return Ih(this,void 0,void 0,function*(){let{renameProvider:r}=i.get(Se),o=yield new S1(e,t,r).resolveRenameLocation(st.None);if(o!=null&&o.rejectReason)throw new Error(o.rejectReason);return o})});Jr.as(af.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:b("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})});function S1e(i){for(let e=0,t=i.length;e{pre();Tn()});function k1(i){return i&&!!i.data}function J7(i){return i&&Array.isArray(i.edits)}function eD(i,e){return i.has(e)}function T1e(i,e){let t=i.orderedGroups(e);return t.length>0?t[0]:[]}function tD(i,e,t,r,n){return Gd(this,void 0,void 0,function*(){let o=T1e(i,e),s=yield Promise.all(o.map(a=>Gd(this,void 0,void 0,function*(){let l,c=null;try{l=yield a.provideDocumentSemanticTokens(e,a===t?r:null,n)}catch(d){c=d,l=null}return(!l||!k1(l)&&!J7(l))&&(l=null),new Q7(a,l,c)})));for(let a of s){if(a.error)throw a.error;if(a.tokens)return a}return s.length>0?s[0]:null})}function I1e(i,e){let t=i.orderedGroups(e);return t.length>0?t[0]:null}function HY(i,e){return i.has(e)}function UY(i,e){let t=i.orderedGroups(e);return t.length>0?t[0]:[]}function NS(i,e,t,r){return Gd(this,void 0,void 0,function*(){let n=UY(i,e),o=yield Promise.all(n.map(s=>Gd(this,void 0,void 0,function*(){let a;try{a=yield s.provideDocumentRangeSemanticTokens(e,t,r)}catch(l){Xt(l),a=null}return(!a||!k1(a))&&(a=null),new Z7(s,a)})));for(let s of o)if(s.tokens)return s;return o.length>0?o[0]:null})}var Gd,Q7,Z7,iD=N(()=>{ki();qt();Ir();Xo();Vi();zr();BY();et();Pt();Gd=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};Q7=class{constructor(e,t,r){this.provider=e,this.tokens=t,this.error=r}};Z7=class{constructor(e,t){this.provider=e,this.tokens=t}};Dt.registerCommand("_provideDocumentSemanticTokensLegend",(i,...e)=>Gd(void 0,void 0,void 0,function*(){let[t]=e;Bt(t instanceof yt);let r=i.get(Di).getModel(t);if(!r)return;let{documentSemanticTokensProvider:n}=i.get(Se),o=I1e(n,r);return o?o[0].getLegend():i.get(_i).executeCommand("_provideDocumentRangeSemanticTokensLegend",t)}));Dt.registerCommand("_provideDocumentSemanticTokens",(i,...e)=>Gd(void 0,void 0,void 0,function*(){let[t]=e;Bt(t instanceof yt);let r=i.get(Di).getModel(t);if(!r)return;let{documentSemanticTokensProvider:n}=i.get(Se);if(!eD(n,r))return i.get(_i).executeCommand("_provideDocumentRangeSemanticTokens",t,r.getFullModelRange());let o=yield tD(n,r,null,null,st.None);if(!o)return;let{provider:s,tokens:a}=o;if(!a||!k1(a))return;let l=X7({id:0,type:"full",data:a.data});return a.resultId&&s.releaseDocumentSemanticTokens(a.resultId),l}));Dt.registerCommand("_provideDocumentRangeSemanticTokensLegend",(i,...e)=>Gd(void 0,void 0,void 0,function*(){let[t,r]=e;Bt(t instanceof yt);let n=i.get(Di).getModel(t);if(!n)return;let{documentRangeSemanticTokensProvider:o}=i.get(Se),s=UY(o,n);if(s.length===0)return;if(s.length===1)return s[0].getLegend();if(!r||!B.isIRange(r))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),s[0].getLegend();let a=yield NS(o,n,B.lift(r),st.None);if(a)return a.provider.getLegend()}));Dt.registerCommand("_provideDocumentRangeSemanticTokens",(i,...e)=>Gd(void 0,void 0,void 0,function*(){let[t,r]=e;Bt(t instanceof yt),Bt(B.isIRange(r));let n=i.get(Di).getModel(t);if(!n)return;let{documentRangeSemanticTokensProvider:o}=i.get(Se),s=yield NS(o,n,B.lift(r),st.None);if(!(!s||!s.tokens))return X7({id:0,type:"full",data:s.tokens.data})}))});function T1(i,e,t){var r;let n=(r=t.getValue(E1,{overrideIdentifier:i.getLanguageId(),resource:i.uri}))===null||r===void 0?void 0:r.enabled;return typeof n=="boolean"?n:e.getColorTheme().semanticHighlighting}var E1,rD=N(()=>{E1="editor.semanticHighlighting"});var jY,Ja,Yd,nD,I1,oD,sD=N(()=>{ke();qt();Xo();Sr();jt();ki();rn();fz();iD();Ds();al();Pt();pz();j_();rD();jY=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ja=function(i,e){return function(t,r){e(t,r,i)}},nD=class extends ce{constructor(e,t,r,n,o,s){super(),this._watchers=Object.create(null);let a=d=>{this._watchers[d.uri.toString()]=new I1(d,e,r,o,s)},l=(d,u)=>{u.dispose(),delete this._watchers[d.uri.toString()]},c=()=>{for(let d of t.getModels()){let u=this._watchers[d.uri.toString()];T1(d,r,n)?u||a(d):u&&l(d,u)}};this._register(t.onModelAdded(d=>{T1(d,r,n)&&a(d)})),this._register(t.onModelRemoved(d=>{let u=this._watchers[d.uri.toString()];u&&l(d,u)})),this._register(n.onDidChangeConfiguration(d=>{d.affectsConfiguration(E1)&&c()})),this._register(r.onDidColorThemeChange(c))}dispose(){for(let e of Object.values(this._watchers))e.dispose();super.dispose()}};nD=jY([Ja(0,dg),Ja(1,Di),Ja(2,br),Ja(3,Mt),Ja(4,lr),Ja(5,Se)],nD);I1=Yd=class extends ce{constructor(e,t,r,n,o){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=o.documentSemanticTokensProvider,this._debounceInformation=n.for(this._provider,"DocumentSemanticTokens",{min:Yd.REQUEST_MIN_DELAY,max:Yd.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new ui(()=>this._fetchDocumentSemanticTokensNow(),Yd.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)}));let s=()=>{ji(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(let 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)}))};s(),this._register(this._provider.onDidChange(()=>{s(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(r.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),ji(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!eD(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}if(!this._model.isAttachedToEditor())return;let e=new zi,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,r=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=tD(this._provider,this._model,t,r,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;let o=[],s=this._model.onDidChangeContent(l=>{o.push(l)}),a=new mr(!1);n.then(l=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,s.dispose(),!l)this._setDocumentSemanticTokens(null,null,null,o);else{let{provider:c,tokens:d}=l,u=this._semanticTokensStylingService.getStyling(c);this._setDocumentSemanticTokens(c,d||null,u,o)}},l=>{l&&(Yo(l)||typeof l.message=="string"&&l.message.indexOf("busy")!==-1)||ft(l),this._currentDocumentRequestCancellationTokenSource=null,s.dispose(),(o.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,r,n,o){o=Math.min(o,r.length-n,e.length-t);for(let s=0;s{(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||!r){this._model.tokenization.setSemanticTokens(null,!1);return}if(!t){this._model.tokenization.setSemanticTokens(null,!0),s();return}if(J7(t)){if(!o){this._model.tokenization.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:o.data};else{let a=0;for(let h of t.edits)a+=(h.data?h.data.length:0)-h.deleteCount;let l=o.data,c=new Uint32Array(l.length+a),d=l.length,u=c.length;for(let h=t.edits.length-1;h>=0;h--){let f=t.edits[h];if(f.start>l.length){r.warnInvalidEditStart(o.resultId,t.resultId,h,f.start,l.length),this._model.tokenization.setSemanticTokens(null,!0);return}let m=d-(f.start+f.deleteCount);m>0&&(Yd._copy(l,d-m,c,u-m,m),u-=m),f.data&&(Yd._copy(f.data,0,c,u-f.data.length,f.data.length),u-=f.data.length),d=f.start}d>0&&Yd._copy(l,0,c,0,d),t={resultId:t.resultId,data:c}}}if(k1(t)){this._currentDocumentResponse=new oD(e,t.resultId,t.data);let a=ny(t,r,this._model.getLanguageId());if(n.length>0)for(let l of n)for(let c of a)for(let d of l.changes)c.applyEdit(d.range,d.text);this._model.tokenization.setSemanticTokens(a,!0)}else this._model.tokenization.setSemanticTokens(null,!0);s()}};I1.REQUEST_MIN_DELAY=300;I1.REQUEST_MAX_DELAY=2e3;I1=Yd=jY([Ja(1,dg),Ja(2,br),Ja(3,lr),Ja(4,Se)],I1);oD=class{constructor(e,t,r){this.provider=e,this.resultId=t,this.data=r}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}};Yc(nD)});var A1e,A1,L1,aD=N(()=>{jt();ke();lt();iD();rD();fz();Sr();rn();Ds();al();Pt();pz();A1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},A1=function(i,e){return function(t,r){e(t,r,i)}},L1=class extends ce{constructor(e,t,r,n,o,s){super(),this._semanticTokensStylingService=t,this._themeService=r,this._configurationService=n,this._editor=e,this._provider=s.documentRangeSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new ui(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[];let 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(E1)&&(this._cancelAll(),a())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),a()})),a()}_cancelAll(){for(let e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,r=this._outstandingRequests.length;tthis._requestRange(e,r)))}_requestRange(e,t){let r=e.getVersionId(),n=Jt(s=>Promise.resolve(NS(this._provider,e,t,s))),o=new mr(!1);return n.then(s=>{if(this._debounceInformation.update(e,o.elapsed()),!s||!s.tokens||e.isDisposed()||e.getVersionId()!==r)return;let{provider:a,tokens:l}=s,c=this._semanticTokensStylingService.getStyling(a);e.tokenization.setPartialSemanticTokens(t,ny(l,c,e.getLanguageId()))}).then(()=>this._removeOutstandingRequest(n),()=>this._removeOutstandingRequest(n)),n}};L1.ID="editor.contrib.viewportSemanticTokens";L1=A1e([A1(1,dg),A1(2,br),A1(3,Mt),A1(4,lr),A1(5,Se)],L1);Ue(L1.ID,L1,1)});var RS,WY=N(()=>{Ni();et();RS=class{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){let r=[];for(let n of t){let o=[];r.push(o),this.selectSubwords&&this._addInWordRanges(o,e,n),this._addWordRanges(o,e,n),this._addWhitespaceLine(o,e,n),o.push({range:e.getFullModelRange()})}return r}_addInWordRanges(e,t,r){let n=t.getWordAtPosition(r);if(!n)return;let{word:o,startColumn:s}=n,a=r.column-s,l=a,c=a,d=0;for(;l>=0;l--){let u=o.charCodeAt(l);if(l!==a&&(u===95||u===45))break;if(B3(u)&&H3(d))break;d=u}for(l+=1;c0&&t.getLineFirstNonWhitespaceColumn(r.lineNumber)===0&&t.getLineLastNonWhitespaceColumn(r.lineNumber)===0&&e.push({range:new B(r.lineNumber,1,r.lineNumber,t.getLineMaxColumn(r.lineNumber))})}}});function VY(i,e,t,r,n){return OS(this,void 0,void 0,function*(){let o=i.all(e).concat(new RS(r.selectSubwords));o.length===1&&o.unshift(new Nd);let s=[],a=[];for(let l of o)s.push(Promise.resolve(l.provideSelectionRanges(e,t,n)).then(c=>{if(Ki(c)&&c.length===t.length)for(let d=0;d{if(l.length===0)return[];l.sort((h,f)=>Ie.isBefore(h.getStartPosition(),f.getStartPosition())?1:Ie.isBefore(f.getStartPosition(),h.getStartPosition())||Ie.isBefore(h.getEndPosition(),f.getEndPosition())?-1:Ie.isBefore(f.getEndPosition(),h.getEndPosition())?1:0);let c=[],d;for(let h of l)(!d||B.containsRange(h,d)&&!B.equalsRange(h,d))&&(c.push(h),d=h);if(!r.selectLeadingAndTrailingWhitespace)return c;let u=[c[0]];for(let h=1;h{mi();ki();qt();lt();di();et();Ar();ti();oL();WY();He();Ji();Vi();Pt();ra();zr();Ir();L1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},D1e=function(i,e){return function(t,r){e(t,r,i)}},OS=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},cD=class i{constructor(e,t){this.index=e,this.ranges=t}mov(e){let t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;let r=new i(t,this.ranges);return r.ranges[t].equalsRange(this.ranges[this.index])?r.mov(e):r}},Yp=lD=class{static get(e){return e.getContribution(lD.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()}run(e){return OS(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;let t=this._editor.getSelections(),r=this._editor.getModel();if(this._state||(yield VY(this._languageFeaturesService.selectionRangeProvider,r,t.map(o=>o.getPosition()),this._editor.getOption(111),st.None).then(o=>{var s;if(!(!Ki(o)||o.length!==t.length)&&!(!this._editor.hasModel()||!ks(this._editor.getSelections(),t,(a,l)=>a.equalsSelection(l)))){for(let a=0;al.containsPosition(t[a].getStartPosition())&&l.containsPosition(t[a].getEndPosition())),o[a].unshift(t[a]);this._state=o.map(a=>new cD(0,a)),(s=this._selectionListener)===null||s===void 0||s.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(o=>o.mov(e));let n=this._state.map(o=>Qe.fromPositions(o.ranges[o.index].getStartPosition(),o.ranges[o.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(n)}finally{this._ignoreSelection=!1}})}};Yp.ID="editor.contrib.smartSelectController";Yp=lD=L1e([D1e(1,Se)],Yp);PS=class extends de{constructor(e,t){super(t),this._forward=e}run(e,t){return OS(this,void 0,void 0,function*(){let r=Yp.get(t);r&&(yield r.run(this._forward))})}},dD=class extends PS{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:b("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"1_basic",title:b({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}};Dt.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");uD=class extends PS{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:b("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"1_basic",title:b({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}};Ue(Yp.ID,Yp,4);ee(dD);ee(uD);Dt.registerCommand("_executeSelectionRangeProvider",function(i,...e){return OS(this,void 0,void 0,function*(){let[t,r]=e;Bt(yt.isUri(t));let n=i.get(Se).selectionRangeProvider,o=yield i.get(Cr).createModelReference(t);try{return VY(n,o.object.textEditorModel,r,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},st.None)}finally{o.dispose()}})})});var qY,KY=N(()=>{He();qY=Object.freeze({View:{value:b("view","View"),original:"View"},Help:{value:b("help","Help"),original:"Help"},Test:{value:b("test","Test"),original:"Test"},File:{value:b("file","File"),original:"File"},Preferences:{value:b("preferences","Preferences"),original:"Preferences"},Developer:{value:b({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer"),original:"Developer"}})});var $Y=N(()=>{});var GY=N(()=>{$Y()});var M1e,D1,YY,XY,FS,fD,pD,QY=N(()=>{Ht();ck();ke();An();GY();ene();Ap();di();zP();$F();GF();hb();nA();eA();M1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},D1=class{constructor(e,t,r,n=null){this.startLineNumbers=e,this.endLineNumbers=t,this.lastLineRelativePosition=r,this.showEndForLine=n}},YY=xf("stickyScrollViewLayer",{createHTML:i=>i}),XY="data-sticky-line-index",FS=class extends ce{constructor(e){super(),this._editor=e,this._foldingIconStore=new le,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(65),this._stickyLines=[],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 Wo),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);let t=()=>{this._linesDomNode.style.left=this._editor.getOption(113).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(113)&&t(),r.hasChanged(65)&&(this._lineHeight=this._editor.getOption(65))})),this._register(this._editor.onDidScrollChange(r=>{r.scrollLeftChanged&&t(),r.scrollWidthChanged&&this._updateWidgetWidth()})),this._register(this._editor.onDidChangeModel(()=>{t(),this._updateWidgetWidth()})),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange(r=>{this._updateWidgetWidth()})),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getCurrentLines(){return this._lineNumbers}setState(e){if(this._clearStickyWidget(),!e||!this._editor._getViewModel())return;if(e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition>0){this._lastLineRelativePosition=e.lastLineRelativePosition;let r=[...e.startLineNumbers];e.showEndForLine!==null&&(r[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=r}else this._lastLineRelativePosition=0,this._lineNumbers=[];this._renderRootNode()}_updateWidgetWidth(){let e=this._editor.getLayoutInfo(),r=this._editor.getOption(71).side==="left"?e.contentLeft-e.minimap.minimapCanvasOuterWidth:e.contentLeft;this._lineNumbersDomNode.style.width=`${r}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",`${this._editor.getScrollWidth()-e.verticalScrollbarWidth}px`),this._rootDomNode.style.width=`${e.width-e.minimap.minimapCanvasOuterWidth-e.verticalScrollbarWidth}px`}_clearStickyWidget(){this._stickyLines=[],this._foldingIconStore.clear(),qn(this._lineNumbersDomNode),qn(this._linesDomNode),this._rootDomNode.style.display="none"}_useFoldingOpacityTransition(e){this._lineNumbersDomNode.style.setProperty("--vscode-editorStickyScroll-foldingOpacityTransition",`opacity ${e?.5:0}s`)}_setFoldingIconsVisibility(e){for(let t of this._stickyLines){let r=t.foldingIcon;r&&r.setVisible(e?!0:r.isCollapsed)}}_renderRootNode(){var e;return M1e(this,void 0,void 0,function*(){let t=yield(e=fs.get(this._editor))===null||e===void 0?void 0:e.getFoldingModel(),r=this._editor.getLayoutInfo();for(let[s,a]of this._lineNumbers.entries()){let l=this._renderChildNode(s,a,r,t);this._linesDomNode.appendChild(l.lineDomNode),this._lineNumbersDomNode.appendChild(l.lineNumberDomNode),this._stickyLines.push(l)}t&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));let n=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;if(n===0){this._clearStickyWidget();return}this._rootDomNode.style.display="block",this._lineNumbersDomNode.style.height=`${n}px`,this._linesDomNodeScrollable.style.height=`${n}px`,this._rootDomNode.style.height=`${n}px`,this._editor.getOption(71).side==="left"?this._rootDomNode.style.marginLeft=r.minimap.minimapCanvasOuterWidth+"px":this._rootDomNode.style.marginLeft="0px",this._updateMinContentWidth(),this._editor.layoutOverlayWidget(this)})}_setFoldingHoverListeners(){this._editor.getOption(108)==="mouseover"&&(this._foldingIconStore.add(Lt(this._lineNumbersDomNode,bi.MOUSE_ENTER,t=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)})),this._foldingIconStore.add(Lt(this._lineNumbersDomNode,bi.MOUSE_LEAVE,()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)})))}_renderChildNode(e,t,r,n){let o=this._editor._getViewModel(),s=o.coordinatesConverter.convertModelPositionToViewPosition(new Ie(t,1)).lineNumber,a=o.getViewLineRenderingData(s),l=this._editor.getOption(71).side,c=this._editor.getOption(66),d;try{d=ag.filter(a.inlineDecorations,s,a.minColumn,a.maxColumn)}catch(te){d=[]}let u=new G_(!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 i_(2e3),f=Y_(u,h),m;YY?m=YY.createHTML(h.build()):m=h.build();let g=document.createElement("span");g.className="sticky-line-content",g.classList.add(`stickyLine${t}`),g.style.lineHeight=`${this._lineHeight}px`,g.innerHTML=m;let w=document.createElement("span");w.className="sticky-line-number",w.style.lineHeight=`${this._lineHeight}px`;let _=l==="left"?r.contentLeft-r.minimap.minimapCanvasOuterWidth:r.contentLeft;w.style.width=`${_}px`;let E=document.createElement("span");c.renderType===1||c.renderType===3&&t%10===0?E.innerText=t.toString():c.renderType===2&&(E.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),E.className="sticky-line-number-inner",E.style.lineHeight=`${this._lineHeight}px`,E.style.width=`${r.lineNumbersWidth}px`,E.style.float="left",l==="left"?E.style.paddingLeft=`${r.lineNumbersLeft-r.minimap.minimapCanvasOuterWidth}px`:l==="right"&&(E.style.paddingLeft=`${r.lineNumbersLeft}px`),w.appendChild(E);let L=this._renderFoldingIconForLine(w,n,e,t);this._editor.applyFontInfo(g),this._editor.applyFontInfo(E),g.setAttribute("role","listitem"),g.setAttribute(XY,String(e)),g.tabIndex=0,w.style.lineHeight=`${this._lineHeight}px`,g.style.lineHeight=`${this._lineHeight}px`,w.style.height=`${this._lineHeight}px`,g.style.height=`${this._lineHeight}px`;let A=e===this._lineNumbers.length-1,O="0",U="1";g.style.zIndex=A?O:U,w.style.zIndex=A?O:U;let Y=`${e*this._lineHeight+this._lastLineRelativePosition+(L!=null&&L.isCollapsed?1:0)}px`,oe=`${e*this._lineHeight}px`;return g.style.top=A?Y:oe,w.style.top=A?Y:oe,new fD(t,g,w,L,f.characterMapping)}_renderFoldingIconForLine(e,t,r,n){let o=this._editor.getOption(108);if(!t||o==="never")return;let s=t.regions,a=s.findRange(n),l=s.getStartLineNumber(a);if(!(n===l))return;let d=s.isCollapsed(a),u=new pD(d,this._lineHeight);return e.append(u.domNode),u.setVisible(this._isOnGlyphMargin?!0:d||o==="always"),this._foldingIconStore.add(Lt(u.domNode,bi.CLICK,()=>{x2(t,Number.MAX_VALUE,[n]),u.isCollapsed=!d;let h=(d?this._editor.getTopForLineNumber(l):this._editor.getTopForLineNumber(s.getEndLineNumber(a)))-this._lineHeight*r+1;this._editor.setScrollTop(h)})),u}_updateMinContentWidth(){this._minContentWidthInPx=0;for(let e of this._stickyLines)e.lineDomNode.scrollWidth>this._minContentWidthInPx&&(this._minContentWidthInPx=e.lineDomNode.scrollWidth);this._minContentWidthInPx+=this._editor.getLayoutInfo().verticalScrollbarWidth}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:null}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e0)return null;let t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;let r=ez(t.characterMapping,e,0);return new Ie(t.lineNumber,r)}getLineNumberFromChildDomNode(e){var t,r;return(r=(t=this._getRenderedStickyLineFromChildDomNode(e))===null||t===void 0?void 0:t.lineNumber)!==null&&r!==void 0?r:null}_getRenderedStickyLineFromChildDomNode(e){let t=this.getStickyLineIndexFromChildDomNode(e);return t===null||t<0||t>=this._stickyLines.length?null:this._stickyLines[t]}getStickyLineIndexFromChildDomNode(e){for(;e&&e!==this._rootDomNode;){let t=e.getAttribute(XY);if(t)return parseInt(t,10);e=e.parentElement}return null}},fD=class{constructor(e,t,r,n,o){this.lineNumber=e,this.lineDomNode=t,this.lineNumberDomNode=r,this.foldingIcon=n,this.characterMapping=o}},pD=class{constructor(e,t){this.isCollapsed=e,this.dimension=t,this.domNode=document.createElement("div"),this.domNode.style.width=`${t}px`,this.domNode.style.height=`${t}px`,this.domNode.className=_t.asClassName(e?cb:lb)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}});var N1e,mD,R1e,Xd,Xp,M1,N1,Lh,gD,R1=N(()=>{mi();ki();qt();Jh();df();di();et();Ds();Ut();hl();Xo();ke();Pt();N1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},mD=function(i,e){return function(t,r){e(t,r,i)}},R1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Xd=class{remove(){var e;(e=this.parent)===null||e===void 0||e.children.delete(this.id)}static findId(e,t){let r;typeof e=="string"?r=`${t.id}/${e}`:(r=`${t.id}/${e.name}`,t.children.get(r)!==void 0&&(r=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let n=r;for(let o=0;t.children.get(n)!==void 0;o++)n=`${r}_${o}`;return n}static empty(e){return e.children.size===0}},Xp=class extends Xd{constructor(e,t,r){super(),this.id=e,this.parent=t,this.symbol=r,this.children=new Map}},M1=class extends Xd{constructor(e,t,r,n){super(),this.id=e,this.parent=t,this.label=r,this.order=n,this.children=new Map}},N1=class i extends Xd{static create(e,t,r){let n=new zi(r),o=new i(t.uri),s=e.ordered(t),a=s.map((c,d)=>{var u;let h=Xd.findId(`provider_${d}`,o),f=new M1(h,o,(u=c.displayName)!==null&&u!==void 0?u:"Unknown Outline Provider",d);return Promise.resolve(c.provideDocumentSymbols(t,n.token)).then(m=>{for(let g of m||[])i._makeOutlineElement(g,f);return f},m=>(Xt(m),f)).then(m=>{Xd.empty(m)?m.remove():o._groups.set(h,m)})}),l=e.onDidChange(()=>{let c=e.ordered(t);ks(c,s)||n.cancel()});return Promise.all(a).then(()=>n.token.isCancellationRequested&&!r.isCancellationRequested?i.create(e,t,r):o._compact()).finally(()=>{l.dispose()})}static _makeOutlineElement(e,t){let r=Xd.findId(e,t),n=new Xp(r,t,e);if(e.children)for(let o of e.children)i._makeOutlineElement(o,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(let[t,r]of this._groups)r.children.size===0?this._groups.delete(t):e+=1;if(e!==1)this.children=this._groups;else{let t=kn.first(this._groups.values());for(let[,r]of t.children)r.parent=this,this.children.set(r.id,r)}return this}getTopLevelSymbols(){let e=[];for(let t of this.children.values())t instanceof Xp?e.push(t.symbol):e.push(...kn.map(t.children.values(),r=>r.symbol));return e.sort((t,r)=>B.compareRangesUsingStarts(t.range,r.range))}asListOfDocumentSymbols(){let e=this.getTopLevelSymbols(),t=[];return i._flattenDocumentSymbols(t,e,""),t.sort((r,n)=>Ie.compare(B.getStartPosition(r.range),B.getStartPosition(n.range))||Ie.compare(B.getEndPosition(n.range),B.getEndPosition(r.range)))}static _flattenDocumentSymbols(e,t,r){for(let n of t)e.push({kind:n.kind,tags:n.tags,name:n.name,detail:n.detail,containerName:n.containerName||r,range:n.range,selectionRange:n.selectionRange,children:void 0}),n.children&&i._flattenDocumentSymbols(e,n.children,n.name)}},Lh=Qr("IOutlineModelService"),gD=class{constructor(e,t,r){this._languageFeaturesService=e,this._disposables=new le,this._cache=new sa(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(r.onModelRemoved(n=>{this._cache.delete(n.id)}))}dispose(){this._disposables.dispose()}getOrCreate(e,t){return R1e(this,void 0,void 0,function*(){let r=this._languageFeaturesService.documentSymbolProvider,n=r.ordered(e),o=this._cache.get(e.id);if(!o||o.versionId!==e.getVersionId()||!ks(o.provider,n)){let a=new zi;o={versionId:e.getVersionId(),provider:n,promiseCnt:0,source:a,promise:N1.create(r,e,a.token),model:void 0},this._cache.set(e.id,o);let l=Date.now();o.promise.then(c=>{o.model=c,this._debounceInformation.update(e,Date.now()-l)}).catch(c=>{this._cache.delete(e.id)})}if(o.model)return o.model;o.promiseCnt+=1;let s=t.onCancellationRequested(()=>{--o.promiseCnt===0&&(o.source.cancel(),this._cache.delete(e.id))});try{return yield o.promise}finally{s.dispose()}})}};gD=N1e([mD(0,Se),mD(1,lr),mD(2,Di)],gD);en(Lh,gD,1)});var bc,Dh,P1,bD=N(()=>{bc=class{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}},Dh=class{constructor(e,t,r){this.range=e,this.children=t,this.parent=r}},P1=class{constructor(e,t,r,n){this.uri=e,this.version=t,this.element=r,this.outlineProviderId=n}}});var US,F1,ZY,O1,Qd,zS,BS,vD,HS,_D,yD,JY=N(()=>{ke();Pt();R1();jt();hb();sA();iA();Hr();qt();bD();Jh();US=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},F1=function(i,e){return function(t,r){e(t,r,i)}},ZY=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};(function(i){i.OUTLINE_MODEL="outlineModel",i.FOLDING_PROVIDER_MODEL="foldingProviderModel",i.INDENTATION_MODEL="indentationModel"})(O1||(O1={}));(function(i){i[i.VALID=0]="VALID",i[i.INVALID=1]="INVALID",i[i.CANCELED=2]="CANCELED"})(Qd||(Qd={}));zS=class extends ce{constructor(e,t,r,n){super(),this._editor=e,this._languageConfigurationService=t,this._languageFeaturesService=r,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new Do(300)),this._updateOperation=this._register(new le);let o=new vD(r),s=new yD(this._editor,r),a=new _D(this._editor,t);switch(n){case O1.OUTLINE_MODEL:this._modelProviders.push(o),this._modelProviders.push(s),this._modelProviders.push(a);break;case O1.FOLDING_PROVIDER_MODEL:this._modelProviders.push(s),this._modelProviders.push(a);break;case O1.INDENTATION_MODEL:this._modelProviders.push(a);break}}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}update(e,t,r){return ZY(this,void 0,void 0,function*(){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),yield this._updateScheduler.trigger(()=>ZY(this,void 0,void 0,function*(){for(let n of this._modelProviders){let{statusPromise:o,modelPromise:s}=n.computeStickyModel(e,t,r);this._modelPromise=s;let a=yield o;if(this._modelPromise!==s)return null;switch(a){case Qd.CANCELED:return this._updateOperation.clear(),null;case Qd.VALID:return n.stickyModel}}return null})).catch(n=>(ft(n),null))})}};zS=US([F1(1,Ot),F1(2,Se)],zS);BS=class{constructor(){this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,Qd.INVALID}computeStickyModel(e,t,r){if(r.isCancellationRequested||!this.isProviderValid(e))return{statusPromise:this._invalid(),modelPromise:null};let n=Jt(o=>this.createModelFromProvider(e,t,o));return{statusPromise:n.then(o=>this.isModelValid(o)?r.isCancellationRequested?Qd.CANCELED:(this._stickyModel=this.createStickyModel(e,t,r,o),Qd.VALID):this._invalid()).then(void 0,o=>(ft(o),Qd.CANCELED)),modelPromise:n}}isModelValid(e){return!0}isProviderValid(e){return!0}},vD=class extends BS{constructor(e){super(),this._languageFeaturesService=e}createModelFromProvider(e,t,r){return N1.create(this._languageFeaturesService.documentSymbolProvider,e,r)}createStickyModel(e,t,r,n){var o;let{stickyOutlineElement:s,providerID:a}=this._stickyModelFromOutlineModel(n,(o=this._stickyModel)===null||o===void 0?void 0:o.outlineProviderId);return new P1(e.uri,t,s,a)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let r;if(kn.first(e.children.values())instanceof M1){let a=kn.find(e.children.values(),l=>l.id===t);if(a)r=a.children;else{let l="",c=-1,d;for(let[u,h]of e.children.entries()){let f=this._findSumOfRangesOfGroup(h);f>c&&(d=h,c=f,l=h.id)}t=l,r=d.children}}else r=e.children;let n=[],o=Array.from(r.values()).sort((a,l)=>{let c=new bc(a.symbol.range.startLineNumber,a.symbol.range.endLineNumber),d=new bc(l.symbol.range.startLineNumber,l.symbol.range.endLineNumber);return this._comparator(c,d)});for(let a of o)n.push(this._stickyModelFromOutlineElement(a,a.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new Dh(void 0,n,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){let r=[];for(let o of e.children.values())if(o.symbol.selectionRange.startLineNumber!==o.symbol.range.endLineNumber)if(o.symbol.selectionRange.startLineNumber!==t)r.push(this._stickyModelFromOutlineElement(o,o.symbol.selectionRange.startLineNumber));else for(let s of o.children.values())r.push(this._stickyModelFromOutlineElement(s,o.symbol.selectionRange.startLineNumber));r.sort((o,s)=>this._comparator(o.range,s.range));let n=new bc(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new Dh(n,r,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(let r of e.children.values())t+=this._findSumOfRangesOfGroup(r);return e instanceof Xp?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};vD=US([F1(0,Se)],vD);HS=class extends BS{constructor(e){super(),this._foldingLimitReporter=new ub(e)}createStickyModel(e,t,r,n){let o=this._fromFoldingRegions(n);return new P1(e.uri,t,o,void 0)}isModelValid(e){return e!==null}_fromFoldingRegions(e){let t=e.length,r=[],n=new Dh(void 0,[],void 0);for(let o=0;o0}createModelFromProvider(e,t,r){let n=fs.getFoldingRangeProviders(this._languageFeaturesService,e);return new oh(e,n,()=>this.createModelFromProvider(e,t,r),this._foldingLimitReporter,void 0).compute(r)}};yD=US([F1(1,Se)],yD)});var P1e,eX,tX,wD,jS,iX=N(()=>{ke();Pt();ki();jt();mi();ei();Hr();JY();P1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},eX=function(i,e){return function(t,r){e(t,r,i)}},tX=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},wD=class{constructor(e,t,r){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=r}},jS=class extends ce{constructor(e,t,r){super(),this._languageFeaturesService=t,this._languageConfigurationService=r,this._onDidChangeStickyScroll=this._register(new Je),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._options=null,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new le),this._updateSoon=this._register(new ui(()=>this.update(),50)),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(113)&&this.readConfiguration()})),this.readConfiguration()}readConfiguration(){this._stickyModelProvider=null,this._sessionStore.clear(),this._options=this._editor.getOption(113),this._options.enabled&&(this._stickyModelProvider=this._sessionStore.add(new zS(this._editor,this._languageConfigurationService,this._languageFeaturesService,this._options.defaultModel)),this._sessionStore.add(this._editor.onDidChangeModel(()=>{this._model=null,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.update())}getVersionId(){var e;return(e=this._model)===null||e===void 0?void 0:e.version}update(){var e;return tX(this,void 0,void 0,function*(){(e=this._cts)===null||e===void 0||e.dispose(!0),this._cts=new zi,yield this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()})}updateStickyModel(e){return tX(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._stickyModelProvider){this._model=null;return}let t=this._editor.getModel(),r=t.getVersionId(),n=yield this._stickyModelProvider.update(t,r,e);e.isCancellationRequested||(this._model=n)})}updateIndex(e){return e===-1?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,r,n,o){if(t.children.length===0)return;let s=o,a=[];for(let d=0;dd-u)),c=this.updateIndex(pu(a,e.startLineNumber+n,(d,u)=>d-u));for(let d=l;d<=c;d++){let u=t.children[d];if(!u)return;if(u.range){let h=u.range.startLineNumber,f=u.range.endLineNumber;e.startLineNumber<=f+1&&h-1<=e.endLineNumber&&h!==s&&(s=h,r.push(new wD(h,f-1,n+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,u,r,n+1,h))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,u,r,n,o)}}getCandidateStickyLinesIntersecting(e){var t,r;if(!(!((t=this._model)===null||t===void 0)&&t.element))return[];let n=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,n,0,-1);let o=(r=this._editor._getViewModel())===null||r===void 0?void 0:r.getHiddenAreas();if(o)for(let s of o)n=n.filter(a=>!(a.startLineNumber>=s.startLineNumber&&a.endLineNumber<=s.endLineNumber+1));return n}};jS=P1e([eX(1,Se),eX(2,Ot)],jS)});var O1e,Qp,rX,xD,bs,CD=N(()=>{ke();Pt();QY();iX();Ut();yl();Ji();wt();ti();i1();et();IC();N8();di();ki();Hr();Ds();Ht();bD();J9();O1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Qp=function(i,e){return function(t,r){e(t,r,i)}},rX=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},bs=xD=class extends ce{constructor(e,t,r,n,o,s,a){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=r,this._instaService=n,this._contextKeyService=a,this._sessionStore=new le,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 FS(this._editor),this._stickyLineCandidateProvider=new jS(this._editor,r,o),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=new D1([],[],0),this._readConfiguration();let l=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration(d=>{(d.hasChanged(113)||d.hasChanged(71)||d.hasChanged(65)||d.hasChanged(108))&&this._readConfiguration()})),this._register(Lt(l,bi.CONTEXT_MENU,d=>rX(this,void 0,void 0,function*(){this._onContextMenu(d)}))),this._stickyScrollFocusedContextKey=F.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=F.stickyScrollVisible.bindTo(this._contextKeyService);let c=this._register(xs(l));this._register(c.onDidBlur(d=>{this._positionRevealed===!1&&l.clientHeight===0?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()})),this._register(c.onDidFocus(d=>{this.focus()})),this._registerMouseListeners(),this._register(Lt(l,bi.MOUSE_DOWN,d=>{this._onMouseDown=!0}))}static get(e){return e.getContribution(xD.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 le,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(){let 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(B.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){let e=this._register(new le),t=this._register(new Qa(this._editor,{extractLineNumberFromMouseEvent:o=>{let s=this._stickyScrollWidget.getEditorPositionFromNode(o.target.element);return s?s.lineNumber:0}})),r=o=>{if(!this._editor.hasModel()||o.target.type!==12||o.target.detail!==this._stickyScrollWidget.getId())return null;let s=o.target.element;if(!s||s.innerText!==s.innerHTML)return null;let a=this._stickyScrollWidget.getEditorPositionFromNode(s);return a?{range:new B(a.lineNumber,a.column,a.lineNumber,a.column+s.innerText.length),textElement:s}:null},n=this._stickyScrollWidget.getDomNode();this._register(To(n,bi.CLICK,o=>{if(o.ctrlKey||o.altKey||o.metaKey||!o.leftButton)return;if(o.shiftKey){let a=this._stickyScrollWidget.getStickyLineIndexFromChildDomNode(o.target);if(a===null)return;let l=new Ie(this._endLineNumbers[a],1);this._revealLineInCenterIfOutsideViewport(l);return}let s=this._stickyScrollWidget.getEditorPositionFromNode(o.target);if(!s){let a=this._stickyScrollWidget.getLineNumberFromChildDomNode(o.target);if(a===null)return;s=new Ie(a,1)}this._revealPosition(s)})),this._register(To(n,bi.MOUSE_MOVE,o=>{if(o.shiftKey){let s=this._stickyScrollWidget.getStickyLineIndexFromChildDomNode(o.target);if(s===null||this._showEndForLine!==null&&this._showEndForLine===s)return;this._showEndForLine=s,this._renderStickyScroll();return}this._showEndForLine!==null&&(this._showEndForLine=null,this._renderStickyScroll())})),this._register(Lt(n,bi.MOUSE_LEAVE,o=>{this._showEndForLine!==null&&(this._showEndForLine=null,this._renderStickyScroll())})),this._register(t.onMouseMoveOrRelevantKeyDown(([o,s])=>{let a=r(o);if(!a||!o.hasTriggerModifier||!this._editor.hasModel()){e.clear();return}let{range:l,textElement:c}=a;if(!l.equalsRange(this._stickyRangeProjectedOnEditor))this._stickyRangeProjectedOnEditor=l,e.clear();else if(c.style.textDecoration==="underline")return;let d=new zi;e.add(ri(()=>d.dispose(!0)));let u;mh(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new Ie(l.startLineNumber,l.startColumn+1),d.token).then(h=>{if(!d.token.isCancellationRequested)if(h.length!==0){this._candidateDefinitionsLength=h.length;let f=c;u!==f?(e.clear(),u=f,u.style.textDecoration="underline",e.add(ri(()=>{u.style.textDecoration="none"}))):u||(u=f,u.style.textDecoration="underline",e.add(ri(()=>{u.style.textDecoration="none"})))}else e.clear()})})),this._register(t.onCancel(()=>{e.clear()})),this._register(t.onExecute(o=>rX(this,void 0,void 0,function*(){if(o.target.type!==12||o.target.detail!==this._stickyScrollWidget.getId())return;let s=this._stickyScrollWidget.getEditorPositionFromNode(o.target.element);s&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:s.lineNumber,column:1})),this._instaService.invokeFunction(dS,o,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(e){let t=new Vv(e);this._contextMenuService.showContextMenu({menuId:Me.StickyScrollContext,getAnchor:()=>t})}_readConfiguration(){let e=this._editor.getOption(113);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(r=>{r.scrollTopChanged&&(this._showEndForLine=null,this._renderStickyScroll())})),this._sessionStore.add(this._editor.onDidLayoutChange(()=>this._onDidResize())),this._sessionStore.add(this._editor.onDidChangeModelTokens(r=>this._onTokensChange(r))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll(()=>{this._showEndForLine=null,this._renderStickyScroll()})),this._enabled=!0);this._editor.getOption(66).renderType===2&&this._sessionStore.add(this._editor.onDidChangeCursorPosition(()=>{this._showEndForLine=null,this._renderStickyScroll()}))}_needsUpdate(e){let t=this._stickyScrollWidget.getCurrentLines();for(let r of t)for(let n of e.ranges)if(r>=n.fromLineNumber&&r<=n.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll()}_onDidResize(){let t=this._editor.getLayoutInfo().height/this._editor.getOption(65);this._maxStickyLines=Math.round(t*.25)}_renderStickyScroll(){let e=this._editor.getModel();if(!e||e.isTooLargeForTokenization()){this._stickyScrollWidget.setState(void 0);return}let t=this._stickyLineCandidateProvider.getVersionId();if(t===void 0||t===e.getVersionId())if(this._widgetState=this.findScrollWidgetState(),this._stickyScrollVisibleContextKey.set(this._widgetState.startLineNumbers.length!==0),!this._focused)this._stickyScrollWidget.setState(this._widgetState);else if(this._focusedStickyElementIndex===-1)this._stickyScrollWidget.setState(this._widgetState),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,this._focusedStickyElementIndex!==-1&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{let r=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];this._stickyScrollWidget.setState(this._widgetState),this._stickyScrollWidget.lineNumberCount===0?this._focusedStickyElementIndex=-1:(this._stickyScrollWidget.lineNumbers.includes(r)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}}findScrollWidgetState(){let e=this._editor.getOption(65),t=Math.min(this._maxStickyLines,this._editor.getOption(113).maxLineCount),r=this._editor.getScrollTop(),n=0,o=[],s=[],a=this._editor.getVisibleRanges();if(a.length!==0){let l=new bc(a[0].startLineNumber,a[a.length-1].endLineNumber),c=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(l);for(let d of c){let u=d.startLineNumber,h=d.endLineNumber,f=d.nestingDepth;if(h-u>0){let m=(f-1)*e,g=f*e,w=this._editor.getBottomForLineNumber(u)-r,_=this._editor.getTopForLineNumber(h)-r,E=this._editor.getBottomForLineNumber(h)-r;if(m>_&&m<=E){o.push(u),s.push(h+1),n=E-g;break}else g>w&&g<=E&&(o.push(u),s.push(h+1));if(o.length===t)break}}}return this._endLineNumbers=s,new D1(o,s,n,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};bs.ID="store.contrib.stickyScrollController";bs=xD=O1e([Qp(1,rs),Qp(2,Se),Qp(3,Ke),Qp(4,Ot),Qp(5,lr),Qp(6,it)],bs)});var F1e,WS,YS,VS,qS,KS,$S,GS,nX=N(()=>{lt();He();KY();Ji();Sr();wt();ti();CD();F1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},WS=class extends Jo{constructor(){super({id:"editor.action.toggleStickyScroll",title:{value:b("toggleStickyScroll","Toggle Sticky Scroll"),mnemonicTitle:b({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Sticky Scroll"),original:"Toggle Sticky Scroll"},category:qY.View,toggled:{condition:fe.equals("config.editor.stickyScroll.enabled",!0),title:b("stickyScroll","Sticky Scroll"),mnemonicTitle:b({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:Me.CommandPalette},{id:Me.MenubarAppearanceMenu,group:"4_editor",order:3},{id:Me.StickyScrollContext}]})}run(e){return F1e(this,void 0,void 0,function*(){let t=e.get(Mt),r=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",r)})}},YS=100,VS=class extends oa{constructor(){super({id:"editor.action.focusStickyScroll",title:{value:b("focusStickyScroll","Focus Sticky Scroll"),mnemonicTitle:b({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll"),original:"Focus Sticky Scroll"},precondition:fe.and(fe.has("config.editor.stickyScroll.enabled"),F.stickyScrollVisible),menu:[{id:Me.CommandPalette}]})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.focus()}},qS=class extends oa{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:{value:b("selectNextStickyScrollLine.title","Select next sticky scroll line"),original:"Select next sticky scroll line"},precondition:F.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:YS,primary:18}})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.focusNext()}},KS=class extends oa{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:{value:b("selectPreviousStickyScrollLine.title","Select previous sticky scroll line"),original:"Select previous sticky scroll line"},precondition:F.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:YS,primary:16}})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.focusPrevious()}},$S=class extends oa{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:{value:b("goToFocusedStickyScrollLine.title","Go to focused sticky scroll line"),original:"Go to focused sticky scroll line"},precondition:F.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:YS,primary:3}})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.goToFocused()}},GS=class extends oa{constructor(){super({id:"editor.action.selectEditor",title:{value:b("selectEditor.title","Select Editor"),original:"Select Editor"},precondition:F.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:YS,primary:9}})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.selectEditor()}}});var SD=N(()=>{lt();nX();CD();Ji();Ue(bs.ID,bs,1);Si(WS);Si(VS);Si(KS);Si(qS);Si($S);Si(GS)});var ID,Nh,z1e,Mh,kD,ED,TD,XS,AD=N(()=>{ki();pl();Jh();ke();lt();In();et();Pt();aL();uh();rL();sL();Zm();Ut();ID=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Nh=function(i,e){return function(t,r){e(t,r,i)}},z1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},kD=class{constructor(e,t,r,n,o,s){this.range=e,this.insertText=t,this.filterText=r,this.additionalTextEdits=n,this.command=o,this.completion=s}},ED=class extends U9{constructor(e,t,r,n,o,s){super(o.disposable),this.model=e,this.line=t,this.word=r,this.completionModel=n,this._suggestMemoryService=s}canBeReused(e,t,r){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===r.startColumn&&this.word.endColumn=0&&l.resolve(st.None)}return t}};ED=ID([Nh(5,Ep)],ED);TD=class{constructor(e,t,r,n){this._getEditorOption=e,this._languageFeatureService=t,this._clipboardService=r,this._suggestMemoryService=n}provideInlineCompletions(e,t,r,n){var o;return z1e(this,void 0,void 0,function*(){if(r.selectedSuggestionInfo)return;let s=this._getEditorOption(87,e);if(Ga.isAllOff(s))return;e.tokenization.tokenizeIfCheap(t.lineNumber);let a=e.tokenization.getLineTokens(t.lineNumber),l=a.getStandardTokenType(a.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if(Ga.valueFor(s,l)!=="inline")return;let c=e.getWordAtPosition(t),d;if(c!=null&&c.word||(d=this._getTriggerCharacterInfo(e,t)),!(c!=null&&c.word)&&!d||(c||(c=e.getWordUntilPosition(t)),c.endColumn!==t.column))return;let u,h=e.getValueInRange(new B(t.lineNumber,1,t.lineNumber,t.column));if(!d&&(!((o=this._lastResult)===null||o===void 0)&&o.canBeReused(e,t.lineNumber,c))){let f=new Rb(h,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=f,this._lastResult.acquire(),u=this._lastResult}else{let f=yield wb(this._languageFeatureService.completionProvider,e,t,new nc(void 0,void 0,d==null?void 0:d.providers),d&&{triggerKind:1,triggerCharacter:d.ch},n),m;f.needsClipboard&&(m=yield this._clipboardService.readText());let g=new Ip(f.items,t.column,new Rb(h,0),Rd.None,this._getEditorOption(116,e),this._getEditorOption(110,e),{boostFullMatch:!1,firstMatchCanBeWeak:!1},m);u=new ED(e,t.lineNumber,c,g,f,this._suggestMemoryService)}return this._lastResult=u,u})}handleItemDidShow(e,t){t.completion.resolve(st.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var r;let n=e.getValueInRange(B.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),o=new Set;for(let s of this._languageFeatureService.completionProvider.all(e))!((r=s.triggerCharacters)===null||r===void 0)&&r.includes(n)&&o.add(s);if(o.size!==0)return{providers:o,ch:n}}};TD=ID([Nh(1,Se),Nh(2,As),Nh(3,Ep)],TD);XS=Mh=class{constructor(e,t,r,n){if(++Mh._counter===1){let o=n.createInstance(TD,(s,a)=>{var l;return((l=r.listCodeEditors().find(d=>d.getModel()===a))!==null&&l!==void 0?l:e).getOption(s)});Mh._disposable=t.inlineCompletionsProvider.register("*",o)}}dispose(){var e;--Mh._counter===0&&((e=Mh._disposable)===null||e===void 0||e.dispose(),Mh._disposable=void 0)}};XS._counter=0;XS=Mh=ID([Nh(1,Se),Nh(2,ai),Nh(3,Ke)],XS);Ue("suggest.inlineCompletionsProvider",XS,0)});var oX=N(()=>{});var sX=N(()=>{oX()});var aX=N(()=>{});var lX=N(()=>{aX()});var cX=N(()=>{});var dX=N(()=>{cX()});var B1e,H1e,QS,uX=N(()=>{Ht();Mre();Z9();oF();ei();ke();is();dX();B1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},H1e=function(i,e){return function(t,r){e(t,r,i)}},QS=class extends ce{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,r={},n){var o;super(),this._link=t,this._enabled=!0,this.el=Te(e,Ae("a.monaco-link",{tabIndex:(o=t.tabIndex)!==null&&o!==void 0?o:0,href:t.href,title:t.title},t.label)),this.el.setAttribute("role","button");let s=this._register(new x_(this.el,"click")),a=this._register(new x_(this.el,"keypress")),l=ci.chain(a.event).map(u=>new Wv(u)).filter(u=>u.keyCode===3).event,c=this._register(new x_(this.el,nF.Tap)).event;this._register(I_.addTarget(this.el));let d=ci.any(s.event,l,c);this._register(d(u=>{this.enabled&&(cu.stop(u,!0),r!=null&&r.opener?r.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}};QS=B1e([H1e(3,tr)],QS)});var hX,fX,U1e,ZS,LD,pX=N(()=>{lX();Ht();ng();Fc();ke();kd();Ut();uX();Sl();An();hX=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},fX=function(i,e){return function(t,r){e(t,r,i)}},U1e=26,ZS=class extends ce{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(LD))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show(Object.assign(Object.assign({},e),{onClose:()=>{var t;this.hide(),(t=e.onClose)===null||t===void 0||t.call(e)}})),this._editor.setBanner(this.banner.element,U1e)}};ZS=hX([fX(1,Ke)],ZS);LD=class extends ce{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(to,{}),this.element=Ae("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"){let t=Ae("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){qn(this.element)}show(e){qn(this.element);let t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);let r=Te(this.element,Ae("div.icon-container"));r.setAttribute("aria-hidden","true"),e.icon&&r.appendChild(Ae(`div${_t.asCSSSelector(e.icon)}`));let n=Te(this.element,Ae("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=Te(this.element,Ae("div.message-actions-container")),e.actions)for(let s of e.actions)this._register(this.instantiationService.createInstance(QS,this.messageActionsContainer,Object.assign(Object.assign({},s),{tabIndex:-1}),{}));let o=Te(this.element,Ae("div.action-container"));this.actionBar=this._register(new Ls(o)),this.actionBar.push(this._register(new Qo("banner.close","Close Banner",_t.asClassName(V_),!0,()=>{typeof e.onClose=="function"&&e.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};LD=hX([fX(0,Ke)],LD)});function W1e(i,e){return{nonBasicASCII:e.nonBasicASCII===C_?!i:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments===C_?!i:e.includeComments,includeStrings:e.includeStrings===C_?!i:e.includeStrings,allowedCharacters:e.allowedCharacters,allowedLocales:e.allowedLocales}}function PD(i){return`U+${i.toString(16).padStart(4,"0")}`}function DD(i){let e=`\`${PD(i)}\``;return U3.isInvisibleCharacter(i)||(e+=` "${`${V1e(i)}`}"`),e}function V1e(i){return i===96?"`` ` ``":"`"+String.fromCodePoint(i)+"`"}function mX(i,e){return Nk.computeUnicodeHighlightReason(i,e)}function q1e(i,e){return $r(this,void 0,void 0,function*(){let t=i.getValue(ma.allowedCharacters),r;typeof t=="object"&&t?r=t:r={};for(let n of e)r[String.fromCodePoint(n)]=!0;yield i.updateValue(ma.allowedCharacters,r,2)})}function K1e(i,e){var t;return $r(this,void 0,void 0,function*(){let r=(t=i.inspect(ma.allowedLocales).user)===null||t===void 0?void 0:t.value,n;typeof r=="object"&&r?n=Object.assign({},r):n={};for(let o of e)n[o]=!0;yield i.updateValue(ma.allowedLocales,n,2)})}function $1e(i){throw new Error(`Unexpected value: ${i}`)}var zD,Zp,$r,j1e,Jp,MD,ND,RD,em,OD,FD,Zd,tm,im,z1,BD=N(()=>{jt();Zr();Es();ke();Tn();Ni();sX();lt();eg();Ur();ane();q_();es();tne();rc();ZC();pX();He();Sr();Ut();is();wl();Sl();lne();zD=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Zp=function(i,e){return function(t,r){e(t,r,i)}},$r=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},j1e=Pi("extensions-warning-message",pt.warning,b("warningIcon","Icon shown with a warning message in the extensions editor.")),Jp=class extends ce{constructor(e,t,r,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=r,this._highlighter=null,this._bannerClosed=!1,this._updateState=o=>{if(o&&o.hasMore){if(this._bannerClosed)return;let s=Math.max(o.ambiguousCharacterCount,o.nonBasicAsciiCharacterCount,o.invisibleCharacterCount),a;if(o.nonBasicAsciiCharacterCount>=s)a={message:b("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new im};else if(o.ambiguousCharacterCount>=s)a={message:b("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new Zd};else if(o.invisibleCharacterCount>=s)a={message:b("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new tm};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:a.message,icon:j1e,actions:[{label:a.command.shortLabel,href:`command:${a.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(ZS,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(123),this._register(r.onDidChangeTrust(o=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(o=>{o.hasChanged(123)&&(this._options=e.getOption(123),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;let e=W1e(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every(r=>r===!1))return;let t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map(r=>r.codePointAt(0)),allowedLocales:Object.keys(e.allowedLocales).map(r=>r==="_os"?new Intl.NumberFormat().resolvedOptions().locale:r==="_vscode"?X9:r)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new MD(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new ND(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};Jp.ID="editor.contrib.unicodeHighlighter";Jp=zD([Zp(1,kl),Zp(2,mz),Zp(3,Ke)],Jp);MD=class extends ce{constructor(e,t,r,n){super(),this._editor=e,this._options=t,this._updateState=r,this._editorWorkerService=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new ui(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let 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);let r=[];if(!t.hasMore)for(let n of t.ranges)r.push({range:n,options:em.instance.getDecorationFromOptions(this._options)});this._decorations.set(r)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel();if(!kk(t,e))return null;let r=t.getValueInRange(e.range);return{reason:mX(r,this._options),inComment:Ek(t,e),inString:Tk(t,e)}}};MD=zD([Zp(3,kl)],MD);ND=class extends ce{constructor(e,t,r){super(),this._editor=e,this._options=t,this._updateState=r,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new ui(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let e=this._editor.getVisibleRanges(),t=[],r={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(let n of e){let o=Nk.computeUnicodeHighlights(this._model,this._options,n);for(let s of o.ranges)r.ranges.push(s);r.ambiguousCharacterCount+=r.ambiguousCharacterCount,r.invisibleCharacterCount+=r.invisibleCharacterCount,r.nonBasicAsciiCharacterCount+=r.nonBasicAsciiCharacterCount,r.hasMore=r.hasMore||o.hasMore}if(!r.hasMore)for(let n of r.ranges)t.push({range:n,options:em.instance.getDecorationFromOptions(this._options)});this._updateState(r),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel(),r=t.getValueInRange(e.range);return kk(t,e)?{reason:mX(r,this._options),inComment:Ek(t,e),inString:Tk(t,e)}:null}},RD=class{constructor(e,t,r){this._editor=e,this._languageService=t,this._openerService=r,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];let r=this._editor.getModel(),n=this._editor.getContribution(Jp.ID);if(!n)return[];let o=[],s=new Set,a=300;for(let l of t){let c=n.getDecorationInfo(l);if(!c)continue;let u=r.getValueInRange(l.range).codePointAt(0),h=DD(u),f;switch(c.reason.kind){case 0:{$v(c.reason.confusableWith)?f=b("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",h,DD(c.reason.confusableWith.codePointAt(0))):f=b("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,DD(c.reason.confusableWith.codePointAt(0)));break}case 1:f=b("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:f=b("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h);break}if(s.has(f))continue;s.add(f);let m={codePoint:u,reason:c.reason,inComment:c.inComment,inString:c.inString},g=b("unicodeHighlight.adjustSettings","Adjust settings"),w=`command:${z1.ID}?${encodeURIComponent(JSON.stringify(m))}`,_=new $i("",!0).appendMarkdown(f).appendText(" ").appendLink(w,g);o.push(new ro(this,l.range,[_],!1,a++))}return o}renderHoverParts(e,t){return d8(e,t,this._editor,this._languageService,this._openerService)}};RD=zD([Zp(1,er),Zp(2,tr)],RD);em=class{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){let r=`${e}${t}`,n=this.map.get(r);return n||(n=mt.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(r,n)),n}};em.instance=new em;OD=class extends de{constructor(){super({id:Zd.ID,label:b("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.includeComments,!1,2)})}},FD=class extends de{constructor(){super({id:Zd.ID,label:b("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.includeStrings,!1,2)})}},Zd=class i extends de{constructor(){super({id:i.ID,label:b("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.ambiguousCharacters,!1,2)})}};Zd.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";tm=class i extends de{constructor(){super({id:i.ID,label:b("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.invisibleCharacters,!1,2)})}};tm.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";im=class i extends de{constructor(){super({id:i.ID,label:b("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.nonBasicASCII,!1,2)})}};im.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";z1=class i extends de{constructor(){super({id:i.ID,label:b("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}run(e,t,r){return $r(this,void 0,void 0,function*(){let{codePoint:n,reason:o,inString:s,inComment:a}=r,l=String.fromCodePoint(n),c=e.get(nn),d=e.get(Mt);function u(m){return U3.isInvisibleCharacter(m)?b("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",PD(m)):b("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${PD(m)} "${l}"`)}let h=[];if(o.kind===0)for(let m of o.notAmbiguousInLocales)h.push({label:b("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',m),run:()=>$r(this,void 0,void 0,function*(){K1e(d,[m])})});if(h.push({label:u(n),run:()=>q1e(d,[n])}),a){let m=new OD;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}else if(s){let m=new FD;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}if(o.kind===0){let m=new Zd;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}else if(o.kind===1){let m=new tm;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}else if(o.kind===2){let m=new im;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}else $1e(o);let f=yield c.pick(h,{title:b("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options")});f&&(yield f.run())})}};z1.ID="editor.action.unicodeHighlight.showExcludeOptions";ee(Zd);ee(tm);ee(im);ee(z1);Ue(Jp.ID,Jp,1);Uo.register(RD)});function X1e(i,e,t){i.setModelProperty(e.uri,bX,t)}function Q1e(i,e){return i.getModelProperty(e.uri,bX)}var G1e,gX,Y1e,bX,B1,HD=N(()=>{ke();Lo();lt();In();He();Rk();G1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},gX=function(i,e){return function(t,r){e(t,r,i)}},Y1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},bX="ignoreUnusualLineTerminators";B1=class extends ce{constructor(e,t,r){super(),this._editor=e,this._dialogService=t,this._codeEditorService=r,this._isPresentingDialog=!1,this._config=this._editor.getOption(124),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(124)&&(this._config=this._editor.getOption(124),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(n=>{n.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}_checkForUnusualLineTerminators(){return Y1e(this,void 0,void 0,function*(){if(this._config==="off"||!this._editor.hasModel())return;let e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators()||Q1e(this._codeEditorService,e)===!0||this._editor.getOption(89))return;if(this._config==="auto"){e.removeUnusualLineTerminators(this._editor.getSelections());return}if(this._isPresentingDialog)return;let r;try{this._isPresentingDialog=!0,r=yield this._dialogService.confirm({title:b("unusualLineTerminators.title","Unusual Line Terminators"),message:b("unusualLineTerminators.message","Detected unusual line terminators"),detail:b("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`.",Dn(e.uri)),primaryButton:b({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:b("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}if(!r.confirmed){X1e(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())})}};B1.ID="editor.contrib.unusualLineTerminatorsDetector";B1=G1e([gX(1,Ef),gX(2,ai)],B1);Ue(B1.ID,B1,1)});function _X(i,e,t,r){let n=i.ordered(e);return u_(n.map(o=>()=>Promise.resolve(o.provideDocumentHighlights(e,t,r)).then(void 0,Xt)),Ki)}function J1e(i,e,t,r){return i.has(e)?new jD(e,t,r,i):new WD(e,t,r)}var Z1e,vX,UD,t4,JS,jD,WD,VD,Rh,e4,qD,KD,$D,GD=N(()=>{Io();mi();jt();ki();qt();ke();lt();et();ti();fn();He();wt();Pt();y7();Jh();Z1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},vX=function(i,e){return function(t,r){e(t,r,i)}},t4=new ht("hasWordHighlights",!1);JS=class{constructor(e,t,r){this._model=e,this._selection=t,this._wordSeparators=r,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=Jt(e=>this._compute(this._model,this._selection,this._wordSeparators,e))),this._result}_getCurrentWordRange(e,t){let r=e.getWordAtPosition(t.getPosition());return r?new B(t.startLineNumber,r.startColumn,t.startLineNumber,r.endColumn):null}isValid(e,t,r){let n=t.startLineNumber,o=t.startColumn,s=t.endColumn,a=this._getCurrentWordRange(e,t),l=!!(this._wordRange&&this._wordRange.equalsRange(a));for(let c=0,d=r.length;!l&&c=s&&(l=!0)}return l}cancel(){this.result.cancel()}},jD=class extends JS{constructor(e,t,r,n){super(e,t,r),this._providers=n}_compute(e,t,r,n){return _X(this._providers,e,t.getPosition(),n).then(o=>o||[])}},WD=class extends JS{constructor(e,t,r){super(e,t,r),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,r,n){return hf(250,n).then(()=>{if(!t.isEmpty())return[];let o=e.getWordAtPosition(t.getPosition());return!o||o.word.length>1e3?[]:e.findMatches(o.word,!0,!1,!0,r,!1).map(a=>({range:a.range,kind:Qm.Text}))})}isValid(e,t,r){let n=t.isEmpty();return this._selectionIsEmpty!==n?!1:super.isValid(e,t,r)}};$n("_executeDocumentHighlights",(i,e,t)=>{let r=i.get(Se);return _X(r.documentHighlightProvider,e,t,st.None)});VD=class{constructor(e,t,r,n){this.toUnhook=new le,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this.linkedHighlighters=r,this._hasWordHighlights=t4.bindTo(n),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(79),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(o=>{this._ignorePositionChangeEvent||this.occurrencesHighlight&&this._onPositionChanged(o)})),this.toUnhook.add(e.onDidChangeModelContent(o=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(o=>{let s=this.editor.getOption(79);this.occurrencesHighlight!==s&&(this.occurrencesHighlight=s,this._stopAll())})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this.decorations.length>0}restore(){this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(B.compareRangesUsingStarts)}moveNext(){let e=this._getSortedHighlights(),r=(e.findIndex(o=>o.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[r];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let o=this._getWord();if(o){let s=this.editor.getModel().getLineContent(n.startLineNumber);ar(`${s}, ${r+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let e=this._getSortedHighlights(),r=(e.findIndex(o=>o.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[r];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let o=this._getWord();if(o){let s=this.editor.getModel().getLineContent(n.startLineNumber);ar(`${s}, ${r+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),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){if(!this.occurrencesHighlight){this._stopAll();return}if(e.reason!==3){this._stopAll();return}this._run()}_getWord(){let e=this.editor.getSelection(),t=e.startLineNumber,r=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:r})}_run(){let e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber){this._stopAll();return}let t=e.startColumn,r=e.endColumn,n=this._getWord();if(!n||n.startColumn>t||n.endColumn{s===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=a||[],this._beginRenderDecorations())},ft)}}_beginRenderDecorations(){let e=new Date().getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;let e=[];for(let t of this.workerRequestValue)t.range&&e.push({range:t.range,options:EY(t.kind)});this.decorations.set(e),this._hasWordHighlights.set(this.hasDecorations());for(let t of this.linkedHighlighters())(t==null?void 0:t.editor.getModel())===this.editor.getModel()&&(t._stopAll(),t.decorations.set(e),t._hasWordHighlights.set(t.hasDecorations()))}dispose(){this._stopAll(),this.toUnhook.dispose()}},Rh=UD=class extends ce{static get(e){return e.getContribution(UD.ID)}constructor(e,t,r){super(),this.wordHighlighter=null,this.linkedContributions=new Set;let n=()=>{e.hasModel()&&(this.wordHighlighter=new VD(e,r.documentHighlightProvider,()=>kn.map(this.linkedContributions,o=>o.wordHighlighter),t))};this._register(e.onDidChangeModel(o=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),n()})),n()}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()}};Rh.ID="editor.contrib.wordHighlighter";Rh=UD=Z1e([vX(1,it),vX(2,Se)],Rh);e4=class extends de{constructor(e,t){super(t),this._isNext=e}run(e,t){let r=Rh.get(t);r&&(this._isNext?r.moveNext():r.moveBack())}},qD=class extends e4{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:b("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:t4,kbOpts:{kbExpr:F.editorTextFocus,primary:65,weight:100}})}},KD=class extends e4{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:b("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:t4,kbOpts:{kbExpr:F.editorTextFocus,primary:1089,weight:100}})}},$D=class extends de{constructor(){super({id:"editor.action.wordHighlight.trigger",label:b("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:t4.toNegated(),kbOpts:{kbExpr:F.editorTextFocus,primary:0,weight:100}})}run(e,t,r){let n=Rh.get(t);n&&n.restoreViewState(!0)}};Ue(Rh.ID,Rh,0);ee(qD);ee(KD);ee($D)});var Ph,el,tl,YD,XD,QD,ZD,JD,eM,tM,iM,rM,nM,oM,sM,aM,lM,cM,dM,Oh,H1,U1,uM,hM,fM,pM,mM,gM,bM,i4=N(()=>{lt();Zv();eg();dre();TP();hre();di();et();Ar();ti();Hr();He();X_();wt();lz();Ph=class extends Fi{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,r){if(!t.hasModel())return;let n=Uc(t.getOption(128)),o=t.getModel(),a=t.getSelections().map(l=>{let c=new Ie(l.positionLineNumber,l.positionColumn),d=this._move(n,o,c,this._wordNavigationType);return this._moveTo(l,d,this._inSelectionMode)});if(o.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map(l=>kP.fromModelSelection(l))),a.length===1){let l=new Ie(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(l,0)}}_moveTo(e,t,r){return r?new Qe(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new Qe(t.lineNumber,t.column,t.lineNumber,t.column)}},el=class extends Ph{_move(e,t,r,n){return sf.moveWordLeft(e,t,r,n)}},tl=class extends Ph{_move(e,t,r,n){return sf.moveWordRight(e,t,r,n)}},YD=class extends el{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}},XD=class extends el{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}},QD=class extends el{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:fe.and(F.textInputFocus,(e=fe.and(lg,cg))===null||e===void 0?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}},ZD=class extends el{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}},JD=class extends el{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}},eM=class extends el{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:fe.and(F.textInputFocus,(e=fe.and(lg,cg))===null||e===void 0?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}},tM=class extends el{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,r,n){return super._move(Uc(Jm.wordSeparators.defaultValue),t,r,n)}},iM=class extends el{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,r,n){return super._move(Uc(Jm.wordSeparators.defaultValue),t,r,n)}},rM=class extends tl{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}},nM=class extends tl{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:fe.and(F.textInputFocus,(e=fe.and(lg,cg))===null||e===void 0?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}},oM=class extends tl{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}},sM=class extends tl{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}},aM=class extends tl{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:fe.and(F.textInputFocus,(e=fe.and(lg,cg))===null||e===void 0?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}},lM=class extends tl{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}},cM=class extends tl{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,r,n){return super._move(Uc(Jm.wordSeparators.defaultValue),t,r,n)}},dM=class extends tl{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,r,n){return super._move(Uc(Jm.wordSeparators.defaultValue),t,r,n)}},Oh=class extends Fi{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,r){let n=e.get(Ot);if(!t.hasModel())return;let o=Uc(t.getOption(128)),s=t.getModel(),a=t.getSelections(),l=t.getOption(6),c=t.getOption(10),d=n.getLanguageConfiguration(s.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),h=a.map(f=>{let m=this._delete({wordSeparators:o,model:s,selection:f,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(8),autoClosingBrackets:l,autoClosingQuotes:c,autoClosingPairs:d,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new ul(m,"")});t.pushUndoStop(),t.executeCommands(this.id,h),t.pushUndoStop()}},H1=class extends Oh{_delete(e,t){let r=sf.deleteWordLeft(e,t);return r||new B(1,1,1,1)}},U1=class extends Oh{_delete(e,t){let r=sf.deleteWordRight(e,t);if(r)return r;let n=e.model.getLineCount(),o=e.model.getLineMaxColumn(n);return new B(n,o,n,o)}},uM=class extends H1{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:F.writable})}},hM=class extends H1{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:F.writable})}},fM=class extends H1{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}},pM=class extends U1{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:F.writable})}},mM=class extends U1{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:F.writable})}},gM=class extends U1{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}},bM=class extends de{constructor(){super({id:"deleteInsideWord",precondition:F.writable,label:b("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,r){if(!t.hasModel())return;let n=Uc(t.getOption(128)),o=t.getModel(),a=t.getSelections().map(l=>{let c=sf.deleteInsideWord(n,o,l);return new ul(c,"")});t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}};We(new YD);We(new XD);We(new QD);We(new ZD);We(new JD);We(new eM);We(new rM);We(new nM);We(new oM);We(new sM);We(new aM);We(new lM);We(new tM);We(new iM);We(new cM);We(new dM);We(new uM);We(new hM);We(new fM);We(new pM);We(new mM);We(new gM);ee(bM)});var vM,_M,r4,yM,wM,n4,xM,CM,SM=N(()=>{lt();TP();et();ti();i4();Vi();vM=class extends Oh{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){let r=Om.deleteWordPartLeft(e);return r||new B(1,1,1,1)}},_M=class extends Oh{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){let r=Om.deleteWordPartRight(e);if(r)return r;let n=e.model.getLineCount(),o=e.model.getLineMaxColumn(n);return new B(n,o,n,o)}},r4=class extends Ph{_move(e,t,r,n){return Om.moveWordPartLeft(e,t,r)}},yM=class extends r4{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:783},weight:100}})}};Dt.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");wM=class extends r4{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}};Dt.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");n4=class extends Ph{_move(e,t,r,n){return Om.moveWordPartRight(e,t,r)}},xM=class extends n4{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:785},weight:100}})}},CM=class extends n4{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}};We(new vM);We(new _M);We(new yM);We(new wM);We(new xM);We(new CM)});var j1,kM=N(()=>{Es();ke();lt();M0();He();j1=class extends ce{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){let e=qr.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(90);t||(this.editor.isSimpleWidget?t=new $i(b("editor.simple.readonly","Cannot edit in read-only input")):t=new $i(b("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}};j1.ID="editor.contrib.readOnlyMessageController";Ue(j1.ID,j1,2)});var yX=N(()=>{});var wX=N(()=>{yX()});var IM=Qi(W1=>{wX();Ht();ca();ke();lt();fn();Cre();Are();es();gz();xu();var eve=W1&&W1.__decorate||function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},xX=W1&&W1.__param||function(i,e){return function(t,r){e(t,r,i)}},EM,rm=EM=class extends ce{static get(e){return e.getContribution(EM.ID)}constructor(e,t,r){super(),this._editor=e,this._languageService=r,this._widget=null,this._register(this._editor.onDidChangeModel(n=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(n=>this.stop())),this._register(_f.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 o4(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};rm.ID="editor.contrib.inspectTokens";rm=EM=eve([xX(1,oy),xX(2,er)],rm);var TM=class extends de{constructor(){super({id:"editor.action.inspectTokens",label:bz.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){let r=rm.get(t);r==null||r.launch()}};function tve(i){let e="";for(let t=0,r=i.length;tKO,tokenize:(n,o,s)=>$O(e,s),tokenizeEncoded:(n,o,s)=>GO(r,s)}}var o4=class i extends ce{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=ive(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(r=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return i._ID}_compute(e){let t=this._getTokensAtLine(e.lineNumber),r=0;for(let l=t.tokens1.length-1;l>=0;l--){let c=t.tokens1[l];if(e.column-1>=c.offset){r=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}let o=this._model.getLineContent(e.lineNumber),s="";if(r{He();dl();ke();jr();ug();wl();rve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},CX=function(i,e){return function(t,r){e(t,r,i)}},q1=V1=class{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=Jr.as(xa.Quickaccess)}provide(e){let t=new le;return t.add(e.onDidAccept(()=>{let[r]=e.selectedItems;r&&this.quickInputService.quickAccess.show(r.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(r=>{let n=this.registry.getQuickAccessProvider(r.substr(V1.PREFIX.length));n&&n.prefix&&n.prefix!==V1.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders().filter(r=>r.prefix!==V1.PREFIX),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((t,r)=>t.prefix.localeCompare(r.prefix)).flatMap(t=>this.createPicks(t))}createPicks(e){return e.helpEntries.map(t=>{let r=t.prefix||e.prefix,n=r||"\u2026";return{prefix:r,label:n,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:b("helpPickAriaLabel","{0}, {1}",n,t.description),description:t.description}})}};q1.PREFIX="?";q1=V1=rve([CX(0,nn),CX(1,Kt)],q1)});var AM=N(()=>{dl();ug();xu();SX();Jr.as(xa.Quickaccess).registerQuickAccessProvider({ctor:q1,prefix:"",helpEntries:[{description:vz.helpQuickAccessActionLabel}]})});var nm,LM=N(()=>{H9();ke();_k();qc();zO();rn();Io();nm=class{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var r;let n=new le;e.canAcceptInBackground=!!(!((r=this.options)===null||r===void 0)&&r.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let o=n.add(new Wi);return o.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange(()=>{o.value=void 0,o.value=this.doProvide(e,t)})),n}doProvide(e,t){var r;let n=new le,o=this.activeTextEditorControl;if(o&&this.canProvideWithTextEditor(o)){let s={editor:o},a=K_(o);if(a){let l=(r=o.saveViewState())!==null&&r!==void 0?r:void 0;n.add(a.onDidChangeCursorPosition(()=>{var c;l=(c=o.saveViewState())!==null&&c!==void 0?c:void 0})),s.restoreViewState=()=>{l&&o===this.activeTextEditorControl&&o.restoreViewState(l)},n.add(Ov(t.onCancellationRequested)(()=>{var c;return(c=s.restoreViewState)===null||c===void 0?void 0:c.call(s)}))}n.add(ri(()=>this.clearDecorations(o))),n.add(this.provideWithTextEditor(s,e,t))}else n.add(this.provideWithoutTextEditor(e,t));return n}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();let r=e.getModel();r&&"getLineContent"in r&&uu(`${r.getLineContent(t.range.startLineNumber)}`)}getModel(e){var t;return OF(e)?(t=e.getModel())===null||t===void 0?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(r=>{let n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);let o=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Ei(y_),position:Gn.Full}}}],[s,a]=r.deltaDecorations(n,o);this.rangeHighlightDecorationId={rangeHighlightId:s,overviewRulerDecorationId:a}})}clearDecorations(e){let t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(r=>{r.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}});var K1,kX=N(()=>{ke();_k();LM();He();K1=class i extends nm{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){let t=b("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,ce.None}provideWithTextEditor(e,t,r){let n=e.editor,o=new le;o.add(t.onDidAccept(l=>{let[c]=t.selectedItems;if(c){if(!this.isValidLineNumber(n,c.lineNumber))return;this.gotoLocation(e,{range:this.toRange(c.lineNumber,c.column),keyMods:t.keyMods,preserveFocus:l.inBackground}),l.inBackground||t.hide()}}));let s=()=>{let l=this.parsePosition(n,t.value.trim().substr(i.PREFIX.length)),c=this.getPickLabel(n,l.lineNumber,l.column);if(t.items=[{lineNumber:l.lineNumber,column:l.column,label:c}],t.ariaLabel=c,!this.isValidLineNumber(n,l.lineNumber)){this.clearDecorations(n);return}let d=this.toRange(l.lineNumber,l.column);n.revealRangeInCenter(d,0),this.addDecorations(n,d)};s(),o.add(t.onDidChangeValue(()=>s()));let a=K_(n);return a&&a.getOptions().get(66).renderType===2&&(a.updateOptions({lineNumbers:"on"}),o.add(ri(()=>a.updateOptions({lineNumbers:"relative"})))),o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){let r=t.split(/,|:|#/).map(o=>parseInt(o,10)).filter(o=>!isNaN(o)),n=this.lineCount(e)+1;return{lineNumber:r[0]>0?r[0]:n+r[0],column:r[1]}}getPickLabel(e,t,r){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,r)?b("gotoLineColumnLabel","Go to line {0} and character {1}.",t,r):b("gotoLineLabel","Go to line {0}.",t);let n=e.getPosition()||{lineNumber:1,column:1},o=this.lineCount(e);return o>1?b("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,o):b("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,r){if(!r||typeof r!="number")return!1;let n=this.getModel(e);if(!n)return!1;let o={lineNumber:t,column:r};return n.validatePosition(o).equals(o)}lineCount(e){var t,r;return(r=(t=this.getModel(e))===null||t===void 0?void 0:t.getLineCount())!==null&&r!==void 0?r:0}};K1.PREFIX=":"});var nve,ove,$1,G1,DM=N(()=>{kX();dl();ug();In();xu();ei();lt();ti();wl();nve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ove=function(i,e){return function(t,r){e(t,r,i)}},$1=class extends K1{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=ci.None}get activeTextEditorControl(){var e;return(e=this.editorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}};$1=nve([ove(0,ai)],$1);G1=class i extends de{constructor(){super({id:i.ID,label:Pk.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(nn).quickAccess.show($1.PREFIX)}};G1.ID="editor.action.gotoLine";ee(G1);Jr.as(xa.Quickaccess).registerQuickAccessProvider({ctor:$1,prefix:$1.PREFIX,helpEntries:[{description:Pk.gotoLineActionLabel,commandId:G1.ID}]})});function a4(i,e,t=0,r=0){let n=e;return n.values&&n.values.length>1?sve(i,n.values,t,r):AX(i,e,t,r)}function sve(i,e,t,r){let n=0,o=[];for(let s of e){let[a,l]=AX(i,s,t,r);if(typeof a!="number")return IX;n+=a,o.push(...l)}return[n,ave(o)]}function AX(i,e,t,r){let n=l_(e.original,e.originalLowercase,t,i,i.toLowerCase(),r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],gu(n)]:IX}function ave(i){let e=i.sort((n,o)=>n.start-o.start),t=[],r;for(let n of e)!r||!lve(r,n)?(r=n,t.push(n)):(r.start=Math.min(r.start,n.start),r.end=Math.max(r.end,n.end));return t}function lve(i,e){return!(i.end=0,s=EX(i),a,l=i.split(LX);if(l.length>1)for(let c of l){let d=EX(c),{pathNormalized:u,normalized:h,normalizedLowercase:f}=TX(c);h&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:u,normalized:h,normalizedLowercase:f,expectContiguousMatch:d}))}return{original:i,originalLowercase:e,pathNormalized:t,normalized:r,normalizedLowercase:n,values:a,containsPathSeparator:o,expectContiguousMatch:s}}function TX(i){let e;Rc?e=i.replace(/\//g,qv):e=i.replace(/\\/g,qv);let t=pP(e).replace(/\s|"/g,"");return{pathNormalized:e,normalized:t,normalizedLowercase:t.toLowerCase()}}function MM(i){return Array.isArray(i)?s4(i.map(e=>e.original).join(LX)):s4(i.original)}var IX,uvt,LX,DX=N(()=>{pl();tP();Tn();Ni();IX=[void 0,[]];uvt=Object.freeze({score:0});LX=" "});var cve,MX,Y1,om,Ys,NM,RM,NX=N(()=>{jt();ki();Zr();An();DX();ke();Ni();et();fn();R1();LM();He();Pt();mi();cve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},MX=function(i,e){return function(t,r){e(t,r,i)}},Y1=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Ys=om=class extends nm{constructor(e,t,r=Object.create(null)){super(r),this._languageFeaturesService=e,this._outlineModelService=t,this.options=r,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,b("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),ce.None}provideWithTextEditor(e,t,r){let n=e.editor,o=this.getModel(n);return o?this._languageFeaturesService.documentSymbolProvider.has(o)?this.doProvideWithEditorSymbols(e,o,t,r):this.doProvideWithoutEditorSymbols(e,o,t,r):ce.None}doProvideWithoutEditorSymbols(e,t,r,n){let o=new le;return this.provideLabelPick(r,b("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),Y1(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(t,o))||n.isCancellationRequested||o.add(this.doProvideWithEditorSymbols(e,t,r,n))}),o}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return Y1(this,void 0,void 0,function*(){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;let r=new f_,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),r.complete(!0))}));return t.add(ri(()=>r.complete(!1))),r.p})}doProvideWithEditorSymbols(e,t,r,n){var o;let s=e.editor,a=new le;a.add(r.onDidAccept(u=>{let[h]=r.selectedItems;h&&h.range&&(this.gotoLocation(e,{range:h.range.selection,keyMods:r.keyMods,preserveFocus:u.inBackground}),u.inBackground||r.hide())})),a.add(r.onDidTriggerItemButton(({item:u})=>{u&&u.range&&(this.gotoLocation(e,{range:u.range.selection,keyMods:r.keyMods,forceSideBySide:!0}),r.hide())}));let l=this.getDocumentSymbols(t,n),c,d=u=>Y1(this,void 0,void 0,function*(){c==null||c.dispose(!0),r.busy=!1,c=new zi(n),r.busy=!0;try{let h=s4(r.value.substr(om.PREFIX.length).trim()),f=yield this.doGetSymbolPicks(l,h,void 0,c.token);if(n.isCancellationRequested)return;if(f.length>0){if(r.items=f,u&&h.original.length===0){let m=MP(f,g=>!!(g.type!=="separator"&&g.range&&B.containsPosition(g.range.decoration,u)));m&&(r.activeItems=[m])}}else h.original.length>0?this.provideLabelPick(r,b("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(r,b("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(r.busy=!1)}});return a.add(r.onDidChangeValue(()=>d(void 0))),d((o=s.getSelection())===null||o===void 0?void 0:o.getPosition()),a.add(r.onDidChangeActive(()=>{let[u]=r.activeItems;u&&u.range&&(s.revealRangeInCenter(u.range.selection,0),this.addDecorations(s,u.range.decoration))})),a}doGetSymbolPicks(e,t,r,n){var o,s;return Y1(this,void 0,void 0,function*(){let a=yield e;if(n.isCancellationRequested)return[];let l=t.original.indexOf(om.SCOPE_PREFIX)===0,c=l?1:0,d,u;t.values&&t.values.length>1?(d=MM(t.values[0]),u=MM(t.values.slice(1))):d=t;let h,f=(s=(o=this.options)===null||o===void 0?void 0:o.openSideBySideDirection)===null||s===void 0?void 0:s.call(o);f&&(h=[{iconClass:f==="right"?_t.asClassName(pt.splitHorizontal):_t.asClassName(pt.splitVertical),tooltip:f==="right"?b("openToSide","Open to the Side"):b("openToBottom","Open to the Bottom")}]);let m=[];for(let _=0;_c){let Pe=!1;if(d!==t&&([Y,oe]=a4(A,Object.assign(Object.assign({},t),{values:void 0}),c,O),typeof Y=="number"&&(Pe=!0)),typeof Y!="number"&&([Y,oe]=a4(A,d,c,O),typeof Y!="number"))continue;if(!Pe&&u){if(U&&u.original.length>0&&([te,Z]=a4(U,u)),typeof te!="number")continue;typeof Y=="number"&&(Y+=te)}}let ve=E.tags&&E.tags.indexOf(1)>=0;m.push({index:_,kind:E.kind,score:Y,label:A,ariaLabel:WO(E.name,E.kind),description:U,highlights:ve?void 0:{label:oe,description:Z},range:{selection:B.collapseToStart(E.selectionRange),decoration:E.range},strikethrough:ve,buttons:h})}let g=m.sort((_,E)=>l?this.compareByKindAndScore(_,E):this.compareByScore(_,E)),w=[];if(l){let A=function(){E&&typeof _=="number"&&L>0&&(E.label=nf(RM[_]||NM,L))},_,E,L=0;for(let O of g)_!==O.kind?(A(),_=O.kind,L=1,E={type:"separator"},w.push(E)):L++,w.push(O);A()}else g.length>0&&(w=[{label:b("symbols","symbols ({0})",m.length),type:"separator"},...g]);return w})}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){let r=RM[e.kind]||NM,n=RM[t.kind]||NM,o=r.localeCompare(n);return o===0?this.compareByScore(e,t):o}getDocumentSymbols(e,t){return Y1(this,void 0,void 0,function*(){let r=yield this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:r.asListOfDocumentSymbols()})}};Ys.PREFIX="@";Ys.SCOPE_PREFIX=":";Ys.PREFIX_BY_CATEGORY=`${om.PREFIX}${om.SCOPE_PREFIX}`;Ys=om=cve([MX(0,Se),MX(1,Lh)],Ys);NM=b("property","properties ({0})"),RM={5:b("method","methods ({0})"),11:b("function","functions ({0})"),8:b("_constructor","constructors ({0})"),12:b("variable","variables ({0})"),4:b("class","classes ({0})"),22:b("struct","structs ({0})"),23:b("event","events ({0})"),24:b("operator","operators ({0})"),10:b("interface","interfaces ({0})"),2:b("namespace","namespaces ({0})"),3:b("package","packages ({0})"),25:b("typeParameter","type parameters ({0})"),1:b("modules","modules ({0})"),6:b("property","properties ({0})"),9:b("enum","enumerations ({0})"),21:b("enumMember","enumeration members ({0})"),14:b("string","strings ({0})"),0:b("file","files ({0})"),17:b("array","arrays ({0})"),15:b("number","numbers ({0})"),16:b("boolean","booleans ({0})"),18:b("object","objects ({0})"),19:b("key","keys ({0})"),7:b("field","fields ({0})"),13:b("constant","constants ({0})")}});var dve,PM,OM,X1,FM=N(()=>{D0();Lx();NX();dl();ug();In();xu();ei();lt();ti();wl();R1();Pt();dve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},PM=function(i,e){return function(t,r){e(t,r,i)}},OM=class extends Ys{constructor(e,t,r){super(t,r),this.editorService=e,this.onDidActiveTextEditorControlChange=ci.None}get activeTextEditorControl(){var e;return(e=this.editorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}};OM=dve([PM(0,ai),PM(1,Se),PM(2,Lh)],OM);X1=class i extends de{constructor(){super({id:i.ID,label:sy.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:F.hasDocumentSymbolProvider,kbOpts:{kbExpr:F.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(nn).quickAccess.show(Ys.PREFIX,{itemActivation:xF.NONE})}};X1.ID="editor.action.quickOutline";ee(X1);Jr.as(xa.Quickaccess).registerQuickAccessProvider({ctor:OM,prefix:Ys.PREFIX,helpEntries:[{description:sy.quickOutlineActionLabel,prefix:Ys.PREFIX,commandId:X1.ID},{description:sy.quickOutlineByCategoryActionLabel,prefix:Ys.PREFIX_BY_CATEGORY}]})});function zM(i,e){return e&&(i.stack||i.stacktrace)?b("stackTrace.format","{0}: {1}",PX(i),RX(i.stack)||RX(i.stacktrace)):PX(i)}function RX(i){return Array.isArray(i)?i.join(` +`):i}function PX(i){return i.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${i.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof i.code=="string"&&typeof i.errno=="number"&&typeof i.syscall=="string"?b("nodeExceptionMessage","A system error occurred ({0})",i.message):i.message||b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function BM(i=null,e=!1){if(!i)return b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(i)){let t=hn(i),r=BM(t[0],e);return t.length>1?b("error.moreErrors","{0} ({1} errors in total)",r,t.length):r}if(Bv(i))return i;if(i.detail){let t=i.detail;if(t.error)return zM(t.error,e);if(t.exception)return zM(t.exception,e)}return i.stack?zM(i,e):i.message?i.message:b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var OX=N(()=>{mi();zr();He()});function HM(i){let e=i;return Array.isArray(e.items)}function FX(i){let e=i;return!!e.picks&&e.additionalPicks instanceof Promise}var Q1,sm,l4,zX=N(()=>{jt();ki();ke();zr();Q1=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};(function(i){i[i.NO_ACTION=0]="NO_ACTION",i[i.CLOSE_PICKER=1]="CLOSE_PICKER",i[i.REFRESH_PICKER=2]="REFRESH_PICKER",i[i.REMOVE_ITEM=3]="REMOVE_ITEM"})(sm||(sm={}));l4=class extends ce{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,r){var n;let o=new le;e.canAcceptInBackground=!!(!((n=this.options)===null||n===void 0)&&n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let s,a=o.add(new Wi),l=()=>Q1(this,void 0,void 0,function*(){let c=a.value=new le;s==null||s.dispose(!0),e.busy=!1,s=new zi(t);let d=s.token,u=e.value.substr(this.prefix.length).trim(),h=this._getPicks(u,c,d,r),f=(g,w)=>{var _;let E,L;if(HM(g)?(E=g.items,L=g.active):E=g,E.length===0){if(w)return!1;(u.length>0||e.hideInput)&&(!((_=this.options)===null||_===void 0)&&_.noResultsPick)&&(G9(this.options.noResultsPick)?E=[this.options.noResultsPick(u)]:E=[this.options.noResultsPick])}return e.items=E,L&&(e.activeItems=[L]),!0},m=g=>Q1(this,void 0,void 0,function*(){let w=!1,_=!1;yield Promise.all([(()=>Q1(this,void 0,void 0,function*(){typeof g.mergeDelay=="number"&&(yield hf(g.mergeDelay),d.isCancellationRequested)||_||(w=f(g.picks,!0))}))(),(()=>Q1(this,void 0,void 0,function*(){e.busy=!0;try{let E=yield g.additionalPicks;if(d.isCancellationRequested)return;let L,A;HM(g.picks)?(L=g.picks.items,A=g.picks.active):L=g.picks;let O,U;if(HM(E)?(O=E.items,U=E.active):O=E,O.length>0||!w){let Y;if(!A&&!U){let oe=e.activeItems[0];oe&&L.indexOf(oe)!==-1&&(Y=oe)}f({items:[...L,...O],active:A||U||Y})}}finally{d.isCancellationRequested||(e.busy=!1),_=!0}}))()])});if(h!==null)if(FX(h))yield m(h);else if(!(h instanceof Promise))f(h);else{e.busy=!0;try{let g=yield h;if(d.isCancellationRequested)return;FX(g)?yield m(g):f(g)}finally{d.isCancellationRequested||(e.busy=!1)}}});return o.add(e.onDidChangeValue(()=>l())),l(),o.add(e.onDidAccept(c=>{let[d]=e.selectedItems;typeof(d==null?void 0:d.accept)=="function"&&(c.inBackground||e.hide(),d.accept(e.keyMods,c))})),o.add(e.onDidTriggerItemButton(({button:c,item:d})=>Q1(this,void 0,void 0,function*(){var u,h;if(typeof d.trigger=="function"){let f=(h=(u=d.buttons)===null||u===void 0?void 0:u.indexOf(c))!==null&&h!==void 0?h:-1;if(f>=0){let m=d.trigger(f,e.keyMods),g=typeof m=="number"?m:yield m;if(t.isCancellationRequested)return;switch(g){case sm.NO_ACTION:break;case sm.CLOSE_PICKER:e.hide();break;case sm.REFRESH_PICKER:l();break;case sm.REMOVE_ITEM:{let w=e.items.indexOf(d);if(w!==-1){let _=e.items.slice(),E=_.splice(w,1),L=e.activeItems.filter(O=>O!==E[0]),A=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=_,L&&(e.activeItems=L),e.keepScrollPosition=A}break}}}}}))),o}}});var BX,Fh,UM,Z1,hr,am,zh,HX=N(()=>{OX();qt();pl();ke();df();He();Vi();Sr();Rk();Ut();jr();zX();wu();Bc();BX=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Fh=function(i,e){return function(t,r){e(t,r,i)}},UM=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},am=Z1=class extends l4{constructor(e,t,r,n,o,s){super(Z1.PREFIX,e),this.instantiationService=t,this.keybindingService=r,this.commandService=n,this.telemetryService=o,this.dialogService=s,this.commandsHistory=this._register(this.instantiationService.createInstance(zh)),this.options=e}_getPicks(e,t,r,n){var o,s,a,l;return UM(this,void 0,void 0,function*(){let c=yield this.getCommandPicks(r);if(r.isCancellationRequested)return[];let d=[];for(let g of c){let w=(o=Z1.WORD_FILTER(e,g.label))!==null&&o!==void 0?o:void 0,_=g.commandAlias&&(s=Z1.WORD_FILTER(e,g.commandAlias))!==null&&s!==void 0?s:void 0;w||_?(g.highlights={label:w,detail:this.options.showAlias?_:void 0},d.push(g)):e===g.commandId&&d.push(g)}let u=new Map;for(let g of d){let w=u.get(g.label);w?(g.description=g.commandId,w.description=w.commandId):u.set(g.label,g)}d.sort((g,w)=>{let _=this.commandsHistory.peek(g.commandId),E=this.commandsHistory.peek(w.commandId);if(_&&E)return _>E?-1:1;if(_)return-1;if(E)return 1;if(this.options.suggestedCommandIds){let L=this.options.suggestedCommandIds.has(g.commandId),A=this.options.suggestedCommandIds.has(w.commandId);if(L&&A)return 0;if(L)return-1;if(A)return 1}return g.label.localeCompare(w.label)});let h=[],f=!1,m=!!this.options.suggestedCommandIds;for(let g=0;gUM(this,void 0,void 0,function*(){let g=yield this.getAdditionalCommandPicks(c,d,e,r);return r.isCancellationRequested?[]:g.map(w=>this.toCommandPick(w,n))}))()}:h})}toCommandPick(e,t){if(e.type==="separator")return e;let r=this.keybindingService.lookupKeybinding(e.commandId),n=r?b("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,r.getAriaLabel()):e.label;return Object.assign(Object.assign({},e),{ariaLabel:n,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:r,accept:()=>UM(this,void 0,void 0,function*(){var o,s;this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:(o=t==null?void 0:t.from)!==null&&o!==void 0?o:"quick open"});try{!((s=e.args)===null||s===void 0)&&s.length?yield this.commandService.executeCommand(e.commandId,...e.args):yield this.commandService.executeCommand(e.commandId)}catch(a){Yo(a)||this.dialogService.error(b("canNotRun","Command '{0}' resulted in an error",e.label),BM(a))}})})}};am.PREFIX=">";am.WORD_FILTER=UP(jP,qP,WP);am=Z1=BX([Fh(1,Ke),Fh(2,Kt),Fh(3,_i),Fh(4,Ln),Fh(5,Ef)],am);zh=hr=class extends ce{constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>this.updateConfiguration(e)))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=hr.getConfiguredCommandHistoryLength(this.configurationService),hr.cache&&hr.cache.limit!==this.configuredCommandsHistoryLength&&(hr.cache.limit=this.configuredCommandsHistoryLength,hr.saveState(this.storageService)))}load(){let e=this.storageService.get(hr.PREF_KEY_CACHE,0),t;if(e)try{t=JSON.parse(e)}catch(n){}let r=hr.cache=new sa(this.configuredCommandsHistoryLength,1);if(t){let n;t.usesLRU?n=t.entries:n=t.entries.sort((o,s)=>o.value-s.value),n.forEach(o=>r.set(o.key,o.value))}hr.counter=this.storageService.getNumber(hr.PREF_KEY_COUNTER,0,hr.counter)}push(e){hr.cache&&(hr.cache.set(e,hr.counter++),hr.saveState(this.storageService))}peek(e){var t;return(t=hr.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!hr.cache)return;let t={usesLRU:!0,entries:[]};hr.cache.forEach((r,n)=>t.entries.push({key:n,value:r})),e.store(hr.PREF_KEY_CACHE,JSON.stringify(t),0,0),e.store(hr.PREF_KEY_COUNTER,hr.counter,0,0)}static getConfiguredCommandHistoryLength(e){var t,r;let o=(r=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||r===void 0?void 0:r.history;return typeof o=="number"?o:hr.DEFAULT_COMMANDS_HISTORY_LENGTH}};zh.DEFAULT_COMMANDS_HISTORY_LENGTH=50;zh.PREF_KEY_CACHE="commandPalette.mru.cache";zh.PREF_KEY_COUNTER="commandPalette.mru.counter";zh.counter=1;zh=hr=BX([Fh(0,Yn),Fh(1,Mt)],zh)});var c4,UX=N(()=>{vre();HX();c4=class extends am{constructor(e,t,r,n,o,s){super(e,t,r,n,o,s)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let r of e.getSupportedActions())t.push({commandId:r.id,commandAlias:r.alias,label:GP(r.label)||r.id});return t}}});var uve,lm,jX,J1,ev,jM=N(()=>{dl();ug();xu();In();UX();Ut();jr();Vi();Bc();Rk();lt();ti();wl();uve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},lm=function(i,e){return function(t,r){e(t,r,i)}},jX=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},J1=class extends c4{get activeTextEditorControl(){var e;return(e=this.codeEditorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}constructor(e,t,r,n,o,s){super({showAlias:!1},e,r,n,o,s),this.codeEditorService=t}getCommandPicks(){return jX(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}hasAdditionalCommandPicks(){return!1}getAdditionalCommandPicks(){return jX(this,void 0,void 0,function*(){return[]})}};J1=uve([lm(0,Ke),lm(1,ai),lm(2,Kt),lm(3,_i),lm(4,Ln),lm(5,Ef)],J1);ev=class i extends de{constructor(){super({id:i.ID,label:Ok.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(nn).quickAccess.show(J1.PREFIX)}};ev.ID="editor.action.quickCommand";ee(ev);Jr.as(xa.Quickaccess).registerQuickAccessProvider({ctor:J1,prefix:J1.PREFIX,helpEntries:[{description:Ok.quickCommandHelp,commandId:ev.ID}]})});var hve,cm,WM,VM=N(()=>{lt();In();ML();Sr();wt();Ut();Mo();wu();hve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},cm=function(i,e){return function(t,r){e(t,r,i)}},WM=class extends Xa{constructor(e,t,r,n,o,s,a){super(!0,e,t,r,n,o,s,a)}};WM=hve([cm(1,it),cm(2,ai),cm(3,Ri),cm(4,Ke),cm(5,Yn),cm(6,Mt)],WM);Ue(Xa.ID,WM,4)});function wve(){return import("./jsonMode-ILQOKGQC.js")}var fve,pve,mve,gve,WX,bve,tv,vve,_ve,yve,VX,qM=N(()=>{Ns();Ns();fve=Object.defineProperty,pve=Object.getOwnPropertyDescriptor,mve=Object.getOwnPropertyNames,gve=Object.prototype.hasOwnProperty,WX=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of mve(e))!gve.call(i,n)&&n!==t&&fve(i,n,{get:()=>e[n],enumerable:!(r=pve(e,n))||r.enumerable});return i},bve=(i,e,t)=>(WX(i,e,"default"),t&&WX(t,e,"default")),tv={};bve(tv,Ms);vve=class{constructor(i,e,t){xr(this,"_onDidChange",new tv.Emitter);xr(this,"_diagnosticsOptions");xr(this,"_modeConfiguration");xr(this,"_languageId");this._languageId=i,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(i){this._diagnosticsOptions=i||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},_ve={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},yve={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},VX=new vve("json",_ve,yve);tv.languages.json={jsonDefaults:VX};tv.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});tv.languages.onLanguage("json",()=>{wve().then(i=>i.setupMode(VX))})});function ie(i){let e=i.id;KX[e]=i,iv.languages.register(i);let t=$X.getOrCreate(e);iv.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),iv.languages.onLanguageEncountered(e,async()=>{let r=await t.load();iv.languages.setLanguageConfiguration(e,r.conf)})}var xve,Cve,Sve,kve,qX,Eve,iv,KX,KM,$X,Ge=N(()=>{Ns();xve=Object.defineProperty,Cve=Object.getOwnPropertyDescriptor,Sve=Object.getOwnPropertyNames,kve=Object.prototype.hasOwnProperty,qX=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sve(e))!kve.call(i,n)&&n!==t&&xve(i,n,{get:()=>e[n],enumerable:!(r=Cve(e,n))||r.enumerable});return i},Eve=(i,e,t)=>(qX(i,e,"default"),t&&qX(t,e,"default")),iv={};Eve(iv,Ms);KX={},KM={},$X=class{constructor(i){xr(this,"_languageId");xr(this,"_loadingTriggered");xr(this,"_lazyLoadPromise");xr(this,"_lazyLoadPromiseResolve");xr(this,"_lazyLoadPromiseReject");this._languageId=i,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(i){return KM[i]||(KM[i]=new $X(i)),KM[i]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,KX[this._languageId].loader().then(i=>this._lazyLoadPromiseResolve(i),i=>this._lazyLoadPromiseReject(i))),this._lazyLoadPromise}}});var $M=N(()=>{Ge();ie({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>import("./elixir-I7MUXEB2.js")})});var GM=N(()=>{Ge();ie({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>import("./markdown-GNMXFE7H.js")})});var YM=N(()=>{Ge();ie({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>import("./javascript-6A7FQGGU.js")})});var XM=N(()=>{Ge();ie({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>import("./sql-5LBGPTDB.js")})});var QM=N(()=>{Ge();ie({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>import("./css-MRJBVA6L.js")})});var ZM=N(()=>{Ge();ie({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:()=>import("./html-CMHOMJOM.js")})});var JM=N(()=>{Ge();ie({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\import("./xml-5NTT7CCO.js")})});var eN=N(()=>{Ge();ie({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>import("./dockerfile-QFITLKOJ.js")})});var nQ=Qi(()=>{});var u4=Qi((d4,oQ)=>{(function(i,e){typeof d4=="object"?oQ.exports=d4=e():typeof define=="function"&&define.amd?define([],e):i.CryptoJS=e()})(d4,function(){var i=i||function(e,t){var r;if(typeof window!="undefined"&&window.crypto&&(r=window.crypto),typeof self!="undefined"&&self.crypto&&(r=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window!="undefined"&&window.msCrypto&&(r=window.msCrypto),!r&&typeof global!="undefined"&&global.crypto&&(r=global.crypto),!r&&typeof lu=="function")try{r=nQ()}catch(_){}var n=function(){if(r){if(typeof r.getRandomValues=="function")try{return r.getRandomValues(new Uint32Array(1))[0]}catch(_){}if(typeof r.randomBytes=="function")try{return r.randomBytes(4).readInt32LE()}catch(_){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function _(){}return function(E){var L;return _.prototype=E,L=new _,_.prototype=null,L}}(),s={},a=s.lib={},l=a.Base=function(){return{extend:function(_){var E=o(this);return _&&E.mixIn(_),(!E.hasOwnProperty("init")||this.init===E.init)&&(E.init=function(){E.$super.init.apply(this,arguments)}),E.init.prototype=E,E.$super=this,E},create:function(){var _=this.extend();return _.init.apply(_,arguments),_},init:function(){},mixIn:function(_){for(var E in _)_.hasOwnProperty(E)&&(this[E]=_[E]);_.hasOwnProperty("toString")&&(this.toString=_.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=a.WordArray=l.extend({init:function(_,E){_=this.words=_||[],E!=t?this.sigBytes=E:this.sigBytes=_.length*4},toString:function(_){return(_||u).stringify(this)},concat:function(_){var E=this.words,L=_.words,A=this.sigBytes,O=_.sigBytes;if(this.clamp(),A%4)for(var U=0;U>>2]>>>24-U%4*8&255;E[A+U>>>2]|=Y<<24-(A+U)%4*8}else for(var oe=0;oe>>2]=L[oe>>>2];return this.sigBytes+=O,this},clamp:function(){var _=this.words,E=this.sigBytes;_[E>>>2]&=4294967295<<32-E%4*8,_.length=e.ceil(E/4)},clone:function(){var _=l.clone.call(this);return _.words=this.words.slice(0),_},random:function(_){for(var E=[],L=0;L<_;L+=4)E.push(n());return new c.init(E,_)}}),d=s.enc={},u=d.Hex={stringify:function(_){for(var E=_.words,L=_.sigBytes,A=[],O=0;O>>2]>>>24-O%4*8&255;A.push((U>>>4).toString(16)),A.push((U&15).toString(16))}return A.join("")},parse:function(_){for(var E=_.length,L=[],A=0;A>>3]|=parseInt(_.substr(A,2),16)<<24-A%8*4;return new c.init(L,E/2)}},h=d.Latin1={stringify:function(_){for(var E=_.words,L=_.sigBytes,A=[],O=0;O>>2]>>>24-O%4*8&255;A.push(String.fromCharCode(U))}return A.join("")},parse:function(_){for(var E=_.length,L=[],A=0;A>>2]|=(_.charCodeAt(A)&255)<<24-A%4*8;return new c.init(L,E)}},f=d.Utf8={stringify:function(_){try{return decodeURIComponent(escape(h.stringify(_)))}catch(E){throw new Error("Malformed UTF-8 data")}},parse:function(_){return h.parse(unescape(encodeURIComponent(_)))}},m=a.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(_){typeof _=="string"&&(_=f.parse(_)),this._data.concat(_),this._nDataBytes+=_.sigBytes},_process:function(_){var E,L=this._data,A=L.words,O=L.sigBytes,U=this.blockSize,Y=U*4,oe=O/Y;_?oe=e.ceil(oe):oe=e.max((oe|0)-this._minBufferSize,0);var te=oe*U,Z=e.min(te*4,O);if(te){for(var ve=0;ve{(function(i,e){typeof h4=="object"?sQ.exports=h4=e(u4()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(h4,function(i){return function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,s=t.algo,a=[];(function(){for(var f=0;f<64;f++)a[f]=e.abs(e.sin(f+1))*4294967296|0})();var l=s.MD5=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(f,m){for(var g=0;g<16;g++){var w=m+g,_=f[w];f[w]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var E=this._hash.words,L=f[m+0],A=f[m+1],O=f[m+2],U=f[m+3],Y=f[m+4],oe=f[m+5],te=f[m+6],Z=f[m+7],ve=f[m+8],Pe=f[m+9],Ee=f[m+10],Oe=f[m+11],Xe=f[m+12],dt=f[m+13],be=f[m+14],we=f[m+15],X=E[0],R=E[1],ne=E[2],me=E[3];X=c(X,R,ne,me,L,7,a[0]),me=c(me,X,R,ne,A,12,a[1]),ne=c(ne,me,X,R,O,17,a[2]),R=c(R,ne,me,X,U,22,a[3]),X=c(X,R,ne,me,Y,7,a[4]),me=c(me,X,R,ne,oe,12,a[5]),ne=c(ne,me,X,R,te,17,a[6]),R=c(R,ne,me,X,Z,22,a[7]),X=c(X,R,ne,me,ve,7,a[8]),me=c(me,X,R,ne,Pe,12,a[9]),ne=c(ne,me,X,R,Ee,17,a[10]),R=c(R,ne,me,X,Oe,22,a[11]),X=c(X,R,ne,me,Xe,7,a[12]),me=c(me,X,R,ne,dt,12,a[13]),ne=c(ne,me,X,R,be,17,a[14]),R=c(R,ne,me,X,we,22,a[15]),X=d(X,R,ne,me,A,5,a[16]),me=d(me,X,R,ne,te,9,a[17]),ne=d(ne,me,X,R,Oe,14,a[18]),R=d(R,ne,me,X,L,20,a[19]),X=d(X,R,ne,me,oe,5,a[20]),me=d(me,X,R,ne,Ee,9,a[21]),ne=d(ne,me,X,R,we,14,a[22]),R=d(R,ne,me,X,Y,20,a[23]),X=d(X,R,ne,me,Pe,5,a[24]),me=d(me,X,R,ne,be,9,a[25]),ne=d(ne,me,X,R,U,14,a[26]),R=d(R,ne,me,X,ve,20,a[27]),X=d(X,R,ne,me,dt,5,a[28]),me=d(me,X,R,ne,O,9,a[29]),ne=d(ne,me,X,R,Z,14,a[30]),R=d(R,ne,me,X,Xe,20,a[31]),X=u(X,R,ne,me,oe,4,a[32]),me=u(me,X,R,ne,ve,11,a[33]),ne=u(ne,me,X,R,Oe,16,a[34]),R=u(R,ne,me,X,be,23,a[35]),X=u(X,R,ne,me,A,4,a[36]),me=u(me,X,R,ne,Y,11,a[37]),ne=u(ne,me,X,R,Z,16,a[38]),R=u(R,ne,me,X,Ee,23,a[39]),X=u(X,R,ne,me,dt,4,a[40]),me=u(me,X,R,ne,L,11,a[41]),ne=u(ne,me,X,R,U,16,a[42]),R=u(R,ne,me,X,te,23,a[43]),X=u(X,R,ne,me,Pe,4,a[44]),me=u(me,X,R,ne,Xe,11,a[45]),ne=u(ne,me,X,R,we,16,a[46]),R=u(R,ne,me,X,O,23,a[47]),X=h(X,R,ne,me,L,6,a[48]),me=h(me,X,R,ne,Z,10,a[49]),ne=h(ne,me,X,R,be,15,a[50]),R=h(R,ne,me,X,oe,21,a[51]),X=h(X,R,ne,me,Xe,6,a[52]),me=h(me,X,R,ne,U,10,a[53]),ne=h(ne,me,X,R,Ee,15,a[54]),R=h(R,ne,me,X,A,21,a[55]),X=h(X,R,ne,me,ve,6,a[56]),me=h(me,X,R,ne,we,10,a[57]),ne=h(ne,me,X,R,te,15,a[58]),R=h(R,ne,me,X,dt,21,a[59]),X=h(X,R,ne,me,Y,6,a[60]),me=h(me,X,R,ne,Oe,10,a[61]),ne=h(ne,me,X,R,O,15,a[62]),R=h(R,ne,me,X,Pe,21,a[63]),E[0]=E[0]+X|0,E[1]=E[1]+R|0,E[2]=E[2]+ne|0,E[3]=E[3]+me|0},_doFinalize:function(){var f=this._data,m=f.words,g=this._nDataBytes*8,w=f.sigBytes*8;m[w>>>5]|=128<<24-w%32;var _=e.floor(g/4294967296),E=g;m[(w+64>>>9<<4)+15]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,m[(w+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,f.sigBytes=(m.length+1)*4,this._process();for(var L=this._hash,A=L.words,O=0;O<4;O++){var U=A[O];A[O]=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360}return L},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f}});function c(f,m,g,w,_,E,L){var A=f+(m&g|~m&w)+_+L;return(A<>>32-E)+m}function d(f,m,g,w,_,E,L){var A=f+(m&w|g&~w)+_+L;return(A<>>32-E)+m}function u(f,m,g,w,_,E,L){var A=f+(m^g^w)+_+L;return(A<>>32-E)+m}function h(f,m,g,w,_,E,L){var A=f+(g^(m|~w))+_+L;return(A<>>32-E)+m}t.MD5=o._createHelper(l),t.HmacMD5=o._createHmacHelper(l)}(Math),i.MD5})});var cQ=Qi((f4,lQ)=>{(function(i,e){typeof f4=="object"?lQ.exports=f4=e(u4()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(f4,function(i){return function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,s=t.algo,a=[],l=[];(function(){function u(g){for(var w=e.sqrt(g),_=2;_<=w;_++)if(!(g%_))return!1;return!0}function h(g){return(g-(g|0))*4294967296|0}for(var f=2,m=0;m<64;)u(f)&&(m<8&&(a[m]=h(e.pow(f,1/2))),l[m]=h(e.pow(f,1/3)),m++),f++})();var c=[],d=s.SHA256=o.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(u,h){for(var f=this._hash.words,m=f[0],g=f[1],w=f[2],_=f[3],E=f[4],L=f[5],A=f[6],O=f[7],U=0;U<64;U++){if(U<16)c[U]=u[h+U]|0;else{var Y=c[U-15],oe=(Y<<25|Y>>>7)^(Y<<14|Y>>>18)^Y>>>3,te=c[U-2],Z=(te<<15|te>>>17)^(te<<13|te>>>19)^te>>>10;c[U]=oe+c[U-7]+Z+c[U-16]}var ve=E&L^~E&A,Pe=m&g^m&w^g&w,Ee=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),Oe=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),Xe=O+Oe+ve+l[U]+c[U],dt=Ee+Pe;O=A,A=L,L=E,E=_+Xe|0,_=w,w=g,g=m,m=Xe+dt|0}f[0]=f[0]+m|0,f[1]=f[1]+g|0,f[2]=f[2]+w|0,f[3]=f[3]+_|0,f[4]=f[4]+E|0,f[5]=f[5]+L|0,f[6]=f[6]+A|0,f[7]=f[7]+O|0},_doFinalize:function(){var u=this._data,h=u.words,f=this._nDataBytes*8,m=u.sigBytes*8;return h[m>>>5]|=128<<24-m%32,h[(m+64>>>9<<4)+14]=e.floor(f/4294967296),h[(m+64>>>9<<4)+15]=f,u.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var u=o.clone.call(this);return u._hash=this._hash.clone(),u}});t.SHA256=o._createHelper(d),t.HmacSHA256=o._createHmacHelper(d)}(Math),i.SHA256})});var uQ=Qi((p4,dQ)=>{(function(i,e){typeof p4=="object"?dQ.exports=p4=e(u4()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(p4,function(i){return function(){var e=i,t=e.lib,r=t.WordArray,n=e.enc,o=n.Base64={stringify:function(a){var l=a.words,c=a.sigBytes,d=this._map;a.clamp();for(var u=[],h=0;h>>2]>>>24-h%4*8&255,m=l[h+1>>>2]>>>24-(h+1)%4*8&255,g=l[h+2>>>2]>>>24-(h+2)%4*8&255,w=f<<16|m<<8|g,_=0;_<4&&h+_*.75>>6*(3-_)&63));var E=d.charAt(64);if(E)for(;u.length%4;)u.push(E);return u.join("")},parse:function(a){var l=a.length,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var u=0;u>>6-h%4*2,g=f|m;d[u>>>2]|=g<<24-u%4*8,u++}return r.create(d,u)}}(),i.enc.Base64})});var VQ=Qi(T4=>{"use strict";Object.defineProperty(T4,"__esModule",{value:!0});T4.default=void 0;var Oi=(Ns(),Qh(Ms)),n_e=(Z3(),Qh(gre));function o_e(i,e){return c_e(i)||l_e(i,e)||a_e(i,e)||s_e()}function s_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a_e(i,e){if(i){if(typeof i=="string")return OQ(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Array.from(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return OQ(i,e)}}function OQ(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=new Array(e);t"\x80"&&(i.toUpperCase()!=i.toLowerCase()||h_e.test(i))}function E4(i,e){if(!(this instanceof E4))return new E4(i,e);this.line=i,this.ch=e}function p_e(i,e,t){i.dispatch(e,t)}function hv(i){return function(){}}var zQ,BQ;String.prototype.normalize?(zQ=function(e){return e.normalize("NFD").toLowerCase()},BQ=function(e){return e.normalize("NFD")}):(zQ=function(e){return e.toLowerCase()},BQ=function(e){return e});var jQ=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};jQ.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.post},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},backUp:function(e){this.pos-=e},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(e,t,r){if(typeof e=="string"){var n=function(l){return r?l.toLowerCase():l},o=this.string.substr(this.pos,e.length);if(n(o)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var s=this.string.slice(this.pos).match(e);return s&&s.index>0?null:(s&&t!==!1&&(this.pos+=s[0].length),s)}},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}};function vs(i){return new E4(i.lineNumber-1,i.column-1)}function Gr(i){return new Oi.Position(i.line+1,i.ch+1)}var m_e=function(){function i(e,t,r,n){HQ(this,i),this.cm=e,this.id=t,this.lineNumber=r+1,this.column=n+1,e.marks[this.id]=this}return UQ(i,[{key:"clear",value:function(){delete this.cm.marks[this.id]}},{key:"find",value:function(){return vs(this)}}]),i}();function WQ(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=!0,r=Oi.KeyCode[i.keyCode];i.key&&(r=i.key,t=!1);var n=r,o=e;switch(i.keyCode){case Oi.KeyCode.Shift:case Oi.KeyCode.Meta:case Oi.KeyCode.Alt:case Oi.KeyCode.Ctrl:return n;case Oi.KeyCode.Escape:o=!0,n="Esc";break;case Oi.KeyCode.Space:o=!0;break}return r.startsWith("Key")||r.startsWith("KEY_")?n=r[r.length-1].toLowerCase():r.startsWith("Digit")?n=r.slice(5,6):r.startsWith("Numpad")?n=r.slice(6,7):r.endsWith("Arrow")?(o=!0,n=r.substring(0,r.length-5)):(r.startsWith("US_")||r.startsWith("Bracket")||!n)&&(n=i.browserEvent.key),!o&&!i.altKey&&!i.ctrlKey&&!i.metaKey?n=i.key||i.browserEvent.key:(i.altKey&&(n="Alt-".concat(n)),i.ctrlKey&&(n="Ctrl-".concat(n)),i.metaKey&&(n="Meta-".concat(n)),i.shiftKey&&(n="Shift-".concat(n))),n.length===1&&t&&(n="'".concat(n,"'")),n}var sr=function(){function i(e){HQ(this,i),g_e.call(this),this.editor=e,this.state={keyMap:"vim"},this.marks={},this.$uid=0,this.disposables=[],this.listeners={},this.curOp={},this.attached=!1,this.statusBar=null,this.options={},this.addLocalListeners(),this.ctxInsert=this.editor.createContextKey("insertMode",!0)}return UQ(i,[{key:"attach",value:function(){i.keyMap.vim.attach(this)}},{key:"addLocalListeners",value:function(){this.disposables.push(this.editor.onDidChangeCursorPosition(this.handleCursorChange),this.editor.onDidChangeModelContent(this.handleChange),this.editor.onKeyDown(this.handleKeyDown))}},{key:"handleReplaceMode",value:function(t,r){var n=!1,o=t,s=this.editor.getPosition(),a=new Oi.Range(s.lineNumber,s.column,s.lineNumber,s.column+1),l=!0;if(t.startsWith("'"))o=t[1];else if(o==="Enter")o=` `;else if(o==="Backspace"){var c=this.replaceStack.pop();if(!c)return;n=!0,o=c,a=new Oi.Range(s.lineNumber,s.column,s.lineNumber,s.column-1)}else return;r.preventDefault(),r.stopPropagation(),this.replaceStack||(this.replaceStack=[]),n||this.replaceStack.push(this.editor.getModel().getValueInRange(a)),this.editor.executeEdits("vim",[{text:o,range:a,forceMoveMarkers:l}]),n&&this.editor.setPosition(a.getStartPosition())}},{key:"setOption",value:function(t,r){this.state[t]=r,t==="theme"&&Oi.editor.setTheme(r)}},{key:"getConfiguration",value:function(){var t=this.editor,r=u_e;return typeof t.getConfiguration=="function"?t.getConfiguration():("EditorOption"in Oi.editor&&(r=Oi.editor.EditorOption),{readOnly:t.getOption(r.readOnly),viewInfo:{cursorWidth:t.getOption(r.cursorWidth)},fontInfo:t.getOption(r.fontInfo)})}},{key:"getOption",value:function(t){return t==="readOnly"?this.getConfiguration().readOnly:t==="firstLineNumber"?this.firstLine()+1:t==="indentWithTabs"?!this.editor.getModel().getOptions().insertSpaces:typeof this.editor.getConfiguration=="function"?this.editor.getRawConfiguration()[t]:this.editor.getRawOptions()[t]}},{key:"dispatch",value:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;on&&(t=n-1),this.editor.getModel().getLineContent(t+1)}},{key:"getAnchorForSelection",value:function(t){if(t.isEmpty())return t.getPosition();var r=t.getDirection();return r===Oi.SelectionDirection.LTR?t.getStartPosition():t.getEndPosition()}},{key:"getHeadForSelection",value:function(t){if(t.isEmpty())return t.getPosition();var r=t.getDirection();return r===Oi.SelectionDirection.LTR?t.getEndPosition():t.getStartPosition()}},{key:"getCursor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(!t)return vs(this.editor.getPosition());var r=this.editor.getSelection(),n;return r.isEmpty()?n=r.getPosition():t==="anchor"?n=this.getAnchorForSelection(r):n=this.getHeadForSelection(r),vs(n)}},{key:"getRange",value:function(t,r){var n=Gr(t),o=Gr(r);return this.editor.getModel().getValueInRange(Oi.Range.fromPositions(n,o))}},{key:"getSelection",value:function(){var t=[],r=this.editor;return r.getSelections().map(function(n){t.push(r.getModel().getValueInRange(n))}),t.join(` -`)}},{key:"replaceRange",value:function(t,r,n){var o=Gr(r),s=n?Gr(n):o;this.editor.executeEdits("vim",[{text:t,range:Oi.Range.fromPositions(o,s)}]),this.pushUndoStop()}},{key:"pushUndoStop",value:function(){this.editor.pushUndoStop()}},{key:"setCursor",value:function(t,r){var n=t;vN(t)!=="object"&&(n={},n.line=t,n.ch=r);var o=this.editor.getModel().validatePosition(Gr(n));this.editor.setPosition(Gr(n)),this.editor.revealPosition(o)}},{key:"somethingSelected",value:function(){return!this.editor.getSelection().isEmpty()}},{key:"operation",value:function(t,r){return t()}},{key:"listSelections",value:function(){var t=this,r=this.editor.getSelections();return!r.length||this.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:r.map(function(n){var o=n.getPosition(),s=n.getStartPosition(),a=n.getEndPosition();return{anchor:t.clipPos(vs(t.getAnchorForSelection(n))),head:t.clipPos(vs(t.getHeadForSelection(n)))}})}},{key:"focus",value:function(){this.editor.focus()}},{key:"setSelections",value:function(t,r){var n=!!this.editor.getSelections().length,o=t.map(function(l,c){var d=l.anchor,u=l.head;return n?Oi.Selection.fromPositions(Gr(d),Gr(u)):Oi.Selection.fromPositions(Gr(u),Gr(d))});if(r&&o[r]&&o.push(o.splice(r,1)[0]),!!o.length){var s=o[0],a;s.getDirection()===Oi.SelectionDirection.LTR?a=s.getEndPosition():a=s.getStartPosition(),this.editor.setSelections(o),this.editor.revealPosition(a)}}},{key:"setSelection",value:function(t,r){var n=Oi.Range.fromPositions(Gr(t),Gr(r));this.editor.setSelection(n)}},{key:"getSelections",value:function(){var t=this.editor;return t.getSelections().map(function(r){return t.getModel().getValueInRange(r)})}},{key:"replaceSelections",value:function(t){var r=this.editor;r.getSelections().forEach(function(n,o){r.executeEdits("vim",[{range:n,text:t[o],forceMoveMarkers:!1}])})}},{key:"toggleOverwrite",value:function(t){t?(this.enterVimMode(),this.replaceMode=!0):(this.leaveVimMode(),this.replaceMode=!1,this.replaceStack=[])}},{key:"charCoords",value:function(t,r){return{top:t.line,left:t.ch}}},{key:"coordsChar",value:function(t,r){}},{key:"clipPos",value:function(t){var r=this.editor.getModel().validatePosition(Gr(t));return vs(r)}},{key:"setBookmark",value:function(t,r){var n=new m_e(this,this.$uid++,t.line,t.ch);return(!r||!r.insertLeft)&&(n.$insertRight=!0),this.marks[n.id]=n,n}},{key:"getScrollInfo",value:function(){var t=this.editor,r=t.getVisibleRanges(),n=o_e(r,1),o=n[0];return{left:0,top:o.startLineNumber-1,height:t.getModel().getLineCount(),clientHeight:o.endLineNumber-o.startLineNumber+1}}},{key:"triggerEditorAction",value:function(t){this.editor.trigger("vim",t)}},{key:"dispose",value:function(){this.dispatch("dispose"),this.removeOverlay(),i.keyMap.vim&&i.keyMap.vim.detach(this),this.disposables.forEach(function(t){return t.dispose()})}},{key:"getInputField",value:function(){}},{key:"getWrapperElement",value:function(){}},{key:"enterVimMode",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.ctxInsert.set(!1);var r=this.getConfiguration();this.initialCursorWidth=r.viewInfo.cursorWidth||0,this.editor.updateOptions({cursorWidth:r.fontInfo.typicalFullwidthCharacterWidth,cursorBlinking:"solid"})}},{key:"leaveVimMode",value:function(){this.ctxInsert.set(!0),this.editor.updateOptions({cursorWidth:this.initialCursorWidth||0,cursorBlinking:"blink"})}},{key:"virtualSelectionMode",value:function(){return this.inVirtualSelectionMode}},{key:"markText",value:function(){return{clear:function(){},find:function(){}}}},{key:"getUserVisibleLines",value:function(){var t=this.editor.getVisibleRanges();if(!t.length)return{top:0,bottom:0};var r={top:1/0,bottom:0};return t.reduce(function(n,o){return o.startLineNumbern.bottom&&(n.bottom=o.endLineNumber),n},r),r.top-=1,r.bottom-=1,r}},{key:"findPosV",value:function(t,r,n){var o=this.editor,s=r,a=n,l=Gr(t);if(n==="page"){var c=o.getLayoutInfo().height,d=this.getConfiguration().fontInfo.lineHeight;s=s*Math.floor(c/d),a="line"}return a==="line"&&(l.lineNumber+=s),vs(l)}},{key:"findMatchingBracket",value:function(t){var r=Gr(t),n=this.editor.getModel(),o;if(n.bracketPairs)o=n.bracketPairs.matchBracket(r);else{var s;o=(s=n.matchBracket)===null||s===void 0?void 0:s.call(n,r)}return!o||o.length!==2?{to:null}:{to:vs(o[1].getStartPosition())}}},{key:"findFirstNonWhiteSpaceCharacter",value:function(t){return this.editor.getModel().getLineFirstNonWhitespaceColumn(t+1)-1}},{key:"scrollTo",value:function(t,r){!t&&!r||t||(r<0&&(r=this.editor.getPosition().lineNumber-r),this.editor.setScrollTop(this.editor.getTopForLineNumber(r+1)))}},{key:"moveCurrentLineTo",value:function(t){var r,n=this.editor,o=n.getPosition(),s=Oi.Range.fromPositions(o,o);switch(t){case"top":n.revealRangeAtTop(s);return;case"center":n.revealRangeInCenter(s);return;case"bottom":(r=n._revealRange)===null||r===void 0||r.call(n,s,d_e.Bottom);return}}},{key:"getSearchCursor",value:function(t,r){var n=!1,o=!1;t instanceof RegExp&&!t.global&&(n=!t.ignoreCase,t=t.source,o=!0),r.ch==null&&(r.ch=Number.MAX_VALUE);var s=Gr(r),a=this,l=this.editor,c=null,d=l.getModel(),u=d.findMatches(t,!1,o,n)||[];return{getMatches:function(){return u},findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},jumpTo:function(f){if(!u||!u.length)return!1;var m=u[f];return c=m.range,a.highlightRanges([c],"currentFindMatch"),a.highlightRanges(u.map(function(g){return g.range}).filter(function(g){return!g.equalsRange(c)})),c},find:function(f){if(!u||!u.length)return!1;var m;if(f){var g=c?c.getStartPosition():s;if(m=d.findPreviousMatch(t,g,o,n),!m||!m.range.getStartPosition().isBeforeOrEqual(g))return!1}else{var w=c?d.getPositionAt(d.getOffsetAt(c.getStartPosition())+1):s;if(m=d.findNextMatch(t,w,o,n),!m||!w.isBeforeOrEqual(m.range.getStartPosition()))return!1}return c=m.range,a.highlightRanges([c],"currentFindMatch"),a.highlightRanges(u.map(function(_){return _.range}).filter(function(_){return!_.equalsRange(c)})),c},from:function(){return c&&vs(c.getStartPosition())},to:function(){return c&&vs(c.getEndPosition())},replace:function(f){c&&(l.executeEdits("vim",[{range:c,text:f,forceMoveMarkers:!0}]),c.setEndPosition(l.getPosition()),l.setPosition(c.getStartPosition()))}}}},{key:"highlightRanges",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"findMatch",n="decoration".concat(r);return this[n]=this.editor.deltaDecorations(this[n]||[],t.map(function(o){return{range:o,options:{stickiness:Oi.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,zIndex:13,className:r,showIfCollapsed:!0}}})),this[n]}},{key:"addOverlay",value:function(t,r,n){var o=t.query,s=!1,a=!1;o&&o instanceof RegExp&&!o.global&&(a=!0,s=!o.ignoreCase,o=o.source);var l=this.editor.getModel().findNextMatch(o,this.editor.getPosition(),a,s);!l||!l.range||this.highlightRanges([l.range])}},{key:"removeOverlay",value:function(){var t=this;["currentFindMatch","findMatch"].forEach(function(r){t.editor.deltaDecorations(t["decoration".concat(r)]||[],[])})}},{key:"scrollIntoView",value:function(t){t&&this.editor.revealPosition(Gr(t))}},{key:"moveH",value:function(t,r){if(r==="char"){var n=this.editor.getPosition();this.editor.setPosition(new Oi.Position(n.lineNumber,n.column+t))}}},{key:"scanForBracket",value:function(t,r,n,o){for(var s=o.bracketRegex,a=Gr(t),l=this.editor.getModel(),c=(r===-1?l.findPreviousMatch:l.findNextMatch).bind(l),d=[],u=0;;){if(u>10)return;var h=c(s.source,a,!0,!0,null,!0),f=h.matches[0];if(h===void 0)return;var m=i.matchingBrackets[f];if(m&&m.charAt(1)===">"==r>0)d.push(f);else if(d.length===0){var g=h.range.getStartPosition();return{pos:vs(g)}}else d.pop();a=l.getPositionAt(l.getOffsetAt(h.range.getStartPosition())+r),u+=1}}},{key:"indexFromPos",value:function(t){return this.editor.getModel().getOffsetAt(Gr(t))}},{key:"posFromIndex",value:function(t){return vs(this.editor.getModel().getPositionAt(t))}},{key:"indentLine",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this.editor,o;n._getViewModel?o=n._getViewModel().cursorConfig:o=n._getCursors().context.config;var s=new Oi.Position(t+1,1),a=Oi.Selection.fromPositions(s,s);n.executeCommand("vim",new n_e.ShiftCommand(a,{isUnshift:!r,tabSize:o.tabSize,indentSize:o.indentSize,insertSpaces:o.insertSpaces,useTabStops:o.useTabStops,autoIndent:o.autoIndent}))}},{key:"setStatusBar",value:function(t){this.statusBar=t}},{key:"openDialog",value:function(t,r,n){if(this.statusBar)return this.statusBar.setSec(t,r,n)}},{key:"openNotification",value:function(t){this.statusBar&&this.statusBar.showNotification(t)}},{key:"smartIndent",value:function(){this.editor.getAction("editor.action.formatSelection").run()}},{key:"moveCursorTo",value:function(t){var r=this.editor.getPosition();t==="start"?r.column=1:t==="end"&&(r.column=this.editor.getModel().getLineMaxColumn(r.lineNumber)),this.editor.setPosition(r)}},{key:"execCommand",value:function(t){switch(t){case"goLineLeft":this.moveCursorTo("start");break;case"goLineRight":this.moveCursorTo("end");break;case"indentAuto":this.smartIndent();break}}}]),i}();sr.Pos=E4;sr.signal=p_e;sr.on=hv("on");sr.off=hv("off");sr.addClass=hv("addClass");sr.rmClass=hv("rmClass");sr.defineOption=hv("defineOption");sr.keyMap={default:function(e){return function(t){return!0}}};sr.matchingBrackets={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};sr.isWordChar=f_e;sr.keyName=WQ;sr.StringStream=jQ;sr.e_stop=function(i){return i.stopPropagation?i.stopPropagation():i.cancelBubble=!0,sr.e_preventDefault(i),!1};sr.e_preventDefault=function(i){return i.preventDefault?(i.preventDefault(),i.browserEvent&&i.browserEvent.preventDefault()):i.returnValue=!1,!1};sr.commands={redo:function(e){e.editor.getModel().redo()},undo:function(e){e.editor.getModel().undo()},newlineAndIndent:function(e){e.triggerEditorAction("editor.action.insertLineAfter")}};sr.lookupKey=function i(e,t,r){typeof t=="string"&&(t=sr.keyMap[t]);var n=typeof t=="function"?t(e):t[e];if(n===!1)return"nothing";if(n==="...")return"multi";if(n!=null&&r(n))return"handled";if(t.fallthrough){if(!Array.isArray(t.fallthrough))return i(e,t.fallthrough,r);for(var o=0;o{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.default=pm.Vim=void 0;var ut=v_e(VQ());function v_e(i){return i&&i.__esModule?i:{default:i}}function I4(i){"@babel/helpers - typeof";return I4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I4(i)}var Ve=ut.default.Pos;function __e(i,e){var t=i.state.vim;if(!t||t.insertMode)return e.head;var r=t.sel.head;if(!r)return e.head;if(!(t.visualBlock&&e.head.line!=r.line))return e.from()==e.anchor&&!e.empty()&&e.head.line==r.line&&e.head.ch!=r.ch?new Ve(e.head.line,e.head.ch-1):e.head}var xn=[{keys:"",type:"keyToKey",toKeys:"h"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"g",type:"keyToKey",toKeys:"gk"},{keys:"g",type:"keyToKey",toKeys:"gj"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"",type:"keyToKey",toKeys:"W"},{keys:"",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"",type:"keyToKey",toKeys:"w"},{keys:"",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"",type:"keyToKey",toKeys:"0"},{keys:"",type:"keyToKey",toKeys:"$"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"",type:"idle",context:"normal"},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r",type:"action",action:"replace",isEdit:!0},{keys:"@",type:"action",action:"replayMacro"},{keys:"q",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"",type:"action",action:"redo"},{keys:"m",type:"action",action:"setMark"},{keys:'"',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a",type:"motion",motion:"textObjectManipulation"},{keys:"i",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],qQ=xn.length,KQ=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"global",shortName:"g"}],$Q=function(){function e(S){S.setOption("disableInput",!0),S.setOption("showCursorWhenSelecting",!1),ut.default.signal(S,"vim-mode-change",{mode:"normal"}),S.on("cursorActivity",P9),we(S),S.enterVimMode()}function t(S){S.setOption("disableInput",!1),S.off("cursorActivity",P9),S.state.vim=null,Rv&&clearTimeout(Rv),S.leaveVimMode()}function r(S,p){S.attached=!1,this==ut.default.keyMap.vim&&(S.options.$customCursor=null),(!p||p.attach!=n)&&t(S)}function n(S,p){this==ut.default.keyMap.vim&&(S.attached=!0,S.curOp&&(S.curOp.selectionChanged=!0),S.options.$customCursor=__e),(!p||p.attach!=n)&&e(S)}ut.default.defineOption("vimMode",!1,function(S,p,y){p&&S.getOption("keyMap")!="vim"?S.setOption("keyMap","vim"):!p&&y!=ut.default.Init&&/^vim/.test(S.getOption("keyMap"))&&S.setOption("keyMap","default")});function o(S,p){if(p){if(this[S])return this[S];var y=l(S);if(!y)return!1;var C=me.findKey(p,y);return typeof C=="function"&&ut.default.signal(p,"vim-keypress",y),C}}var s={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A",CapsLock:""},a={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function l(S){if(S.charAt(0)=="'")return S.charAt(1);if(S==="AltGraph")return!1;var p=S.split(/-(?!$)/),y=p[p.length-1];if(p.length==1&&p[0].length==1)return!1;if(p.length==2&&p[0]=="Shift"&&y.length==1)return!1;for(var C=!1,k=0;k"):!1}var c=/[\d]/,d=[ut.default.isWordChar,function(S){return S&&!ut.default.isWordChar(S)&&!/\s/.test(S)}],u=[function(S){return/\S/.test(S)}];function h(S,p){for(var y=[],C=S;C"]),_=[].concat(f,m,g,["-",'"',".",":","_","/"]),E;try{E=new RegExp("^[\\p{Lu}]$","u")}catch(S){E=/^[A-Z]$/}function I(S,p){return p>=S.firstLine()&&p<=S.lastLine()}function N(S){return/^[a-z]$/.test(S)}function U(S){return"()[]{}".indexOf(S)!=-1}function z(S){return c.test(S)}function Y(S){return E.test(S)}function le(S){return/^\s*$/.test(S)}function re(S){return".?!".indexOf(S)!=-1}function Z(S,p){for(var y=0;yC?y=C:y0?1:-1,xe,_e=V.getCursor();do if(y+=Ce,oe=A[(p+y)%p],oe&&(xe=oe.find())&&!ge(_e,xe))break;while(yk)}return oe}function W(V,Q){var oe=y,Ce=H(V,Q);return y=oe,Ce&&Ce.find()}return{cachedCursor:void 0,add:D,find:W,move:H}},dt=function(p){return p?{changes:p.changes,expectCursorActivityForChange:p.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function be(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=dt()}be.prototype={exitMacroRecordMode:function(){var p=X.macroModeState;p.onRecordingDone&&p.onRecordingDone(),p.onRecordingDone=void 0,p.isRecording=!1},enterMacroRecordMode:function(p,y){var C=X.registerController.getRegister(y);C&&(C.clear(),this.latestRegister=y,p.openDialog&&(this.onRecordingDone=p.openDialog(document.createTextNode("(recording)["+y+"]"),null,{bottom:!0})),this.isRecording=!0)}};function we(S){return S.state.vim||(S.state.vim={inputState:new G,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),S.state.vim}var X;function R(){X={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:Xe(),macroModeState:new be,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new Ai({}),searchHistoryController:new Et,exCommandHistoryController:new Et};for(var S in ye){var p=ye[S];p.value=p.defaultValue}}var ne,me={buildKeyMap:function(){},getRegisterController:function(){return X.registerController},resetVimGlobalState_:R,getVimGlobalState_:function(){return X},maybeInitVimState_:we,suppressErrorLogging:!1,InsertModeKey:L3,map:function(p,y,C){ia.map(p,y,C)},unmap:function(p,y){return ia.unmap(p,y)},noremap:function(p,y,C){function k(xe){return xe?[xe]:["normal","insert","visual"]}for(var A=k(C),D=xn.length,H=qQ,W=D-H;W=0;A--){var D=k[A];if(p!==D.context)if(D.context)this._mapCommand(D);else{var H=["normal","insert","visual"];for(var W in H)if(H[W]!==p){var V={};for(var Q in D)V[Q]=D[Q];V.context=H[W],this._mapCommand(V)}}}},setOption:Ee,getOption:Oe,defineOption:Pe,defineEx:function(p,y,C){if(!y)y=p;else if(p.indexOf(y)!==0)throw new Error('(Vim.defineEx) "'+y+'" is not a prefix of "'+p+'", command not registered');M9[p]=C,ia.commandMap_[y]={name:p,shortName:y,type:"api"}},handleKey:function(p,y,C){var k=this.findKey(p,y,C);if(typeof k=="function")return k()},findKey:function(p,y,C){var k=we(p);function A(){var oe=X.macroModeState;if(oe.isRecording){if(y=="q")return oe.exitMacroRecordMode(),Tt(p),!0;C!="mapping"&&ire(oe,y)}}function D(){if(y==""){if(k.visualMode)Js(p);else if(k.insertMode)km(p);else return;return Tt(p),!0}}function H(oe){for(var Ce;oe;)Ce=/<\w+-.+?>|<\w+>|./.exec(oe),y=Ce[0],oe=oe.substring(Ce.index+y.length),me.handleKey(p,y,"mapping")}function W(){if(D())return!0;for(var oe=k.inputState.keyBuffer=k.inputState.keyBuffer+y,Ce=y.length==1,xe=Ii.matchCommand(oe,xn,k.inputState,"insert");oe.length>1&&xe.type!="full";){var oe=k.inputState.keyBuffer=oe.slice(1),_e=Ii.matchCommand(oe,xn,k.inputState,"insert");_e.type!="none"&&(xe=_e)}if(xe.type=="none")return Tt(p),!1;if(xe.type=="partial")return ne&&window.clearTimeout(ne),ne=window.setTimeout(function(){k.insertMode&&k.inputState.keyBuffer&&Tt(p)},Oe("insertModeEscKeysTimeout")),!Ce;if(ne&&window.clearTimeout(ne),Ce){for(var Ze=p.listSelections(),tt=0;tt0||this.motionRepeat.length>0)&&(S=1,this.prefixRepeat.length>0&&(S*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(S*=parseInt(this.motionRepeat.join(""),10))),S};function Tt(S,p){S.state.vim.inputState=new G,ut.default.signal(S,"vim-command-done",p)}function Ft(S,p,y){this.clear(),this.keyBuffer=[S||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!p,this.blockwise=!!y}Ft.prototype={setText:function(p,y,C){this.keyBuffer=[p||""],this.linewise=!!y,this.blockwise=!!C},pushText:function(p,y){y&&(this.linewise||this.keyBuffer.push(` -`),this.linewise=!0),this.keyBuffer.push(p)},pushInsertModeChanges:function(p){this.insertModeChanges.push(dt(p))},pushSearchQuery:function(p){this.searchQueries.push(p)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}};function li(S,p){var y=X.registerController.registers;if(!S||S.length!=1)throw Error("Register name must be 1 character");if(y[S])throw Error("Register already defined "+S);y[S]=p,_.push(S)}function Ai(S){this.registers=S,this.unnamedRegister=S['"']=new Ft,S["."]=new Ft,S[":"]=new Ft,S["/"]=new Ft}Ai.prototype={pushText:function(p,y,C,k,A){if(p!=="_"){k&&C.charAt(C.length-1)!==` +`)}},{key:"replaceRange",value:function(t,r,n){var o=Gr(r),s=n?Gr(n):o;this.editor.executeEdits("vim",[{text:t,range:Oi.Range.fromPositions(o,s)}]),this.pushUndoStop()}},{key:"pushUndoStop",value:function(){this.editor.pushUndoStop()}},{key:"setCursor",value:function(t,r){var n=t;vN(t)!=="object"&&(n={},n.line=t,n.ch=r);var o=this.editor.getModel().validatePosition(Gr(n));this.editor.setPosition(Gr(n)),this.editor.revealPosition(o)}},{key:"somethingSelected",value:function(){return!this.editor.getSelection().isEmpty()}},{key:"operation",value:function(t,r){return t()}},{key:"listSelections",value:function(){var t=this,r=this.editor.getSelections();return!r.length||this.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:r.map(function(n){var o=n.getPosition(),s=n.getStartPosition(),a=n.getEndPosition();return{anchor:t.clipPos(vs(t.getAnchorForSelection(n))),head:t.clipPos(vs(t.getHeadForSelection(n)))}})}},{key:"focus",value:function(){this.editor.focus()}},{key:"setSelections",value:function(t,r){var n=!!this.editor.getSelections().length,o=t.map(function(l,c){var d=l.anchor,u=l.head;return n?Oi.Selection.fromPositions(Gr(d),Gr(u)):Oi.Selection.fromPositions(Gr(u),Gr(d))});if(r&&o[r]&&o.push(o.splice(r,1)[0]),!!o.length){var s=o[0],a;s.getDirection()===Oi.SelectionDirection.LTR?a=s.getEndPosition():a=s.getStartPosition(),this.editor.setSelections(o),this.editor.revealPosition(a)}}},{key:"setSelection",value:function(t,r){var n=Oi.Range.fromPositions(Gr(t),Gr(r));this.editor.setSelection(n)}},{key:"getSelections",value:function(){var t=this.editor;return t.getSelections().map(function(r){return t.getModel().getValueInRange(r)})}},{key:"replaceSelections",value:function(t){var r=this.editor;r.getSelections().forEach(function(n,o){r.executeEdits("vim",[{range:n,text:t[o],forceMoveMarkers:!1}])})}},{key:"toggleOverwrite",value:function(t){t?(this.enterVimMode(),this.replaceMode=!0):(this.leaveVimMode(),this.replaceMode=!1,this.replaceStack=[])}},{key:"charCoords",value:function(t,r){return{top:t.line,left:t.ch}}},{key:"coordsChar",value:function(t,r){}},{key:"clipPos",value:function(t){var r=this.editor.getModel().validatePosition(Gr(t));return vs(r)}},{key:"setBookmark",value:function(t,r){var n=new m_e(this,this.$uid++,t.line,t.ch);return(!r||!r.insertLeft)&&(n.$insertRight=!0),this.marks[n.id]=n,n}},{key:"getScrollInfo",value:function(){var t=this.editor,r=t.getVisibleRanges(),n=o_e(r,1),o=n[0];return{left:0,top:o.startLineNumber-1,height:t.getModel().getLineCount(),clientHeight:o.endLineNumber-o.startLineNumber+1}}},{key:"triggerEditorAction",value:function(t){this.editor.trigger("vim",t)}},{key:"dispose",value:function(){this.dispatch("dispose"),this.removeOverlay(),i.keyMap.vim&&i.keyMap.vim.detach(this),this.disposables.forEach(function(t){return t.dispose()})}},{key:"getInputField",value:function(){}},{key:"getWrapperElement",value:function(){}},{key:"enterVimMode",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.ctxInsert.set(!1);var r=this.getConfiguration();this.initialCursorWidth=r.viewInfo.cursorWidth||0,this.editor.updateOptions({cursorWidth:r.fontInfo.typicalFullwidthCharacterWidth,cursorBlinking:"solid"})}},{key:"leaveVimMode",value:function(){this.ctxInsert.set(!0),this.editor.updateOptions({cursorWidth:this.initialCursorWidth||0,cursorBlinking:"blink"})}},{key:"virtualSelectionMode",value:function(){return this.inVirtualSelectionMode}},{key:"markText",value:function(){return{clear:function(){},find:function(){}}}},{key:"getUserVisibleLines",value:function(){var t=this.editor.getVisibleRanges();if(!t.length)return{top:0,bottom:0};var r={top:1/0,bottom:0};return t.reduce(function(n,o){return o.startLineNumbern.bottom&&(n.bottom=o.endLineNumber),n},r),r.top-=1,r.bottom-=1,r}},{key:"findPosV",value:function(t,r,n){var o=this.editor,s=r,a=n,l=Gr(t);if(n==="page"){var c=o.getLayoutInfo().height,d=this.getConfiguration().fontInfo.lineHeight;s=s*Math.floor(c/d),a="line"}return a==="line"&&(l.lineNumber+=s),vs(l)}},{key:"findMatchingBracket",value:function(t){var r=Gr(t),n=this.editor.getModel(),o;if(n.bracketPairs)o=n.bracketPairs.matchBracket(r);else{var s;o=(s=n.matchBracket)===null||s===void 0?void 0:s.call(n,r)}return!o||o.length!==2?{to:null}:{to:vs(o[1].getStartPosition())}}},{key:"findFirstNonWhiteSpaceCharacter",value:function(t){return this.editor.getModel().getLineFirstNonWhitespaceColumn(t+1)-1}},{key:"scrollTo",value:function(t,r){!t&&!r||t||(r<0&&(r=this.editor.getPosition().lineNumber-r),this.editor.setScrollTop(this.editor.getTopForLineNumber(r+1)))}},{key:"moveCurrentLineTo",value:function(t){var r,n=this.editor,o=n.getPosition(),s=Oi.Range.fromPositions(o,o);switch(t){case"top":n.revealRangeAtTop(s);return;case"center":n.revealRangeInCenter(s);return;case"bottom":(r=n._revealRange)===null||r===void 0||r.call(n,s,d_e.Bottom);return}}},{key:"getSearchCursor",value:function(t,r){var n=!1,o=!1;t instanceof RegExp&&!t.global&&(n=!t.ignoreCase,t=t.source,o=!0),r.ch==null&&(r.ch=Number.MAX_VALUE);var s=Gr(r),a=this,l=this.editor,c=null,d=l.getModel(),u=d.findMatches(t,!1,o,n)||[];return{getMatches:function(){return u},findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},jumpTo:function(f){if(!u||!u.length)return!1;var m=u[f];return c=m.range,a.highlightRanges([c],"currentFindMatch"),a.highlightRanges(u.map(function(g){return g.range}).filter(function(g){return!g.equalsRange(c)})),c},find:function(f){if(!u||!u.length)return!1;var m;if(f){var g=c?c.getStartPosition():s;if(m=d.findPreviousMatch(t,g,o,n),!m||!m.range.getStartPosition().isBeforeOrEqual(g))return!1}else{var w=c?d.getPositionAt(d.getOffsetAt(c.getStartPosition())+1):s;if(m=d.findNextMatch(t,w,o,n),!m||!w.isBeforeOrEqual(m.range.getStartPosition()))return!1}return c=m.range,a.highlightRanges([c],"currentFindMatch"),a.highlightRanges(u.map(function(_){return _.range}).filter(function(_){return!_.equalsRange(c)})),c},from:function(){return c&&vs(c.getStartPosition())},to:function(){return c&&vs(c.getEndPosition())},replace:function(f){c&&(l.executeEdits("vim",[{range:c,text:f,forceMoveMarkers:!0}]),c.setEndPosition(l.getPosition()),l.setPosition(c.getStartPosition()))}}}},{key:"highlightRanges",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"findMatch",n="decoration".concat(r);return this[n]=this.editor.deltaDecorations(this[n]||[],t.map(function(o){return{range:o,options:{stickiness:Oi.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,zIndex:13,className:r,showIfCollapsed:!0}}})),this[n]}},{key:"addOverlay",value:function(t,r,n){var o=t.query,s=!1,a=!1;o&&o instanceof RegExp&&!o.global&&(a=!0,s=!o.ignoreCase,o=o.source);var l=this.editor.getModel().findNextMatch(o,this.editor.getPosition(),a,s);!l||!l.range||this.highlightRanges([l.range])}},{key:"removeOverlay",value:function(){var t=this;["currentFindMatch","findMatch"].forEach(function(r){t.editor.deltaDecorations(t["decoration".concat(r)]||[],[])})}},{key:"scrollIntoView",value:function(t){t&&this.editor.revealPosition(Gr(t))}},{key:"moveH",value:function(t,r){if(r==="char"){var n=this.editor.getPosition();this.editor.setPosition(new Oi.Position(n.lineNumber,n.column+t))}}},{key:"scanForBracket",value:function(t,r,n,o){for(var s=o.bracketRegex,a=Gr(t),l=this.editor.getModel(),c=(r===-1?l.findPreviousMatch:l.findNextMatch).bind(l),d=[],u=0;;){if(u>10)return;var h=c(s.source,a,!0,!0,null,!0),f=h.matches[0];if(h===void 0)return;var m=i.matchingBrackets[f];if(m&&m.charAt(1)===">"==r>0)d.push(f);else if(d.length===0){var g=h.range.getStartPosition();return{pos:vs(g)}}else d.pop();a=l.getPositionAt(l.getOffsetAt(h.range.getStartPosition())+r),u+=1}}},{key:"indexFromPos",value:function(t){return this.editor.getModel().getOffsetAt(Gr(t))}},{key:"posFromIndex",value:function(t){return vs(this.editor.getModel().getPositionAt(t))}},{key:"indentLine",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this.editor,o;n._getViewModel?o=n._getViewModel().cursorConfig:o=n._getCursors().context.config;var s=new Oi.Position(t+1,1),a=Oi.Selection.fromPositions(s,s);n.executeCommand("vim",new n_e.ShiftCommand(a,{isUnshift:!r,tabSize:o.tabSize,indentSize:o.indentSize,insertSpaces:o.insertSpaces,useTabStops:o.useTabStops,autoIndent:o.autoIndent}))}},{key:"setStatusBar",value:function(t){this.statusBar=t}},{key:"openDialog",value:function(t,r,n){if(this.statusBar)return this.statusBar.setSec(t,r,n)}},{key:"openNotification",value:function(t){this.statusBar&&this.statusBar.showNotification(t)}},{key:"smartIndent",value:function(){this.editor.getAction("editor.action.formatSelection").run()}},{key:"moveCursorTo",value:function(t){var r=this.editor.getPosition();t==="start"?r.column=1:t==="end"&&(r.column=this.editor.getModel().getLineMaxColumn(r.lineNumber)),this.editor.setPosition(r)}},{key:"execCommand",value:function(t){switch(t){case"goLineLeft":this.moveCursorTo("start");break;case"goLineRight":this.moveCursorTo("end");break;case"indentAuto":this.smartIndent();break}}}]),i}();sr.Pos=E4;sr.signal=p_e;sr.on=hv("on");sr.off=hv("off");sr.addClass=hv("addClass");sr.rmClass=hv("rmClass");sr.defineOption=hv("defineOption");sr.keyMap={default:function(e){return function(t){return!0}}};sr.matchingBrackets={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};sr.isWordChar=f_e;sr.keyName=WQ;sr.StringStream=jQ;sr.e_stop=function(i){return i.stopPropagation?i.stopPropagation():i.cancelBubble=!0,sr.e_preventDefault(i),!1};sr.e_preventDefault=function(i){return i.preventDefault?(i.preventDefault(),i.browserEvent&&i.browserEvent.preventDefault()):i.returnValue=!1,!1};sr.commands={redo:function(e){e.editor.getModel().redo()},undo:function(e){e.editor.getModel().undo()},newlineAndIndent:function(e){e.triggerEditorAction("editor.action.insertLineAfter")}};sr.lookupKey=function i(e,t,r){typeof t=="string"&&(t=sr.keyMap[t]);var n=typeof t=="function"?t(e):t[e];if(n===!1)return"nothing";if(n==="...")return"multi";if(n!=null&&r(n))return"handled";if(t.fallthrough){if(!Array.isArray(t.fallthrough))return i(e,t.fallthrough,r);for(var o=0;o{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.default=pm.Vim=void 0;var ut=v_e(VQ());function v_e(i){return i&&i.__esModule?i:{default:i}}function I4(i){"@babel/helpers - typeof";return I4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I4(i)}var Ve=ut.default.Pos;function __e(i,e){var t=i.state.vim;if(!t||t.insertMode)return e.head;var r=t.sel.head;if(!r)return e.head;if(!(t.visualBlock&&e.head.line!=r.line))return e.from()==e.anchor&&!e.empty()&&e.head.line==r.line&&e.head.ch!=r.ch?new Ve(e.head.line,e.head.ch-1):e.head}var xn=[{keys:"",type:"keyToKey",toKeys:"h"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"g",type:"keyToKey",toKeys:"gk"},{keys:"g",type:"keyToKey",toKeys:"gj"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"",type:"keyToKey",toKeys:"W"},{keys:"",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"",type:"keyToKey",toKeys:"w"},{keys:"",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"",type:"keyToKey",toKeys:"0"},{keys:"",type:"keyToKey",toKeys:"$"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"",type:"idle",context:"normal"},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r",type:"action",action:"replace",isEdit:!0},{keys:"@",type:"action",action:"replayMacro"},{keys:"q",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"",type:"action",action:"redo"},{keys:"m",type:"action",action:"setMark"},{keys:'"',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a",type:"motion",motion:"textObjectManipulation"},{keys:"i",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],qQ=xn.length,KQ=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"global",shortName:"g"}],$Q=function(){function e(S){S.setOption("disableInput",!0),S.setOption("showCursorWhenSelecting",!1),ut.default.signal(S,"vim-mode-change",{mode:"normal"}),S.on("cursorActivity",P9),we(S),S.enterVimMode()}function t(S){S.setOption("disableInput",!1),S.off("cursorActivity",P9),S.state.vim=null,Rv&&clearTimeout(Rv),S.leaveVimMode()}function r(S,p){S.attached=!1,this==ut.default.keyMap.vim&&(S.options.$customCursor=null),(!p||p.attach!=n)&&t(S)}function n(S,p){this==ut.default.keyMap.vim&&(S.attached=!0,S.curOp&&(S.curOp.selectionChanged=!0),S.options.$customCursor=__e),(!p||p.attach!=n)&&e(S)}ut.default.defineOption("vimMode",!1,function(S,p,y){p&&S.getOption("keyMap")!="vim"?S.setOption("keyMap","vim"):!p&&y!=ut.default.Init&&/^vim/.test(S.getOption("keyMap"))&&S.setOption("keyMap","default")});function o(S,p){if(p){if(this[S])return this[S];var y=l(S);if(!y)return!1;var C=me.findKey(p,y);return typeof C=="function"&&ut.default.signal(p,"vim-keypress",y),C}}var s={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A",CapsLock:""},a={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function l(S){if(S.charAt(0)=="'")return S.charAt(1);if(S==="AltGraph")return!1;var p=S.split(/-(?!$)/),y=p[p.length-1];if(p.length==1&&p[0].length==1)return!1;if(p.length==2&&p[0]=="Shift"&&y.length==1)return!1;for(var C=!1,k=0;k"):!1}var c=/[\d]/,d=[ut.default.isWordChar,function(S){return S&&!ut.default.isWordChar(S)&&!/\s/.test(S)}],u=[function(S){return/\S/.test(S)}];function h(S,p){for(var y=[],C=S;C"]),_=[].concat(f,m,g,["-",'"',".",":","_","/"]),E;try{E=new RegExp("^[\\p{Lu}]$","u")}catch(S){E=/^[A-Z]$/}function L(S,p){return p>=S.firstLine()&&p<=S.lastLine()}function A(S){return/^[a-z]$/.test(S)}function O(S){return"()[]{}".indexOf(S)!=-1}function U(S){return c.test(S)}function Y(S){return E.test(S)}function oe(S){return/^\s*$/.test(S)}function te(S){return".?!".indexOf(S)!=-1}function Z(S,p){for(var y=0;yC?y=C:y0?1:-1,xe,ye=V.getCursor();do if(y+=Ce,se=I[(p+y)%p],se&&(xe=se.find())&&!ge(ye,xe))break;while(yk)}return se}function W(V,Q){var se=y,Ce=H(V,Q);return y=se,Ce&&Ce.find()}return{cachedCursor:void 0,add:M,find:W,move:H}},dt=function(p){return p?{changes:p.changes,expectCursorActivityForChange:p.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function be(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=dt()}be.prototype={exitMacroRecordMode:function(){var p=X.macroModeState;p.onRecordingDone&&p.onRecordingDone(),p.onRecordingDone=void 0,p.isRecording=!1},enterMacroRecordMode:function(p,y){var C=X.registerController.getRegister(y);C&&(C.clear(),this.latestRegister=y,p.openDialog&&(this.onRecordingDone=p.openDialog(document.createTextNode("(recording)["+y+"]"),null,{bottom:!0})),this.isRecording=!0)}};function we(S){return S.state.vim||(S.state.vim={inputState:new G,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),S.state.vim}var X;function R(){X={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:Xe(),macroModeState:new be,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new Ai({}),searchHistoryController:new Et,exCommandHistoryController:new Et};for(var S in ve){var p=ve[S];p.value=p.defaultValue}}var ne,me={buildKeyMap:function(){},getRegisterController:function(){return X.registerController},resetVimGlobalState_:R,getVimGlobalState_:function(){return X},maybeInitVimState_:we,suppressErrorLogging:!1,InsertModeKey:L3,map:function(p,y,C){ia.map(p,y,C)},unmap:function(p,y){return ia.unmap(p,y)},noremap:function(p,y,C){function k(xe){return xe?[xe]:["normal","insert","visual"]}for(var I=k(C),M=xn.length,H=qQ,W=M-H;W=0;I--){var M=k[I];if(p!==M.context)if(M.context)this._mapCommand(M);else{var H=["normal","insert","visual"];for(var W in H)if(H[W]!==p){var V={};for(var Q in M)V[Q]=M[Q];V.context=H[W],this._mapCommand(V)}}}},setOption:Ee,getOption:Oe,defineOption:Pe,defineEx:function(p,y,C){if(!y)y=p;else if(p.indexOf(y)!==0)throw new Error('(Vim.defineEx) "'+y+'" is not a prefix of "'+p+'", command not registered');M9[p]=C,ia.commandMap_[y]={name:p,shortName:y,type:"api"}},handleKey:function(p,y,C){var k=this.findKey(p,y,C);if(typeof k=="function")return k()},findKey:function(p,y,C){var k=we(p);function I(){var se=X.macroModeState;if(se.isRecording){if(y=="q")return se.exitMacroRecordMode(),Tt(p),!0;C!="mapping"&&ire(se,y)}}function M(){if(y==""){if(k.visualMode)Js(p);else if(k.insertMode)km(p);else return;return Tt(p),!0}}function H(se){for(var Ce;se;)Ce=/<\w+-.+?>|<\w+>|./.exec(se),y=Ce[0],se=se.substring(Ce.index+y.length),me.handleKey(p,y,"mapping")}function W(){if(M())return!0;for(var se=k.inputState.keyBuffer=k.inputState.keyBuffer+y,Ce=y.length==1,xe=Ii.matchCommand(se,xn,k.inputState,"insert");se.length>1&&xe.type!="full";){var se=k.inputState.keyBuffer=se.slice(1),ye=Ii.matchCommand(se,xn,k.inputState,"insert");ye.type!="none"&&(xe=ye)}if(xe.type=="none")return Tt(p),!1;if(xe.type=="partial")return ne&&window.clearTimeout(ne),ne=window.setTimeout(function(){k.insertMode&&k.inputState.keyBuffer&&Tt(p)},Oe("insertModeEscKeysTimeout")),!Ce;if(ne&&window.clearTimeout(ne),Ce){for(var Ze=p.listSelections(),tt=0;tt0||this.motionRepeat.length>0)&&(S=1,this.prefixRepeat.length>0&&(S*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(S*=parseInt(this.motionRepeat.join(""),10))),S};function Tt(S,p){S.state.vim.inputState=new G,ut.default.signal(S,"vim-command-done",p)}function Ft(S,p,y){this.clear(),this.keyBuffer=[S||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!p,this.blockwise=!!y}Ft.prototype={setText:function(p,y,C){this.keyBuffer=[p||""],this.linewise=!!y,this.blockwise=!!C},pushText:function(p,y){y&&(this.linewise||this.keyBuffer.push(` +`),this.linewise=!0),this.keyBuffer.push(p)},pushInsertModeChanges:function(p){this.insertModeChanges.push(dt(p))},pushSearchQuery:function(p){this.searchQueries.push(p)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}};function li(S,p){var y=X.registerController.registers;if(!S||S.length!=1)throw Error("Register name must be 1 character");if(y[S])throw Error("Register already defined "+S);y[S]=p,_.push(S)}function Ai(S){this.registers=S,this.unnamedRegister=S['"']=new Ft,S["."]=new Ft,S[":"]=new Ft,S["/"]=new Ft}Ai.prototype={pushText:function(p,y,C,k,I){if(p!=="_"){k&&C.charAt(C.length-1)!==` `&&(C+=` -`);var D=this.isValidRegister(p)?this.getRegister(p):null;if(!D){switch(y){case"yank":this.registers[0]=new Ft(C,k,A);break;case"delete":case"change":C.indexOf(` -`)==-1?this.registers["-"]=new Ft(C,k):(this.shiftNumericRegisters_(),this.registers[1]=new Ft(C,k));break}this.unnamedRegister.setText(C,k,A);return}var H=Y(p);H?D.pushText(C,k):D.setText(C,k,A),this.unnamedRegister.setText(D.toString(),k)}},getRegister:function(p){return this.isValidRegister(p)?(p=p.toLowerCase(),this.registers[p]||(this.registers[p]=new Ft),this.registers[p]):this.unnamedRegister},isValidRegister:function(p){return p&&Z(p,_)},shiftNumericRegisters_:function(){for(var p=9;p>=2;p--)this.registers[p]=this.getRegister(""+(p-1))}};function Et(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}Et.prototype={nextMatch:function(p,y){var C=this.historyBuffer,k=y?-1:1;this.initialPrefix===null&&(this.initialPrefix=p);for(var A=this.iterator+k;y?A>=0:A=C.length)return this.iterator=C.length,this.initialPrefix;if(A<0)return p},pushInput:function(p){var y=this.historyBuffer.indexOf(p);y>-1&&this.historyBuffer.splice(y,1),p.length&&this.historyBuffer.push(p)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var Ii={matchCommand:function(p,y,C,k){var A=C3(p,y,k,C);if(!A.full&&!A.partial)return{type:"none"};if(!A.full&&A.partial)return{type:"partial"};for(var D,H=0;H"){var V=k3(p);if(!V)return{type:"none"};C.selectedCharacter=V}return{type:"full",command:D}},processCommand:function(p,y,C){switch(y.inputState.repeatOverride=C.repeatOverride,C.type){case"motion":this.processMotion(p,y,C);break;case"operator":this.processOperator(p,y,C);break;case"operatorMotion":this.processOperatorMotion(p,y,C);break;case"action":this.processAction(p,y,C);break;case"search":this.processSearch(p,y,C);break;case"ex":case"keyToEx":this.processEx(p,y,C);break;default:break}},processMotion:function(p,y,C){y.inputState.motion=C.motion,y.inputState.motionArgs=Go(C.motionArgs),this.evalInput(p,y)},processOperator:function(p,y,C){var k=y.inputState;if(k.operator)if(k.operator==C.operator){k.motion="expandToLine",k.motionArgs={linewise:!0},this.evalInput(p,y);return}else Tt(p);k.operator=C.operator,k.operatorArgs=Go(C.operatorArgs),C.keys.length>1&&(k.operatorShortcut=C.keys),C.exitVisualBlock&&(y.visualBlock=!1,Yh(p)),y.visualMode&&this.evalInput(p,y)},processOperatorMotion:function(p,y,C){var k=y.visualMode,A=Go(C.operatorMotionArgs);A&&k&&A.visualLine&&(y.visualLine=!0),this.processOperator(p,y,C),k||this.processMotion(p,y,C)},processAction:function(p,y,C){var k=y.inputState,A=k.getRepeat(),D=!!A,H=Go(C.actionArgs)||{};k.selectedCharacter&&(H.selectedCharacter=k.selectedCharacter),C.operator&&this.processOperator(p,y,C),C.motion&&this.processMotion(p,y,C),(C.motion||C.operator)&&this.evalInput(p,y),H.repeat=A||1,H.repeatIsExplicit=D,H.registerName=k.registerName,Tt(p),y.lastMotion=null,C.isEdit&&this.recordLastEdit(y,k,C),ol[C.action](p,H,y)},processSearch:function(p,y,C){if(!p.getSearchCursor)return;var k=C.searchArgs.forward,A=C.searchArgs.wholeWordOnly;ta(p).setReversed(!k);var D=k?"/":"?",H=ta(p).getQuery(),W=p.getScrollInfo();function V(Ye,zt,It){X.searchHistoryController.pushInput(Ye),X.searchHistoryController.reset();try{Sm(p,Ye,zt,It)}catch(At){Hi(p,"Invalid regex: "+Ye),Tt(p);return}Ii.processMotion(p,y,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:C.searchArgs.toJumplist}})}function Q(Ye){p.scrollTo(W.left,W.top),V(Ye,!0,!0);var zt=X.macroModeState;zt.isRecording&&nre(zt,Ye)}function oe(Ye,zt,It){var At=ut.default.keyName(Ye),Ui,oo;At=="Up"||At=="Down"?(Ui=At=="Up",oo=Ye.target?Ye.target.selectionEnd:0,zt=X.searchHistoryController.nextMatch(zt,Ui)||"",It(zt),oo&&Ye.target&&(Ye.target.selectionEnd=Ye.target.selectionStart=Math.min(oo,Ye.target.value.length))):At!="Left"&&At!="Right"&&At!="Ctrl"&&At!="Alt"&&At!="Shift"&&X.searchHistoryController.reset();var pr;try{pr=Sm(p,zt,!0,!0)}catch(jn){}pr?p.scrollIntoView(I9(p,!k,pr),30):(I3(p),p.scrollTo(W.left,W.top))}function Ce(Ye,zt,It){var At=ut.default.keyName(Ye);At=="Esc"||At=="Ctrl-C"||At=="Ctrl-["||At=="Backspace"&&zt==""?(X.searchHistoryController.pushInput(zt),X.searchHistoryController.reset(),Sm(p,H),I3(p),p.scrollTo(W.left,W.top),ut.default.e_stop(Ye),Tt(p),It(),p.focus()):At=="Up"||At=="Down"?ut.default.e_stop(Ye):At=="Ctrl-U"&&(ut.default.e_stop(Ye),It(""))}switch(C.searchArgs.querySrc){case"prompt":var xe=X.macroModeState;if(xe.isPlaying){var tt=xe.replaySearchQueries.shift();V(tt,!0,!1)}else Nv(p,{onClose:Q,prefix:D,desc:"(JavaScript regexp)",onKeyUp:oe,onKeyDown:Ce});break;case"wordUnderCursor":var _e=Mv(p,!1,!0,!1,!0),Ze=!0;if(_e||(_e=Mv(p,!1,!0,!1,!1),Ze=!1),!_e)return;var tt=p.getLine(_e.start.line).substring(_e.start.ch,_e.end.ch);Ze&&A?tt="\\b"+tt+"\\b":tt=ys(tt),X.jumpList.cachedCursor=p.getCursor(),p.setCursor(_e.start),V(tt,!0,!1);break}},processEx:function(p,y,C){function k(D){X.exCommandHistoryController.pushInput(D),X.exCommandHistoryController.reset(),ia.processCommand(p,D)}function A(D,H,W){var V=ut.default.keyName(D),Q,oe;(V=="Esc"||V=="Ctrl-C"||V=="Ctrl-["||V=="Backspace"&&H=="")&&(X.exCommandHistoryController.pushInput(H),X.exCommandHistoryController.reset(),ut.default.e_stop(D),Tt(p),W(),p.focus()),V=="Up"||V=="Down"?(ut.default.e_stop(D),Q=V=="Up",oe=D.target?D.target.selectionEnd:0,H=X.exCommandHistoryController.nextMatch(H,Q)||"",W(H),oe&&D.target&&(D.target.selectionEnd=D.target.selectionStart=Math.min(oe,D.target.value.length))):V=="Ctrl-U"?(ut.default.e_stop(D),W("")):V!="Left"&&V!="Right"&&V!="Ctrl"&&V!="Alt"&&V!="Shift"&&X.exCommandHistoryController.reset()}C.type=="keyToEx"?ia.processCommand(p,C.exArgs.input):y.visualMode?Nv(p,{onClose:k,prefix:":",value:"'<,'>",onKeyDown:A,selectValueOnOpen:!1}):Nv(p,{onClose:k,prefix:":",onKeyDown:A})},evalInput:function(p,y){var C=y.inputState,k=C.motion,A=C.motionArgs||{},D=C.operator,H=C.operatorArgs||{},W=C.registerName,V=y.sel,Q=Xi(y.visualMode?Fr(p,V.head):p.getCursor("head")),oe=Xi(y.visualMode?Fr(p,V.anchor):p.getCursor("anchor")),Ce=Xi(Q),xe=Xi(oe),_e,Ze,tt;if(D&&this.recordLastEdit(y,C),C.repeatOverride!==void 0?tt=C.repeatOverride:tt=C.getRepeat(),tt>0&&A.explicitRepeat?A.repeatIsExplicit=!0:(A.noRepeat||!A.explicitRepeat&&tt===0)&&(tt=1,A.repeatIsExplicit=!1),C.selectedCharacter&&(A.selectedCharacter=H.selectedCharacter=C.selectedCharacter),A.repeat=tt,Tt(p),k){var Ye=pi[k](p,Q,A,y,C);if(y.lastMotion=pi[k],!Ye)return;if(A.toJumplist){var zt=X.jumpList,It=zt.cachedCursor;It?(b9(p,It,Ye),delete zt.cachedCursor):b9(p,Q,Ye)}Ye instanceof Array?(Ze=Ye[0],_e=Ye[1]):_e=Ye,_e||(_e=Xi(Q)),y.visualMode?(y.visualBlock&&_e.ch===1/0||(_e=Fr(p,_e)),Ze&&(Ze=Fr(p,Ze)),Ze=Ze||xe,V.anchor=Ze,V.head=_e,Yh(p),sl(p,y,"<",De(Ze,_e)?Ze:_e),sl(p,y,">",De(Ze,_e)?_e:Ze)):D||(_e=Fr(p,_e),p.setCursor(_e.line,_e.ch))}if(D){if(H.lastSel){Ze=xe;var At=H.lastSel,Ui=Math.abs(At.head.line-At.anchor.line),oo=Math.abs(At.head.ch-At.anchor.ch);At.visualLine?_e=new Ve(xe.line+Ui,xe.ch):At.visualBlock?_e=new Ve(xe.line+Ui,xe.ch+oo):At.head.line==At.anchor.line?_e=new Ve(xe.line,xe.ch+oo):_e=new Ve(xe.line+Ui,xe.ch),y.visualMode=!0,y.visualLine=At.visualLine,y.visualBlock=At.visualBlock,V=y.sel={anchor:Ze,head:_e},Yh(p)}else y.visualMode&&(H.lastSel={anchor:Xi(V.anchor),head:Xi(V.head),visualBlock:y.visualBlock,visualLine:y.visualLine});var pr,jn,Li,si,dn;if(y.visualMode){if(pr=bt(V.head,V.anchor),jn=Vt(V.head,V.anchor),Li=y.visualLine||H.linewise,si=y.visualBlock?"block":Li?"line":"char",dn=E3(p,{anchor:pr,head:jn},si),Li){var so=dn.ranges;if(si=="block")for(var Wn=0;WnW:oe.lineQ&&A.line==Q?y9(p,y,C,k,!0):(C.toFirstChar&&(D=ea(p.getLine(W)),k.lastHPos=D),k.lastHSPos=p.charCoords(new Ve(W,D),"div").left,new Ve(W,D))},moveByDisplayLines:function(p,y,C,k){var A=y;switch(k.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:k.lastHSPos=p.charCoords(A,"div").left}var D=C.repeat,H=p.findPosV(A,C.forward?D:-D,"line",k.lastHSPos);if(H.hitSide)if(C.forward)var W=p.charCoords(H,"div"),V={top:W.top+8,left:k.lastHSPos},H=p.coordsChar(V,"div");else{var Q=p.charCoords(new Ve(p.firstLine(),0),"div");Q.left=k.lastHSPos,H=p.coordsChar(Q,"div")}return k.lastHPos=H.ch,H},moveByPage:function(p,y,C){var k=y,A=C.repeat;return p.findPosV(k,C.forward?A:-A,"page")},moveByParagraph:function(p,y,C){var k=C.forward?1:-1;return w9(p,y,C.repeat,k)},moveBySentence:function(p,y,C){var k=C.forward?1:-1;return Bie(p,y,C.repeat,k)},moveByScroll:function(p,y,C,k){var A=p.getScrollInfo(),W=null,D=C.repeat;D||(D=A.clientHeight/(2*p.defaultTextHeight()));var H=p.charCoords(y,"local");C.repeat=D;var W=pi.moveByDisplayLines(p,y,C,k);if(!W)return null;var V=p.charCoords(W,"local");return p.scrollTo(null,A.top+V.top-H.top),W},moveByWords:function(p,y,C){return Oie(p,y,C.repeat,!!C.forward,!!C.wordEnd,!!C.bigWord)},moveTillCharacter:function(p,y,C){var k=C.repeat,A=T3(p,k,C.forward,C.selectedCharacter),D=C.forward?-1:1;return v9(D,C),A?(A.ch+=D,A):null},moveToCharacter:function(p,y,C){var k=C.repeat;return v9(0,C),T3(p,k,C.forward,C.selectedCharacter)||y},moveToSymbol:function(p,y,C){var k=C.repeat;return Rie(p,k,C.forward,C.selectedCharacter)||y},moveToColumn:function(p,y,C,k){var A=C.repeat;return k.lastHPos=A-1,k.lastHSPos=p.charCoords(y,"div").left,Fie(p,A)},moveToEol:function(p,y,C,k){return y9(p,y,C,k,!1)},moveToFirstNonWhiteSpaceCharacter:function(p,y){var C=y;return new Ve(C.line,ea(p.getLine(C.line)))},moveToMatchedSymbol:function(p,y){var C=y,k=C.line,A=C.ch,D=p.getLine(k);if(A"?/[(){}[\]<>]/:/[(){}[\]]/,W=p.findMatchingBracket(new Ve(k,A),{bracketRegex:H});return W.to}else return C},moveToStartOfLine:function(p,y){return new Ve(y.line,0)},moveToLineOrEdgeOfDocument:function(p,y,C){var k=C.forward?p.lastLine():p.firstLine();return C.repeatIsExplicit&&(k=C.repeat-p.getOption("firstLineNumber")),new Ve(k,ea(p.getLine(k)))},moveToStartOfDisplayLine:function(p){return p.execCommand("goLineLeft"),p.getCursor()},moveToEndOfDisplayLine:function(p){p.execCommand("goLineRight");var y=p.getCursor();return y.sticky=="before"&&y.ch--,y},textObjectManipulation:function(p,y,C,k){var A={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},D={"'":!0,'"':!0,"`":!0},H=C.selectedCharacter;H=="b"?H="(":H=="B"&&(H="{");var W=!C.textObjectInner,V;if(A[H])V=Hie(p,y,H,W);else if(D[H])V=Uie(p,y,H,W);else if(H==="W")V=Mv(p,W,!0,!0);else if(H==="w")V=Mv(p,W,!0,!1);else if(H==="p")if(V=w9(p,y,C.repeat,0,W),C.linewise=!0,k.visualMode)k.visualLine||(k.visualLine=!0);else{var Q=k.inputState.operatorArgs;Q&&(Q.linewise=!0),V.end.line--}else if(H==="t")V=Mie(p,y,W);else return null;return p.state.vim.visualMode?Iie(p,V.start,V.end):[V.start,V.end]},repeatLastCharacterSearch:function(p,y,C){var k=X.lastCharacterSearch,A=C.repeat,D=C.forward===k.forward,H=(k.increment?1:0)*(D?-1:1);p.moveH(-H,"char"),C.inclusive=!!D;var W=T3(p,A,D,k.selectedCharacter);return W?(W.ch+=H,W):(p.moveH(H,"char"),y)}};function So(S,p){pi[S]=p}function no(S,p){for(var y=[],C=0;Cp.lastLine()&&y.linewise&&!Ce?p.replaceRange("",oe,W):p.replaceRange("",H,W),y.linewise&&(Ce||(p.setCursor(oe),ut.default.commands.newlineAndIndent(p)),H.ch=Number.MAX_VALUE),k=H}X.registerController.pushText(y.registerName,"change",A,y.linewise,C.length>1),ol.enterInsertMode(p,{head:k},p.state.vim)},delete:function(p,y,C){p.pushUndoStop();var k,A,D=p.state.vim;if(D.visualBlock){A=p.getSelection();var V=no("",C.length);p.replaceSelections(V),k=bt(C[0].head,C[0].anchor)}else{var H=C[0].anchor,W=C[0].head;y.linewise&&W.line!=p.firstLine()&&H.line==p.lastLine()&&H.line==W.line-1&&(H.line==p.firstLine()?H.ch=0:H=new Ve(H.line-1,Ci(p,H.line-1))),A=p.getRange(H,W),p.replaceRange("",H,W),k=H,y.linewise&&(k=pi.moveToFirstNonWhiteSpaceCharacter(p,H))}return X.registerController.pushText(y.registerName,"delete",A,y.linewise,D.visualBlock),Fr(p,k)},indent:function(p,y,C){var k=p.state.vim,A=C[0].anchor.line,D=k.visualBlock?C[C.length-1].anchor.line:C[0].head.line,H=k.visualMode?y.repeat:1;y.linewise&&D--,p.pushUndoStop();for(var W=A;W<=D;W++)for(var V=0;VQ.top?(V.line+=(W-Q.top)/A,V.line=Math.ceil(V.line),p.setCursor(V),Q=p.charCoords(V,"local"),p.scrollTo(null,Q.top)):p.scrollTo(null,W);else{var oe=W+p.getScrollInfo().clientHeight;oe=A.anchor.line?D=fr(A.head,0,1):D=new Ve(A.anchor.line,0)}else if(k=="inplace"){if(C.visualMode)return}else k=="lastEdit"&&(D=L9(p)||D);p.setOption("disableInput",!1),y&&y.replace?(p.toggleOverwrite(!0),p.setOption("keyMap","vim-replace"),ut.default.signal(p,"vim-mode-change",{mode:"replace"})):(p.toggleOverwrite(!1),p.setOption("keyMap","vim-insert"),ut.default.signal(p,"vim-mode-change",{mode:"insert"})),X.macroModeState.isPlaying||(p.on("change",R9),ut.default.on(p.getInputField(),"keydown",O9)),C.visualMode&&Js(p),Sn(p,D,H)}},toggleVisualMode:function(p,y,C){var k=y.repeat,A=p.getCursor(),D;C.visualMode?C.visualLine^y.linewise||C.visualBlock^y.blockwise?(C.visualLine=!!y.linewise,C.visualBlock=!!y.blockwise,ut.default.signal(p,"vim-mode-change",{mode:"visual",subMode:C.visualLine?"linewise":C.visualBlock?"blockwise":""}),Yh(p)):Js(p):(C.visualMode=!0,C.visualLine=!!y.linewise,C.visualBlock=!!y.blockwise,D=Fr(p,new Ve(A.line,A.ch+k-1)),C.sel={anchor:A,head:D},ut.default.signal(p,"vim-mode-change",{mode:"visual",subMode:C.visualLine?"linewise":C.visualBlock?"blockwise":""}),Yh(p),sl(p,C,"<",bt(A,D)),sl(p,C,">",Vt(A,D)))},reselectLastSelection:function(p,y,C){var k=C.lastSelection;if(C.visualMode&&g9(p,C),k){var A=k.anchorMark.find(),D=k.headMark.find();if(!A||!D)return;C.sel={anchor:A,head:D},C.visualMode=!0,C.visualLine=k.visualLine,C.visualBlock=k.visualBlock,Yh(p),sl(p,C,"<",bt(A,D)),sl(p,C,">",Vt(A,D)),ut.default.signal(p,"vim-mode-change",{mode:"visual",subMode:C.visualLine?"linewise":C.visualBlock?"blockwise":""})}},joinLines:function(p,y,C){var k,A;if(C.visualMode){if(k=p.getCursor("anchor"),A=p.getCursor("head"),De(A,k)){var D=A;A=k,k=D}A.ch=Ci(p,A.line)-1}else{var H=Math.max(y.repeat,2);k=p.getCursor(),A=Fr(p,new Ve(k.line+H-1,1/0))}for(var W=0,V=k.line;V1)var D=Array(y.repeat+1).join(D);var _e=A.linewise,Ze=A.blockwise;if(Ze){D=D.split(` -`),_e&&D.pop();for(var tt=0;ttp.lastLine()&&p.replaceRange(` -`,new Ve(si,0));var dn=Ci(p,si);dnV.length&&(D=V.length),H=new Ve(A.line,D)}if(k==` -`)C.visualMode||p.replaceRange("",A,H),(ut.default.commands.newlineAndIndentContinueComment||ut.default.commands.newlineAndIndent)(p);else{var Q=p.getRange(A,H);if(Q=Q.replace(/[^\n]/g,k),C.visualBlock){var oe=new Array(p.getOption("tabSize")+1).join(" ");Q=p.getSelection(),Q=Q.replace(/\t/g,oe).replace(/[^\n]/g,k).split(` -`),p.replaceSelections(Q)}else p.replaceRange(Q,A,H);C.visualMode?(A=De(W[0].anchor,W[0].head)?W[0].anchor:W[0].head,p.setCursor(A),Js(p,!1)):p.setCursor(fr(H,0,-1))}},incrementNumberToken:function(p,y){for(var C=p.getCursor(),k=p.getLine(C.line),A=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,D,H,W,V;(D=A.exec(k))!==null&&(H=D.index,W=H+D[0].length,!(C.ch"){var y=p.length-11,C=S.slice(0,y),k=p.slice(0,y);return C==k&&S.length>y?"full":k.indexOf(C)==0?"partial":!1}else return S==p?"full":p.indexOf(S)==0?"partial":!1}function k3(S){var p=/^.*(<[^>]+>)$/.exec(S),y=p?p[1]:S.slice(-1);if(y.length>1)switch(y){case"":y=` -`;break;case"":y=" ";break;default:y="";break}return y}function Dv(S,p,y){return function(){for(var C=0;C2&&(p=bt.apply(void 0,Array.prototype.slice.call(arguments,1))),De(S,p)?S:p}function Vt(S,p){return arguments.length>2&&(p=Vt.apply(void 0,Array.prototype.slice.call(arguments,1))),De(S,p)?p:S}function xi(S,p,y){var C=De(S,p),k=De(p,y);return C&&k}function Ci(S,p){return S.getLine(p).length}function _s(S){return S.trim?S.trim():S.replace(/^\s+|\s+$/g,"")}function ys(S){return S.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function su(S,p,y){var C=Ci(S,p),k=new Array(y-C+1).join(" ");S.setCursor(new Ve(p,C)),S.replaceRange(k,S.getCursor())}function Lc(S,p){var y=[],C=S.listSelections(),k=Xi(S.clipPos(p)),A=!ge(p,k),D=S.getCursor("head"),H=Dc(C,D),W=ge(C[H].head,C[H].anchor),V=C.length-1,Q=V-H>H?V:0,oe=C[Q].anchor,Ce=Math.min(oe.line,k.line),xe=Math.max(oe.line,k.line),_e=oe.ch,Ze=k.ch,tt=C[Q].head.ch-_e,Ye=Ze-_e;tt>0&&Ye<=0?(_e++,A||Ze--):tt<0&&Ye>=0?(_e--,W||Ze++):tt<0&&Ye==-1&&(_e--,Ze++);for(var zt=Ce;zt<=xe;zt++){var It={anchor:new Ve(zt,_e),head:new Ve(zt,Ze)};y.push(It)}return S.setSelections(y),p.ch=Ze,oe.ch=_e,oe}function Sn(S,p,y){for(var C=[],k=0;kW&&(k.line=W),k.ch=Ci(S,k.line)}return{ranges:[{anchor:A,head:k}],primary:0}}else if(y=="block"){var V=Math.min(A.line,k.line),Q=A.ch,oe=Math.max(A.line,k.line),Ce=k.ch;Q0&&A&&le(A);A=k.pop())y.line--,y.ch=0;A?(y.line--,y.ch=Ci(S,y.line)):y.ch=0}}function Die(S,p,y){p.ch=0,y.ch=0,y.line++}function ea(S){if(!S)return 0;var p=S.search(/\S/);return p==-1?S.length:p}function Mv(S,p,y,C,k){for(var A=Aie(S),D=S.getLine(A.line),H=A.ch,W=k?d[0]:u[0];!W(D.charAt(H));)if(H++,H>=D.length)return null;C?W=u[0]:(W=d[0],W(D.charAt(H))||(W=d[1]));for(var V=H,Q=H;W(D.charAt(V))&&V=0;)Q--;if(Q++,p){for(var oe=V;/\s/.test(D.charAt(V))&&V0;)Q--;Q||(Q=Ce)}}return{start:new Ve(A.line,Q),end:new Ve(A.line,V)}}function Mie(S,p,y){var C=p;if(!ut.default.findMatchingTag||!ut.default.findEnclosingTag)return{start:C,end:C};var k=ut.default.findMatchingTag(S,p)||ut.default.findEnclosingTag(S,p);return!k||!k.open||!k.close?{start:C,end:C}:y?{start:k.open.from,end:k.close.to}:{start:k.open.to,end:k.close.from}}function b9(S,p,y){ge(p,y)||X.jumpList.add(S,p,y)}function v9(S,p){X.lastCharacterSearch.increment=S,X.lastCharacterSearch.forward=p.forward,X.lastCharacterSearch.selectedCharacter=p.selectedCharacter}var Nie={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},_9={bracket:{isComplete:function(p){if(p.nextCh===p.symb){if(p.depth++,p.depth>=1)return!0}else p.nextCh===p.reverseSymb&&p.depth--;return!1}},section:{init:function(p){p.curMoveThrough=!0,p.symb=(p.forward?"]":"[")===p.symb?"{":"}"},isComplete:function(p){return p.index===0&&p.nextCh===p.symb}},comment:{isComplete:function(p){var y=p.lastCh==="*"&&p.nextCh==="/";return p.lastCh=p.nextCh,y}},method:{init:function(p){p.symb=p.symb==="m"?"{":"}",p.reverseSymb=p.symb==="{"?"}":"{"},isComplete:function(p){return p.nextCh===p.symb}},preprocess:{init:function(p){p.index=0},isComplete:function(p){if(p.nextCh==="#"){var y=p.lineText.match(/^#(\w+)/)[1];if(y==="endif"){if(p.forward&&p.depth===0)return!0;p.depth++}else if(y==="if"){if(!p.forward&&p.depth===0)return!0;p.depth--}if(y==="else"&&p.depth===0)return!0}return!1}}};function Rie(S,p,y,C){var k=Xi(S.getCursor()),A=y?1:-1,D=y?S.lineCount():-1,H=k.ch,W=k.line,V=S.getLine(W),Q={lineText:V,nextCh:V.charAt(H),lastCh:null,index:H,symb:C,reverseSymb:(y?{")":"(","}":"{"}:{"(":")","{":"}"})[C],forward:y,depth:0,curMoveThrough:!1},oe=Nie[C];if(!oe)return k;var Ce=_9[oe].init,xe=_9[oe].isComplete;for(Ce&&Ce(Q);W!==D&&p;){if(Q.index+=A,Q.nextCh=Q.lineText.charAt(Q.index),!Q.nextCh){if(W+=A,Q.lineText=S.getLine(W)||"",A>0)Q.index=0;else{var _e=Q.lineText.length;Q.index=_e>0?_e-1:0}Q.nextCh=Q.lineText.charAt(Q.index)}xe(Q)&&(k.line=W,k.ch=Q.index,p--)}return Q.nextCh||Q.curMoveThrough?new Ve(W,Q.index):k}function Pie(S,p,y,C,k){var A=p.line,D=p.ch,H=S.getLine(A),W=y?1:-1,V=C?u:d;if(k&&H==""){if(A+=W,H=S.getLine(A),!I(S,A))return null;D=y?0:H.length}for(;;){if(k&&H=="")return{from:0,to:0,line:A};for(var Q=W>0?H.length:-1,oe=Q,Ce=Q;D!=Q;){for(var xe=!1,_e=0;_e0?0:H.length}}function Oie(S,p,y,C,k,A){var D=Xi(p),H=[];(C&&!k||!C&&k)&&y++;for(var W=!(C&&k),V=0;V0;)Ce(Q,C)&&y--,Q+=C;return new Ve(Q,0)}var xe=S.state.vim;if(xe.visualLine&&Ce(A,1,!0)){var _e=xe.sel.anchor;Ce(_e.line,-1,!0)&&(!k||_e.line!=A)&&(A+=1)}var Ze=oe(A);for(Q=A;Q<=H&&y;Q++)Ce(Q,1,!0)&&(!k||oe(Q)!=Ze)&&y--;for(V=new Ve(Q,0),Q>H&&!Ze?Ze=!0:k=!1,Q=A;Q>D&&!((!k||oe(Q)==Ze||Q==A)&&Ce(Q,-1,!0));Q--);return W=new Ve(Q,0),{start:W,end:V}}function Bie(S,p,y,C){function k(W,V){if(V.pos+V.dir<0||V.pos+V.dir>=V.line.length){if(V.ln+=V.dir,!I(W,V.ln)){V.line=null,V.ln=null,V.pos=null;return}V.line=W.getLine(V.ln),V.pos=V.dir>0?0:V.line.length-1}else V.pos+=V.dir}function A(W,V,Q,oe){var tt=W.getLine(V),Ce=tt==="",xe={line:tt,ln:V,pos:Q,dir:oe},_e={ln:xe.ln,pos:xe.pos},Ze=xe.line==="";for(k(W,xe);xe.line!==null;){if(_e.ln=xe.ln,_e.pos=xe.pos,xe.line===""&&!Ze)return{ln:xe.ln,pos:xe.pos};if(Ce&&xe.line!==""&&!le(xe.line[xe.pos]))return{ln:xe.ln,pos:xe.pos};re(xe.line[xe.pos])&&!Ce&&(xe.pos===xe.line.length-1||le(xe.line[xe.pos+1]))&&(Ce=!0),k(W,xe)}var tt=W.getLine(_e.ln);_e.pos=0;for(var Ye=tt.length-1;Ye>=0;--Ye)if(!le(tt[Ye])){_e.pos=Ye;break}return _e}function D(W,V,Q,oe){var Ze=W.getLine(V),Ce={line:Ze,ln:V,pos:Q,dir:oe},xe={ln:Ce.ln,pos:null},_e=Ce.line==="";for(k(W,Ce);Ce.line!==null;){if(Ce.line===""&&!_e)return xe.pos!==null?xe:{ln:Ce.ln,pos:Ce.pos};if(re(Ce.line[Ce.pos])&&xe.pos!==null&&!(Ce.ln===xe.ln&&Ce.pos+1===xe.pos))return xe;Ce.line!==""&&!le(Ce.line[Ce.pos])&&(_e=!1,xe={ln:Ce.ln,pos:Ce.pos}),k(W,Ce)}var Ze=W.getLine(xe.ln);xe.pos=0;for(var tt=0;tt0;)C<0?H=D(S,H.ln,H.pos,C):H=A(S,H.ln,H.pos,C),y--;return new Ve(H.ln,H.pos)}function Hie(S,p,y,C){var k=p,A,D,H={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[y],W={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[y],V=S.getLine(k.line).charAt(k.ch),Q=V===W?1:0;if(A=S.scanForBracket(new Ve(k.line,k.ch+Q),-1,void 0,{bracketRegex:H}),D=S.scanForBracket(new Ve(k.line,k.ch+Q),1,void 0,{bracketRegex:H}),!A||!D)return{start:k,end:k};if(A=A.pos,D=D.pos,A.line==D.line&&A.ch>D.ch||A.line>D.line){var oe=A;A=D,D=oe}return C?D.ch+=1:A.ch+=1,{start:A,end:D}}function Uie(S,p,y,C){var k=Xi(p),A=S.getLine(k.line),D=A.split(""),H,W,V,Q,oe=D.indexOf(y);if(k.ch-1&&!H;V--)D[V]==y&&(H=V+1);if(H&&!W)for(V=H,Q=D.length;V=p&&S<=y:S==p}function A3(S){var p=S.getScrollInfo(),y=6,C=10,k=S.coordsChar({left:0,top:y+p.top},"local"),A=p.clientHeight-C+p.top,D=S.coordsChar({left:0,top:A},"local");return{top:k.line,bottom:D.line}}function A9(S,p,y){if(y=="'"||y=="`")return X.jumpList.find(S,-1)||new Ve(0,0);if(y==".")return L9(S);var C=p.marks[y];return C&&C.find()}function L9(S){for(var p=S.doc.history.done,y=p.length;y--;)if(p[y].changes)return Xi(p[y].changes[0].to)}var D9=function(){this.buildCommandMap_()};D9.prototype={processCommand:function(p,y,C){var k=this;p.operation(function(){p.curOp.isVimOp=!0,k._processCommand(p,y,C)})},_processCommand:function(p,y,C){var k=p.state.vim,A=X.registerController.getRegister(":"),D=A.toString();k.visualMode&&Js(p);var H=new ut.default.StringStream(y);A.setText(y);var W=C||{};W.input=y;try{this.parseInput_(p,H,W)}catch(Ce){throw Hi(p,Ce.toString()),Ce}var V,Q;if(!W.commandName)W.line!==void 0&&(Q="move");else if(V=this.matchCommand_(W.commandName),V){if(Q=V.name,V.excludeFromCommandHistory&&A.setText(D),this.parseCommandArgs_(H,W,V),V.type=="exToKey"){for(var oe=0;oe@~])/);return k?C.commandName=k[1]:C.commandName=y.match(/.*/)[0],C},parseLineSpec_:function(p,y){var C=y.match(/^(\d+)/);if(C)return parseInt(C[1],10)-1;switch(y.next()){case".":return this.parseLineSpecOffset_(y,p.getCursor().line);case"$":return this.parseLineSpecOffset_(y,p.lastLine());case"'":var k=y.next(),A=A9(p,p.state.vim,k);if(!A)throw new Error("Mark not set");return this.parseLineSpecOffset_(y,A.line);case"-":case"+":return y.backUp(1),this.parseLineSpecOffset_(y,p.getCursor().line);default:y.backUp(1);return}},parseLineSpecOffset_:function(p,y){var C=p.match(/^([+-])?(\d+)/);if(C){var k=parseInt(C[2],10);C[1]=="-"?y-=k:y+=k}return y},parseCommandArgs_:function(p,y,C){if(!p.eol()){y.argString=p.match(/.*/)[0];var k=C.argDelimiter||/\s+/,A=_s(y.argString).split(k);A.length&&A[0]&&(y.args=A)}},matchCommand_:function(p){for(var y=p.length;y>0;y--){var C=p.substring(0,y);if(this.commandMap_[C]){var k=this.commandMap_[C];if(k.name.indexOf(p)===0)return k}}return null},buildCommandMap_:function(){this.commandMap_={};for(var p=0;p=2;p--)this.registers[p]=this.getRegister(""+(p-1))}};function Et(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}Et.prototype={nextMatch:function(p,y){var C=this.historyBuffer,k=y?-1:1;this.initialPrefix===null&&(this.initialPrefix=p);for(var I=this.iterator+k;y?I>=0:I=C.length)return this.iterator=C.length,this.initialPrefix;if(I<0)return p},pushInput:function(p){var y=this.historyBuffer.indexOf(p);y>-1&&this.historyBuffer.splice(y,1),p.length&&this.historyBuffer.push(p)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var Ii={matchCommand:function(p,y,C,k){var I=C3(p,y,k,C);if(!I.full&&!I.partial)return{type:"none"};if(!I.full&&I.partial)return{type:"partial"};for(var M,H=0;H"){var V=k3(p);if(!V)return{type:"none"};C.selectedCharacter=V}return{type:"full",command:M}},processCommand:function(p,y,C){switch(y.inputState.repeatOverride=C.repeatOverride,C.type){case"motion":this.processMotion(p,y,C);break;case"operator":this.processOperator(p,y,C);break;case"operatorMotion":this.processOperatorMotion(p,y,C);break;case"action":this.processAction(p,y,C);break;case"search":this.processSearch(p,y,C);break;case"ex":case"keyToEx":this.processEx(p,y,C);break;default:break}},processMotion:function(p,y,C){y.inputState.motion=C.motion,y.inputState.motionArgs=Go(C.motionArgs),this.evalInput(p,y)},processOperator:function(p,y,C){var k=y.inputState;if(k.operator)if(k.operator==C.operator){k.motion="expandToLine",k.motionArgs={linewise:!0},this.evalInput(p,y);return}else Tt(p);k.operator=C.operator,k.operatorArgs=Go(C.operatorArgs),C.keys.length>1&&(k.operatorShortcut=C.keys),C.exitVisualBlock&&(y.visualBlock=!1,Yh(p)),y.visualMode&&this.evalInput(p,y)},processOperatorMotion:function(p,y,C){var k=y.visualMode,I=Go(C.operatorMotionArgs);I&&k&&I.visualLine&&(y.visualLine=!0),this.processOperator(p,y,C),k||this.processMotion(p,y,C)},processAction:function(p,y,C){var k=y.inputState,I=k.getRepeat(),M=!!I,H=Go(C.actionArgs)||{};k.selectedCharacter&&(H.selectedCharacter=k.selectedCharacter),C.operator&&this.processOperator(p,y,C),C.motion&&this.processMotion(p,y,C),(C.motion||C.operator)&&this.evalInput(p,y),H.repeat=I||1,H.repeatIsExplicit=M,H.registerName=k.registerName,Tt(p),y.lastMotion=null,C.isEdit&&this.recordLastEdit(y,k,C),ol[C.action](p,H,y)},processSearch:function(p,y,C){if(!p.getSearchCursor)return;var k=C.searchArgs.forward,I=C.searchArgs.wholeWordOnly;ta(p).setReversed(!k);var M=k?"/":"?",H=ta(p).getQuery(),W=p.getScrollInfo();function V(Ye,zt,It){X.searchHistoryController.pushInput(Ye),X.searchHistoryController.reset();try{Sm(p,Ye,zt,It)}catch(At){Hi(p,"Invalid regex: "+Ye),Tt(p);return}Ii.processMotion(p,y,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:C.searchArgs.toJumplist}})}function Q(Ye){p.scrollTo(W.left,W.top),V(Ye,!0,!0);var zt=X.macroModeState;zt.isRecording&&nre(zt,Ye)}function se(Ye,zt,It){var At=ut.default.keyName(Ye),Ui,oo;At=="Up"||At=="Down"?(Ui=At=="Up",oo=Ye.target?Ye.target.selectionEnd:0,zt=X.searchHistoryController.nextMatch(zt,Ui)||"",It(zt),oo&&Ye.target&&(Ye.target.selectionEnd=Ye.target.selectionStart=Math.min(oo,Ye.target.value.length))):At!="Left"&&At!="Right"&&At!="Ctrl"&&At!="Alt"&&At!="Shift"&&X.searchHistoryController.reset();var pr;try{pr=Sm(p,zt,!0,!0)}catch(jn){}pr?p.scrollIntoView(I9(p,!k,pr),30):(I3(p),p.scrollTo(W.left,W.top))}function Ce(Ye,zt,It){var At=ut.default.keyName(Ye);At=="Esc"||At=="Ctrl-C"||At=="Ctrl-["||At=="Backspace"&&zt==""?(X.searchHistoryController.pushInput(zt),X.searchHistoryController.reset(),Sm(p,H),I3(p),p.scrollTo(W.left,W.top),ut.default.e_stop(Ye),Tt(p),It(),p.focus()):At=="Up"||At=="Down"?ut.default.e_stop(Ye):At=="Ctrl-U"&&(ut.default.e_stop(Ye),It(""))}switch(C.searchArgs.querySrc){case"prompt":var xe=X.macroModeState;if(xe.isPlaying){var tt=xe.replaySearchQueries.shift();V(tt,!0,!1)}else Nv(p,{onClose:Q,prefix:M,desc:"(JavaScript regexp)",onKeyUp:se,onKeyDown:Ce});break;case"wordUnderCursor":var ye=Mv(p,!1,!0,!1,!0),Ze=!0;if(ye||(ye=Mv(p,!1,!0,!1,!1),Ze=!1),!ye)return;var tt=p.getLine(ye.start.line).substring(ye.start.ch,ye.end.ch);Ze&&I?tt="\\b"+tt+"\\b":tt=ys(tt),X.jumpList.cachedCursor=p.getCursor(),p.setCursor(ye.start),V(tt,!0,!1);break}},processEx:function(p,y,C){function k(M){X.exCommandHistoryController.pushInput(M),X.exCommandHistoryController.reset(),ia.processCommand(p,M)}function I(M,H,W){var V=ut.default.keyName(M),Q,se;(V=="Esc"||V=="Ctrl-C"||V=="Ctrl-["||V=="Backspace"&&H=="")&&(X.exCommandHistoryController.pushInput(H),X.exCommandHistoryController.reset(),ut.default.e_stop(M),Tt(p),W(),p.focus()),V=="Up"||V=="Down"?(ut.default.e_stop(M),Q=V=="Up",se=M.target?M.target.selectionEnd:0,H=X.exCommandHistoryController.nextMatch(H,Q)||"",W(H),se&&M.target&&(M.target.selectionEnd=M.target.selectionStart=Math.min(se,M.target.value.length))):V=="Ctrl-U"?(ut.default.e_stop(M),W("")):V!="Left"&&V!="Right"&&V!="Ctrl"&&V!="Alt"&&V!="Shift"&&X.exCommandHistoryController.reset()}C.type=="keyToEx"?ia.processCommand(p,C.exArgs.input):y.visualMode?Nv(p,{onClose:k,prefix:":",value:"'<,'>",onKeyDown:I,selectValueOnOpen:!1}):Nv(p,{onClose:k,prefix:":",onKeyDown:I})},evalInput:function(p,y){var C=y.inputState,k=C.motion,I=C.motionArgs||{},M=C.operator,H=C.operatorArgs||{},W=C.registerName,V=y.sel,Q=Xi(y.visualMode?Fr(p,V.head):p.getCursor("head")),se=Xi(y.visualMode?Fr(p,V.anchor):p.getCursor("anchor")),Ce=Xi(Q),xe=Xi(se),ye,Ze,tt;if(M&&this.recordLastEdit(y,C),C.repeatOverride!==void 0?tt=C.repeatOverride:tt=C.getRepeat(),tt>0&&I.explicitRepeat?I.repeatIsExplicit=!0:(I.noRepeat||!I.explicitRepeat&&tt===0)&&(tt=1,I.repeatIsExplicit=!1),C.selectedCharacter&&(I.selectedCharacter=H.selectedCharacter=C.selectedCharacter),I.repeat=tt,Tt(p),k){var Ye=pi[k](p,Q,I,y,C);if(y.lastMotion=pi[k],!Ye)return;if(I.toJumplist){var zt=X.jumpList,It=zt.cachedCursor;It?(b9(p,It,Ye),delete zt.cachedCursor):b9(p,Q,Ye)}Ye instanceof Array?(Ze=Ye[0],ye=Ye[1]):ye=Ye,ye||(ye=Xi(Q)),y.visualMode?(y.visualBlock&&ye.ch===1/0||(ye=Fr(p,ye)),Ze&&(Ze=Fr(p,Ze)),Ze=Ze||xe,V.anchor=Ze,V.head=ye,Yh(p),sl(p,y,"<",De(Ze,ye)?Ze:ye),sl(p,y,">",De(Ze,ye)?ye:Ze)):M||(ye=Fr(p,ye),p.setCursor(ye.line,ye.ch))}if(M){if(H.lastSel){Ze=xe;var At=H.lastSel,Ui=Math.abs(At.head.line-At.anchor.line),oo=Math.abs(At.head.ch-At.anchor.ch);At.visualLine?ye=new Ve(xe.line+Ui,xe.ch):At.visualBlock?ye=new Ve(xe.line+Ui,xe.ch+oo):At.head.line==At.anchor.line?ye=new Ve(xe.line,xe.ch+oo):ye=new Ve(xe.line+Ui,xe.ch),y.visualMode=!0,y.visualLine=At.visualLine,y.visualBlock=At.visualBlock,V=y.sel={anchor:Ze,head:ye},Yh(p)}else y.visualMode&&(H.lastSel={anchor:Xi(V.anchor),head:Xi(V.head),visualBlock:y.visualBlock,visualLine:y.visualLine});var pr,jn,Li,si,dn;if(y.visualMode){if(pr=bt(V.head,V.anchor),jn=Vt(V.head,V.anchor),Li=y.visualLine||H.linewise,si=y.visualBlock?"block":Li?"line":"char",dn=E3(p,{anchor:pr,head:jn},si),Li){var so=dn.ranges;if(si=="block")for(var Wn=0;WnW:se.lineQ&&I.line==Q?y9(p,y,C,k,!0):(C.toFirstChar&&(M=ea(p.getLine(W)),k.lastHPos=M),k.lastHSPos=p.charCoords(new Ve(W,M),"div").left,new Ve(W,M))},moveByDisplayLines:function(p,y,C,k){var I=y;switch(k.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:k.lastHSPos=p.charCoords(I,"div").left}var M=C.repeat,H=p.findPosV(I,C.forward?M:-M,"line",k.lastHSPos);if(H.hitSide)if(C.forward)var W=p.charCoords(H,"div"),V={top:W.top+8,left:k.lastHSPos},H=p.coordsChar(V,"div");else{var Q=p.charCoords(new Ve(p.firstLine(),0),"div");Q.left=k.lastHSPos,H=p.coordsChar(Q,"div")}return k.lastHPos=H.ch,H},moveByPage:function(p,y,C){var k=y,I=C.repeat;return p.findPosV(k,C.forward?I:-I,"page")},moveByParagraph:function(p,y,C){var k=C.forward?1:-1;return w9(p,y,C.repeat,k)},moveBySentence:function(p,y,C){var k=C.forward?1:-1;return Bie(p,y,C.repeat,k)},moveByScroll:function(p,y,C,k){var I=p.getScrollInfo(),W=null,M=C.repeat;M||(M=I.clientHeight/(2*p.defaultTextHeight()));var H=p.charCoords(y,"local");C.repeat=M;var W=pi.moveByDisplayLines(p,y,C,k);if(!W)return null;var V=p.charCoords(W,"local");return p.scrollTo(null,I.top+V.top-H.top),W},moveByWords:function(p,y,C){return Oie(p,y,C.repeat,!!C.forward,!!C.wordEnd,!!C.bigWord)},moveTillCharacter:function(p,y,C){var k=C.repeat,I=T3(p,k,C.forward,C.selectedCharacter),M=C.forward?-1:1;return v9(M,C),I?(I.ch+=M,I):null},moveToCharacter:function(p,y,C){var k=C.repeat;return v9(0,C),T3(p,k,C.forward,C.selectedCharacter)||y},moveToSymbol:function(p,y,C){var k=C.repeat;return Rie(p,k,C.forward,C.selectedCharacter)||y},moveToColumn:function(p,y,C,k){var I=C.repeat;return k.lastHPos=I-1,k.lastHSPos=p.charCoords(y,"div").left,Fie(p,I)},moveToEol:function(p,y,C,k){return y9(p,y,C,k,!1)},moveToFirstNonWhiteSpaceCharacter:function(p,y){var C=y;return new Ve(C.line,ea(p.getLine(C.line)))},moveToMatchedSymbol:function(p,y){var C=y,k=C.line,I=C.ch,M=p.getLine(k);if(I"?/[(){}[\]<>]/:/[(){}[\]]/,W=p.findMatchingBracket(new Ve(k,I),{bracketRegex:H});return W.to}else return C},moveToStartOfLine:function(p,y){return new Ve(y.line,0)},moveToLineOrEdgeOfDocument:function(p,y,C){var k=C.forward?p.lastLine():p.firstLine();return C.repeatIsExplicit&&(k=C.repeat-p.getOption("firstLineNumber")),new Ve(k,ea(p.getLine(k)))},moveToStartOfDisplayLine:function(p){return p.execCommand("goLineLeft"),p.getCursor()},moveToEndOfDisplayLine:function(p){p.execCommand("goLineRight");var y=p.getCursor();return y.sticky=="before"&&y.ch--,y},textObjectManipulation:function(p,y,C,k){var I={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},M={"'":!0,'"':!0,"`":!0},H=C.selectedCharacter;H=="b"?H="(":H=="B"&&(H="{");var W=!C.textObjectInner,V;if(I[H])V=Hie(p,y,H,W);else if(M[H])V=Uie(p,y,H,W);else if(H==="W")V=Mv(p,W,!0,!0);else if(H==="w")V=Mv(p,W,!0,!1);else if(H==="p")if(V=w9(p,y,C.repeat,0,W),C.linewise=!0,k.visualMode)k.visualLine||(k.visualLine=!0);else{var Q=k.inputState.operatorArgs;Q&&(Q.linewise=!0),V.end.line--}else if(H==="t")V=Mie(p,y,W);else return null;return p.state.vim.visualMode?Iie(p,V.start,V.end):[V.start,V.end]},repeatLastCharacterSearch:function(p,y,C){var k=X.lastCharacterSearch,I=C.repeat,M=C.forward===k.forward,H=(k.increment?1:0)*(M?-1:1);p.moveH(-H,"char"),C.inclusive=!!M;var W=T3(p,I,M,k.selectedCharacter);return W?(W.ch+=H,W):(p.moveH(H,"char"),y)}};function So(S,p){pi[S]=p}function no(S,p){for(var y=[],C=0;Cp.lastLine()&&y.linewise&&!Ce?p.replaceRange("",se,W):p.replaceRange("",H,W),y.linewise&&(Ce||(p.setCursor(se),ut.default.commands.newlineAndIndent(p)),H.ch=Number.MAX_VALUE),k=H}X.registerController.pushText(y.registerName,"change",I,y.linewise,C.length>1),ol.enterInsertMode(p,{head:k},p.state.vim)},delete:function(p,y,C){p.pushUndoStop();var k,I,M=p.state.vim;if(M.visualBlock){I=p.getSelection();var V=no("",C.length);p.replaceSelections(V),k=bt(C[0].head,C[0].anchor)}else{var H=C[0].anchor,W=C[0].head;y.linewise&&W.line!=p.firstLine()&&H.line==p.lastLine()&&H.line==W.line-1&&(H.line==p.firstLine()?H.ch=0:H=new Ve(H.line-1,Ci(p,H.line-1))),I=p.getRange(H,W),p.replaceRange("",H,W),k=H,y.linewise&&(k=pi.moveToFirstNonWhiteSpaceCharacter(p,H))}return X.registerController.pushText(y.registerName,"delete",I,y.linewise,M.visualBlock),Fr(p,k)},indent:function(p,y,C){var k=p.state.vim,I=C[0].anchor.line,M=k.visualBlock?C[C.length-1].anchor.line:C[0].head.line,H=k.visualMode?y.repeat:1;y.linewise&&M--,p.pushUndoStop();for(var W=I;W<=M;W++)for(var V=0;VQ.top?(V.line+=(W-Q.top)/I,V.line=Math.ceil(V.line),p.setCursor(V),Q=p.charCoords(V,"local"),p.scrollTo(null,Q.top)):p.scrollTo(null,W);else{var se=W+p.getScrollInfo().clientHeight;se=I.anchor.line?M=fr(I.head,0,1):M=new Ve(I.anchor.line,0)}else if(k=="inplace"){if(C.visualMode)return}else k=="lastEdit"&&(M=L9(p)||M);p.setOption("disableInput",!1),y&&y.replace?(p.toggleOverwrite(!0),p.setOption("keyMap","vim-replace"),ut.default.signal(p,"vim-mode-change",{mode:"replace"})):(p.toggleOverwrite(!1),p.setOption("keyMap","vim-insert"),ut.default.signal(p,"vim-mode-change",{mode:"insert"})),X.macroModeState.isPlaying||(p.on("change",R9),ut.default.on(p.getInputField(),"keydown",O9)),C.visualMode&&Js(p),Sn(p,M,H)}},toggleVisualMode:function(p,y,C){var k=y.repeat,I=p.getCursor(),M;C.visualMode?C.visualLine^y.linewise||C.visualBlock^y.blockwise?(C.visualLine=!!y.linewise,C.visualBlock=!!y.blockwise,ut.default.signal(p,"vim-mode-change",{mode:"visual",subMode:C.visualLine?"linewise":C.visualBlock?"blockwise":""}),Yh(p)):Js(p):(C.visualMode=!0,C.visualLine=!!y.linewise,C.visualBlock=!!y.blockwise,M=Fr(p,new Ve(I.line,I.ch+k-1)),C.sel={anchor:I,head:M},ut.default.signal(p,"vim-mode-change",{mode:"visual",subMode:C.visualLine?"linewise":C.visualBlock?"blockwise":""}),Yh(p),sl(p,C,"<",bt(I,M)),sl(p,C,">",Vt(I,M)))},reselectLastSelection:function(p,y,C){var k=C.lastSelection;if(C.visualMode&&g9(p,C),k){var I=k.anchorMark.find(),M=k.headMark.find();if(!I||!M)return;C.sel={anchor:I,head:M},C.visualMode=!0,C.visualLine=k.visualLine,C.visualBlock=k.visualBlock,Yh(p),sl(p,C,"<",bt(I,M)),sl(p,C,">",Vt(I,M)),ut.default.signal(p,"vim-mode-change",{mode:"visual",subMode:C.visualLine?"linewise":C.visualBlock?"blockwise":""})}},joinLines:function(p,y,C){var k,I;if(C.visualMode){if(k=p.getCursor("anchor"),I=p.getCursor("head"),De(I,k)){var M=I;I=k,k=M}I.ch=Ci(p,I.line)-1}else{var H=Math.max(y.repeat,2);k=p.getCursor(),I=Fr(p,new Ve(k.line+H-1,1/0))}for(var W=0,V=k.line;V1)var M=Array(y.repeat+1).join(M);var ye=I.linewise,Ze=I.blockwise;if(Ze){M=M.split(` +`),ye&&M.pop();for(var tt=0;ttp.lastLine()&&p.replaceRange(` +`,new Ve(si,0));var dn=Ci(p,si);dnV.length&&(M=V.length),H=new Ve(I.line,M)}if(k==` +`)C.visualMode||p.replaceRange("",I,H),(ut.default.commands.newlineAndIndentContinueComment||ut.default.commands.newlineAndIndent)(p);else{var Q=p.getRange(I,H);if(Q=Q.replace(/[^\n]/g,k),C.visualBlock){var se=new Array(p.getOption("tabSize")+1).join(" ");Q=p.getSelection(),Q=Q.replace(/\t/g,se).replace(/[^\n]/g,k).split(` +`),p.replaceSelections(Q)}else p.replaceRange(Q,I,H);C.visualMode?(I=De(W[0].anchor,W[0].head)?W[0].anchor:W[0].head,p.setCursor(I),Js(p,!1)):p.setCursor(fr(H,0,-1))}},incrementNumberToken:function(p,y){for(var C=p.getCursor(),k=p.getLine(C.line),I=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,M,H,W,V;(M=I.exec(k))!==null&&(H=M.index,W=H+M[0].length,!(C.ch"){var y=p.length-11,C=S.slice(0,y),k=p.slice(0,y);return C==k&&S.length>y?"full":k.indexOf(C)==0?"partial":!1}else return S==p?"full":p.indexOf(S)==0?"partial":!1}function k3(S){var p=/^.*(<[^>]+>)$/.exec(S),y=p?p[1]:S.slice(-1);if(y.length>1)switch(y){case"":y=` +`;break;case"":y=" ";break;default:y="";break}return y}function Dv(S,p,y){return function(){for(var C=0;C2&&(p=bt.apply(void 0,Array.prototype.slice.call(arguments,1))),De(S,p)?S:p}function Vt(S,p){return arguments.length>2&&(p=Vt.apply(void 0,Array.prototype.slice.call(arguments,1))),De(S,p)?p:S}function xi(S,p,y){var C=De(S,p),k=De(p,y);return C&&k}function Ci(S,p){return S.getLine(p).length}function _s(S){return S.trim?S.trim():S.replace(/^\s+|\s+$/g,"")}function ys(S){return S.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function su(S,p,y){var C=Ci(S,p),k=new Array(y-C+1).join(" ");S.setCursor(new Ve(p,C)),S.replaceRange(k,S.getCursor())}function Lc(S,p){var y=[],C=S.listSelections(),k=Xi(S.clipPos(p)),I=!ge(p,k),M=S.getCursor("head"),H=Dc(C,M),W=ge(C[H].head,C[H].anchor),V=C.length-1,Q=V-H>H?V:0,se=C[Q].anchor,Ce=Math.min(se.line,k.line),xe=Math.max(se.line,k.line),ye=se.ch,Ze=k.ch,tt=C[Q].head.ch-ye,Ye=Ze-ye;tt>0&&Ye<=0?(ye++,I||Ze--):tt<0&&Ye>=0?(ye--,W||Ze++):tt<0&&Ye==-1&&(ye--,Ze++);for(var zt=Ce;zt<=xe;zt++){var It={anchor:new Ve(zt,ye),head:new Ve(zt,Ze)};y.push(It)}return S.setSelections(y),p.ch=Ze,se.ch=ye,se}function Sn(S,p,y){for(var C=[],k=0;kW&&(k.line=W),k.ch=Ci(S,k.line)}return{ranges:[{anchor:I,head:k}],primary:0}}else if(y=="block"){var V=Math.min(I.line,k.line),Q=I.ch,se=Math.max(I.line,k.line),Ce=k.ch;Q0&&I&&oe(I);I=k.pop())y.line--,y.ch=0;I?(y.line--,y.ch=Ci(S,y.line)):y.ch=0}}function Die(S,p,y){p.ch=0,y.ch=0,y.line++}function ea(S){if(!S)return 0;var p=S.search(/\S/);return p==-1?S.length:p}function Mv(S,p,y,C,k){for(var I=Aie(S),M=S.getLine(I.line),H=I.ch,W=k?d[0]:u[0];!W(M.charAt(H));)if(H++,H>=M.length)return null;C?W=u[0]:(W=d[0],W(M.charAt(H))||(W=d[1]));for(var V=H,Q=H;W(M.charAt(V))&&V=0;)Q--;if(Q++,p){for(var se=V;/\s/.test(M.charAt(V))&&V0;)Q--;Q||(Q=Ce)}}return{start:new Ve(I.line,Q),end:new Ve(I.line,V)}}function Mie(S,p,y){var C=p;if(!ut.default.findMatchingTag||!ut.default.findEnclosingTag)return{start:C,end:C};var k=ut.default.findMatchingTag(S,p)||ut.default.findEnclosingTag(S,p);return!k||!k.open||!k.close?{start:C,end:C}:y?{start:k.open.from,end:k.close.to}:{start:k.open.to,end:k.close.from}}function b9(S,p,y){ge(p,y)||X.jumpList.add(S,p,y)}function v9(S,p){X.lastCharacterSearch.increment=S,X.lastCharacterSearch.forward=p.forward,X.lastCharacterSearch.selectedCharacter=p.selectedCharacter}var Nie={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},_9={bracket:{isComplete:function(p){if(p.nextCh===p.symb){if(p.depth++,p.depth>=1)return!0}else p.nextCh===p.reverseSymb&&p.depth--;return!1}},section:{init:function(p){p.curMoveThrough=!0,p.symb=(p.forward?"]":"[")===p.symb?"{":"}"},isComplete:function(p){return p.index===0&&p.nextCh===p.symb}},comment:{isComplete:function(p){var y=p.lastCh==="*"&&p.nextCh==="/";return p.lastCh=p.nextCh,y}},method:{init:function(p){p.symb=p.symb==="m"?"{":"}",p.reverseSymb=p.symb==="{"?"}":"{"},isComplete:function(p){return p.nextCh===p.symb}},preprocess:{init:function(p){p.index=0},isComplete:function(p){if(p.nextCh==="#"){var y=p.lineText.match(/^#(\w+)/)[1];if(y==="endif"){if(p.forward&&p.depth===0)return!0;p.depth++}else if(y==="if"){if(!p.forward&&p.depth===0)return!0;p.depth--}if(y==="else"&&p.depth===0)return!0}return!1}}};function Rie(S,p,y,C){var k=Xi(S.getCursor()),I=y?1:-1,M=y?S.lineCount():-1,H=k.ch,W=k.line,V=S.getLine(W),Q={lineText:V,nextCh:V.charAt(H),lastCh:null,index:H,symb:C,reverseSymb:(y?{")":"(","}":"{"}:{"(":")","{":"}"})[C],forward:y,depth:0,curMoveThrough:!1},se=Nie[C];if(!se)return k;var Ce=_9[se].init,xe=_9[se].isComplete;for(Ce&&Ce(Q);W!==M&&p;){if(Q.index+=I,Q.nextCh=Q.lineText.charAt(Q.index),!Q.nextCh){if(W+=I,Q.lineText=S.getLine(W)||"",I>0)Q.index=0;else{var ye=Q.lineText.length;Q.index=ye>0?ye-1:0}Q.nextCh=Q.lineText.charAt(Q.index)}xe(Q)&&(k.line=W,k.ch=Q.index,p--)}return Q.nextCh||Q.curMoveThrough?new Ve(W,Q.index):k}function Pie(S,p,y,C,k){var I=p.line,M=p.ch,H=S.getLine(I),W=y?1:-1,V=C?u:d;if(k&&H==""){if(I+=W,H=S.getLine(I),!L(S,I))return null;M=y?0:H.length}for(;;){if(k&&H=="")return{from:0,to:0,line:I};for(var Q=W>0?H.length:-1,se=Q,Ce=Q;M!=Q;){for(var xe=!1,ye=0;ye0?0:H.length}}function Oie(S,p,y,C,k,I){var M=Xi(p),H=[];(C&&!k||!C&&k)&&y++;for(var W=!(C&&k),V=0;V0;)Ce(Q,C)&&y--,Q+=C;return new Ve(Q,0)}var xe=S.state.vim;if(xe.visualLine&&Ce(I,1,!0)){var ye=xe.sel.anchor;Ce(ye.line,-1,!0)&&(!k||ye.line!=I)&&(I+=1)}var Ze=se(I);for(Q=I;Q<=H&&y;Q++)Ce(Q,1,!0)&&(!k||se(Q)!=Ze)&&y--;for(V=new Ve(Q,0),Q>H&&!Ze?Ze=!0:k=!1,Q=I;Q>M&&!((!k||se(Q)==Ze||Q==I)&&Ce(Q,-1,!0));Q--);return W=new Ve(Q,0),{start:W,end:V}}function Bie(S,p,y,C){function k(W,V){if(V.pos+V.dir<0||V.pos+V.dir>=V.line.length){if(V.ln+=V.dir,!L(W,V.ln)){V.line=null,V.ln=null,V.pos=null;return}V.line=W.getLine(V.ln),V.pos=V.dir>0?0:V.line.length-1}else V.pos+=V.dir}function I(W,V,Q,se){var tt=W.getLine(V),Ce=tt==="",xe={line:tt,ln:V,pos:Q,dir:se},ye={ln:xe.ln,pos:xe.pos},Ze=xe.line==="";for(k(W,xe);xe.line!==null;){if(ye.ln=xe.ln,ye.pos=xe.pos,xe.line===""&&!Ze)return{ln:xe.ln,pos:xe.pos};if(Ce&&xe.line!==""&&!oe(xe.line[xe.pos]))return{ln:xe.ln,pos:xe.pos};te(xe.line[xe.pos])&&!Ce&&(xe.pos===xe.line.length-1||oe(xe.line[xe.pos+1]))&&(Ce=!0),k(W,xe)}var tt=W.getLine(ye.ln);ye.pos=0;for(var Ye=tt.length-1;Ye>=0;--Ye)if(!oe(tt[Ye])){ye.pos=Ye;break}return ye}function M(W,V,Q,se){var Ze=W.getLine(V),Ce={line:Ze,ln:V,pos:Q,dir:se},xe={ln:Ce.ln,pos:null},ye=Ce.line==="";for(k(W,Ce);Ce.line!==null;){if(Ce.line===""&&!ye)return xe.pos!==null?xe:{ln:Ce.ln,pos:Ce.pos};if(te(Ce.line[Ce.pos])&&xe.pos!==null&&!(Ce.ln===xe.ln&&Ce.pos+1===xe.pos))return xe;Ce.line!==""&&!oe(Ce.line[Ce.pos])&&(ye=!1,xe={ln:Ce.ln,pos:Ce.pos}),k(W,Ce)}var Ze=W.getLine(xe.ln);xe.pos=0;for(var tt=0;tt0;)C<0?H=M(S,H.ln,H.pos,C):H=I(S,H.ln,H.pos,C),y--;return new Ve(H.ln,H.pos)}function Hie(S,p,y,C){var k=p,I,M,H={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[y],W={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[y],V=S.getLine(k.line).charAt(k.ch),Q=V===W?1:0;if(I=S.scanForBracket(new Ve(k.line,k.ch+Q),-1,void 0,{bracketRegex:H}),M=S.scanForBracket(new Ve(k.line,k.ch+Q),1,void 0,{bracketRegex:H}),!I||!M)return{start:k,end:k};if(I=I.pos,M=M.pos,I.line==M.line&&I.ch>M.ch||I.line>M.line){var se=I;I=M,M=se}return C?M.ch+=1:I.ch+=1,{start:I,end:M}}function Uie(S,p,y,C){var k=Xi(p),I=S.getLine(k.line),M=I.split(""),H,W,V,Q,se=M.indexOf(y);if(k.ch-1&&!H;V--)M[V]==y&&(H=V+1);if(H&&!W)for(V=H,Q=M.length;V=p&&S<=y:S==p}function A3(S){var p=S.getScrollInfo(),y=6,C=10,k=S.coordsChar({left:0,top:y+p.top},"local"),I=p.clientHeight-C+p.top,M=S.coordsChar({left:0,top:I},"local");return{top:k.line,bottom:M.line}}function A9(S,p,y){if(y=="'"||y=="`")return X.jumpList.find(S,-1)||new Ve(0,0);if(y==".")return L9(S);var C=p.marks[y];return C&&C.find()}function L9(S){for(var p=S.doc.history.done,y=p.length;y--;)if(p[y].changes)return Xi(p[y].changes[0].to)}var D9=function(){this.buildCommandMap_()};D9.prototype={processCommand:function(p,y,C){var k=this;p.operation(function(){p.curOp.isVimOp=!0,k._processCommand(p,y,C)})},_processCommand:function(p,y,C){var k=p.state.vim,I=X.registerController.getRegister(":"),M=I.toString();k.visualMode&&Js(p);var H=new ut.default.StringStream(y);I.setText(y);var W=C||{};W.input=y;try{this.parseInput_(p,H,W)}catch(Ce){throw Hi(p,Ce.toString()),Ce}var V,Q;if(!W.commandName)W.line!==void 0&&(Q="move");else if(V=this.matchCommand_(W.commandName),V){if(Q=V.name,V.excludeFromCommandHistory&&I.setText(M),this.parseCommandArgs_(H,W,V),V.type=="exToKey"){for(var se=0;se@~])/);return k?C.commandName=k[1]:C.commandName=y.match(/.*/)[0],C},parseLineSpec_:function(p,y){var C=y.match(/^(\d+)/);if(C)return parseInt(C[1],10)-1;switch(y.next()){case".":return this.parseLineSpecOffset_(y,p.getCursor().line);case"$":return this.parseLineSpecOffset_(y,p.lastLine());case"'":var k=y.next(),I=A9(p,p.state.vim,k);if(!I)throw new Error("Mark not set");return this.parseLineSpecOffset_(y,I.line);case"-":case"+":return y.backUp(1),this.parseLineSpecOffset_(y,p.getCursor().line);default:y.backUp(1);return}},parseLineSpecOffset_:function(p,y){var C=p.match(/^([+-])?(\d+)/);if(C){var k=parseInt(C[2],10);C[1]=="-"?y-=k:y+=k}return y},parseCommandArgs_:function(p,y,C){if(!p.eol()){y.argString=p.match(/.*/)[0];var k=C.argDelimiter||/\s+/,I=_s(y.argString).split(k);I.length&&I[0]&&(y.args=I)}},matchCommand_:function(p){for(var y=p.length;y>0;y--){var C=p.substring(0,y);if(this.commandMap_[C]){var k=this.commandMap_[C];if(k.name.indexOf(p)===0)return k}}return null},buildCommandMap_:function(){this.commandMap_={};for(var p=0;p1)return"Invalid arguments";D=dn&&"decimal"||so&&"hex"||Wn&&"octal"}si[2]&&(H=new RegExp(si[2].substr(1,si[2].length-2),k?"i":""))}}var V=W();if(V){Hi(p,V+": "+y.argString);return}var Q=y.line||p.firstLine(),oe=y.lineEnd||y.line||p.lastLine();if(Q==oe)return;var Ce=new Ve(Q,0),xe=new Ve(oe,Ci(p,oe)),_e=p.getRange(Ce,xe).split(` -`),Ze=H||(D=="decimal"?/(-?)([\d]+)/:D=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:D=="octal"?/([0-7]+)/:null),tt=D=="decimal"?10:D=="hex"?16:D=="octal"?8:null,Ye=[],zt=[];if(D||H)for(var It=0;It<_e.length;It++){var At=H?_e[It].match(H):null;At&&At[0]!=""?Ye.push(At):!H&&Ze.exec(_e[It])?Ye.push(_e[It]):zt.push(_e[It])}else zt=_e;function Ui(Li,si){if(C){var dn;dn=Li,Li=si,si=dn}k&&(Li=Li.toLowerCase(),si=si.toLowerCase());var so=D&&Ze.exec(Li),Wn=D&&Ze.exec(si);return so?(so=parseInt((so[1]+so[2]).toLowerCase(),tt),Wn=parseInt((Wn[1]+Wn[2]).toLowerCase(),tt),so-Wn):Li=Q){Hi(p,"Invalid argument: "+y.argString.substring(A));return}for(var oe=0;oe<=Q-V;oe++){var Ce=String.fromCharCode(V+oe);delete C.marks[Ce]}}else{Hi(p,"Invalid argument: "+H+"-");return}}else delete C.marks[D]}}},ia=new D9;function Jie(S,p,y,C,k,A,D,H,W){S.state.vim.exMode=!0;var V=!1,Q,oe,Ce;function xe(){S.operation(function(){for(;!V;)_e(),tt();Ye()})}function _e(){var It=S.getRange(A.from(),A.to()),At=It.replace(D,H),Ui=A.to().line;A.replace(At),oe=A.to().line,k+=oe-Ui,Ce=oe1&&(F9(S,p,p.insertModeRepeat-1,!0),p.lastEditInputState.repeatOverride=p.insertModeRepeat),delete p.insertModeRepeat,p.insertMode=!1,S.setCursor(S.getCursor().line,S.getCursor().ch-1),S.setOption("keyMap","vim"),S.setOption("disableInput",!0),S.toggleOverwrite(!1),C.setText(A.changes.join("")),ut.default.signal(S,"vim-mode-change",{mode:"normal"}),y.isRecording&&rre(y),S.enterVimMode()}function N9(S){xn.unshift(S)}function ere(S,p,y,C,k){var A={keys:S,type:p};A[p]=y,A[p+"Args"]=C;for(var D in k)A[D]=k[D];N9(A)}Pe("insertModeEscKeysTimeout",200,"number"),ut.default.keyMap["vim-insert"]={fallthrough:["default"],attach:n,detach:r,call:o},ut.default.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:n,detach:r,call:o};function tre(S,p,y,C){var k=X.registerController.getRegister(C);if(C==":"){k.keyBuffer[0]&&ia.processCommand(S,k.keyBuffer[0]),y.isPlaying=!1;return}var A=k.keyBuffer,D=0;y.isPlaying=!0,y.replaySearchQueries=k.searchQueries.slice(0);for(var H=0;H|<\w+>|./.exec(W),Q=V[0],W=W.substring(V.index+Q.length),me.handleKey(S,Q,"macro"),p.insertMode){var oe=k.insertModeChanges[D++].changes;X.macroModeState.lastInsertModeChanges.changes=oe,z9(S,oe,1),km(S)}y.isPlaying=!1}function ire(S,p){if(!S.isPlaying){var y=S.latestRegister,C=X.registerController.getRegister(y);C&&C.pushText(p)}}function rre(S){if(!S.isPlaying){var p=S.latestRegister,y=X.registerController.getRegister(p);y&&y.pushInsertModeChanges&&y.pushInsertModeChanges(S.lastInsertModeChanges)}}function nre(S,p){if(!S.isPlaying){var y=S.latestRegister,C=X.registerController.getRegister(y);C&&C.pushSearchQuery&&C.pushSearchQuery(p)}}function R9(S,p){var y=X.macroModeState,C=y.lastInsertModeChanges;if(!y.isPlaying)for(;p;){if(C.expectCursorActivityForChange=!0,C.ignoreCount>1)C.ignoreCount--;else if(p.origin=="+input"||p.origin=="paste"||p.origin===void 0){var k=S.listSelections().length;k>1&&(C.ignoreCount=k);var A=p.text.join(` -`);C.maybeReset&&(C.changes=[],C.maybeReset=!1),A&&(S.state.overwrite&&!/\n/.test(A)?C.changes.push([A]):C.changes.push(A))}p=p.next}}function P9(S){var p=S.state.vim;if(p.insertMode){var y=X.macroModeState;if(y.isPlaying)return;var C=y.lastInsertModeChanges;C.expectCursorActivityForChange?C.expectCursorActivityForChange=!1:C.maybeReset=!0}else S.curOp.isVimOp||ore(S,p)}function ore(S,p){var y=S.getCursor("anchor"),C=S.getCursor("head");if(p.visualMode&&!S.somethingSelected()?Js(S,!1):!p.visualMode&&!p.insertMode&&S.somethingSelected()&&(p.visualMode=!0,p.visualLine=!1,ut.default.signal(S,"vim-mode-change",{mode:"visual"})),p.visualMode){var k=De(C,y)?0:-1,A=De(C,y)?-1:0;C=fr(C,0,k),y=fr(y,0,A),p.sel={anchor:y,head:C},sl(S,p,"<",bt(C,y)),sl(S,p,">",Vt(C,y))}else p.insertMode||(p.lastHPos=S.getCursor().ch)}function L3(S){this.keyName=S}function O9(S){var p=X.macroModeState,y=p.lastInsertModeChanges,C=ut.default.keyName(S);if(!C)return;function k(){return y.maybeReset&&(y.changes=[],y.maybeReset=!1),y.changes.push(new L3(C)),!0}(C.indexOf("Delete")!=-1||C.indexOf("Backspace")!=-1)&&ut.default.lookupKey(C,"vim-insert",k)}function F9(S,p,y,C){var k=X.macroModeState;k.isPlaying=!0;var A=!!p.lastEditActionCommand,D=p.inputState;function H(){A?Ii.processAction(S,p,p.lastEditActionCommand):Ii.evalInput(S,p)}function W(Q){if(k.lastInsertModeChanges.changes.length>0){Q=p.lastEditActionCommand?Q:1;var oe=k.lastInsertModeChanges;z9(S,oe.changes,Q)}}if(p.inputState=p.lastEditInputState,A&&p.lastEditActionCommand.interlaceInsertRepeat)for(var V=0;V{"use strict";Object.defineProperty(A4,"__esModule",{value:!0});A4.default=void 0;function w_e(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function YQ(i,e){for(var t=0;t2&&arguments[2]!==void 0?arguments[2]:null;w_e(this,i),this.closeInput=function(){r.removeInputListeners(),r.input=null,r.setSec(""),r.editor&&r.editor.focus()},this.clear=function(){r.setInnerHtml_(r.node,"")},this.inputKeyUp=function(o){var s=r.input.options;s&&s.onKeyUp&&s.onKeyUp(o,o.target.value,r.closeInput)},this.inputKeyInput=function(o){var s=r.input.options;s&&s.onKeyInput&&s.onKeyUp(o,o.target.value,r.closeInput)},this.inputBlur=function(){var o=r.input.options;o.closeOnBlur&&r.closeInput()},this.inputKeyDown=function(o){var s=r.input,a=s.options,l=s.callback;a&&a.onKeyDown&&a.onKeyDown(o,o.target.value,r.closeInput)||((o.keyCode===27||a&&a.closeOnEnter!==!1&&o.keyCode==13)&&(r.input.node.blur(),o.stopPropagation(),r.closeInput()),o.keyCode===13&&l&&(o.stopPropagation(),o.preventDefault(),l(o.target.value)))},this.node=e,this.modeInfoNode=document.createElement("span"),this.secInfoNode=document.createElement("span"),this.notifNode=document.createElement("span"),this.notifNode.className="vim-notification",this.keyInfoNode=document.createElement("span"),this.keyInfoNode.setAttribute("style","float: right"),this.node.appendChild(this.modeInfoNode),this.node.appendChild(this.secInfoNode),this.node.appendChild(this.notifNode),this.node.appendChild(this.keyInfoNode),this.toggleVisibility(!1),this.editor=t,this.sanitizer=n}return x_e(i,[{key:"setMode",value:function(t){if(t.mode==="visual"){t.subMode==="linewise"?this.setText("--VISUAL LINE--"):t.subMode==="blockwise"?this.setText("--VISUAL BLOCK--"):this.setText("--VISUAL--");return}this.setText("--".concat(t.mode.toUpperCase(),"--"))}},{key:"setKeyBuffer",value:function(t){this.keyInfoNode.textContent=t}},{key:"setSec",value:function(t,r,n){if(this.notifNode.textContent="",t===void 0)return this.closeInput;this.setInnerHtml_(this.secInfoNode,t);var o=this.secInfoNode.querySelector("input");return o&&(o.focus(),this.input={callback:r,options:n,node:o},n&&(n.selectValueOnOpen&&o.select(),n.value&&(o.value=n.value)),this.addInputListeners()),this.closeInput}},{key:"setText",value:function(t){this.modeInfoNode.textContent=t}},{key:"toggleVisibility",value:function(t){t?this.node.style.display="block":this.node.style.display="none",this.input&&this.removeInputListeners(),clearInterval(this.notifTimeout)}},{key:"addInputListeners",value:function(){var t=this.input.node;t.addEventListener("keyup",this.inputKeyUp),t.addEventListener("keydown",this.inputKeyDown),t.addEventListener("input",this.inputKeyInput),t.addEventListener("blur",this.inputBlur)}},{key:"removeInputListeners",value:function(){if(!(!this.input||!this.input.node)){var t=this.input.node;t.removeEventListener("keyup",this.inputKeyUp),t.removeEventListener("keydown",this.inputKeyDown),t.removeEventListener("input",this.inputKeyInput),t.removeEventListener("blur",this.inputBlur)}}},{key:"showNotification",value:function(t){var r=this,n=document.createElement("span");this.setInnerHtml_(n,t),this.notifNode.textContent=n.textContent,this.notifTimeout=setTimeout(function(){r.notifNode.textContent=""},5e3)}},{key:"setInnerHtml_",value:function(t,r){for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);r&&(this.sanitizer?t.appendChild(this.sanitizer(r)):t.appendChild(r))}}]),i}();A4.default=C_e});var eZ=Qi(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});Object.defineProperty(fv,"StatusBar",{enumerable:!0,get:function(){return ZQ.default}});Object.defineProperty(fv,"VimMode",{enumerable:!0,get:function(){return QQ.default}});fv.initVimMode=S_e;var QQ=JQ(GQ()),ZQ=JQ(XQ());function JQ(i){return i&&i.__esModule?i:{default:i}}function S_e(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ZQ.default,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,n=new QQ.default(i);if(!e)return n.attach(),n;var o=new t(e,i,r),s="";return n.on("vim-mode-change",function(a){o.setMode(a)}),n.on("vim-keypress",function(a){a===":"?s="":s+=a,o.setKeyBuffer(s)}),n.on("vim-command-done",function(){s="",o.setKeyBuffer(s)}),n.on("dispose",function(){o.toggleVisibility(!1),o.closeInput(),o.clear()}),o.toggleVisibility(!0),n.setStatusBar(o),n.attach(),n}});var tZ=M(()=>{Ge();te({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>import("./abap-VAQQMSMV.js")})});var iZ=M(()=>{Ge();te({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>import("./apex-UGORXUMY.js")})});var rZ=M(()=>{Ge();te({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>import("./azcli-5IGBGNJX.js")})});var nZ=M(()=>{Ge();te({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>import("./bat-I2Q2VM2E.js")})});var oZ=M(()=>{Ge();te({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>import("./bicep-6DU2S5EQ.js")})});var sZ=M(()=>{Ge();te({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>import("./cameligo-FQU2BD2Q.js")})});var aZ=M(()=>{Ge();te({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>import("./clojure-X5EURZF4.js")})});var lZ=M(()=>{Ge();te({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>import("./coffee-V3VYUJVN.js")})});var cZ=M(()=>{Ge();te({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>import("./cpp-EIUZ67SI.js")});te({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>import("./cpp-EIUZ67SI.js")})});var dZ=M(()=>{Ge();te({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>import("./csharp-6XMKEPGL.js")})});var uZ=M(()=>{Ge();te({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>import("./csp-RUXEOTA7.js")})});var hZ=M(()=>{Ge();te({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>import("./cypher-LB5ELPID.js")})});var fZ=M(()=>{Ge();te({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>import("./dart-6KXBVQQ5.js")})});var pZ=M(()=>{Ge();te({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>import("./ecl-M4POWDBD.js")})});var mZ=M(()=>{Ge();te({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>import("./flow9-CCUIXH3M.js")})});var gZ=M(()=>{Ge();te({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>import("./fsharp-VVLVFTJD.js")})});var bZ=M(()=>{Ge();te({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAutoInterpolationDollar)});te({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAngleInterpolationDollar)});te({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagBracketInterpolationDollar)});te({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAngleInterpolationBracket)});te({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagBracketInterpolationBracket)});te({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAutoInterpolationDollar)});te({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAutoInterpolationBracket)})});var vZ=M(()=>{Ge();te({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>import("./go-BSHCOGOM.js")})});var _Z=M(()=>{Ge();te({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>import("./graphql-QJYQP674.js")})});var yZ=M(()=>{Ge();te({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>import("./handlebars-VNAHN657.js")})});var wZ=M(()=>{Ge();te({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>import("./hcl-B2FOVQI3.js")})});var xZ=M(()=>{Ge();te({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>import("./ini-K4OMSQGU.js")})});var CZ=M(()=>{Ge();te({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>import("./java-M2SLT6P5.js")})});var SZ=M(()=>{Ge();te({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>import("./julia-UMW37XS3.js")})});var kZ=M(()=>{Ge();te({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>import("./kotlin-DTS7EPKW.js")})});var EZ=M(()=>{Ge();te({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>import("./less-64EWHB2U.js")})});var TZ=M(()=>{Ge();te({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>import("./lexon-VSTQQJS4.js")})});var IZ=M(()=>{Ge();te({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>import("./lua-DEBQHPWC.js")})});var AZ=M(()=>{Ge();te({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>import("./liquid-PZUYRUGD.js")})});var LZ=M(()=>{Ge();te({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>import("./m3-BVWXEQNO.js")})});var DZ=M(()=>{Ge();te({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>import("./mdx-VP3GSOCD.js")})});var MZ=M(()=>{Ge();te({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>import("./mips-PLBQC4OD.js")})});var NZ=M(()=>{Ge();te({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>import("./msdax-T7T2KNYQ.js")})});var RZ=M(()=>{Ge();te({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>import("./mysql-6SINHLS3.js")})});var PZ=M(()=>{Ge();te({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>import("./objective-c-HU5BK7KT.js")})});var OZ=M(()=>{Ge();te({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>import("./pascal-35QHNCUU.js")})});var FZ=M(()=>{Ge();te({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>import("./pascaligo-XJIGVHMA.js")})});var zZ=M(()=>{Ge();te({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>import("./perl-EJ4CU5Y5.js")})});var BZ=M(()=>{Ge();te({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>import("./pgsql-O5YVZFG3.js")})});var HZ=M(()=>{Ge();te({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>import("./php-7OX4N2D2.js")})});var UZ=M(()=>{Ge();te({id:"pla",extensions:[".pla"],loader:()=>import("./pla-XIRH422Y.js")})});var jZ=M(()=>{Ge();te({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>import("./postiats-FSD57ZTG.js")})});var WZ=M(()=>{Ge();te({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>import("./powerquery-WN3FBQ3N.js")})});var VZ=M(()=>{Ge();te({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>import("./powershell-6POP5WYL.js")})});var qZ=M(()=>{Ge();te({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>import("./protobuf-R3NYANEY.js")})});var KZ=M(()=>{Ge();te({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>import("./pug-UMENAZU6.js")})});var $Z=M(()=>{Ge();te({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>import("./python-CAXMRMZU.js")})});var GZ=M(()=>{Ge();te({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>import("./qsharp-JPLZF5CJ.js")})});var YZ=M(()=>{Ge();te({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>import("./r-V566F5LS.js")})});var XZ=M(()=>{Ge();te({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>import("./razor-VXRRUWJU.js")})});var QZ=M(()=>{Ge();te({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>import("./redis-C25WFMNL.js")})});var ZZ=M(()=>{Ge();te({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>import("./redshift-LE5NUCLH.js")})});var JZ=M(()=>{Ge();te({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>import("./restructuredtext-XX5QEZJT.js")})});var eJ=M(()=>{Ge();te({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>import("./ruby-XQPDAWDE.js")})});var tJ=M(()=>{Ge();te({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>import("./rust-TOYK7AZY.js")})});var iJ=M(()=>{Ge();te({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>import("./sb-J2JR5LHW.js")})});var rJ=M(()=>{Ge();te({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:()=>import("./scala-YUYNXHOB.js")})});var nJ=M(()=>{Ge();te({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>import("./scheme-3ZBC5PHA.js")})});var oJ=M(()=>{Ge();te({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>import("./scss-TEOGYYZ6.js")})});var sJ=M(()=>{Ge();te({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>import("./shell-BD6IL5P2.js")})});var aJ=M(()=>{Ge();te({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>import("./solidity-7YGHHWAJ.js")})});var lJ=M(()=>{Ge();te({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>import("./sophia-UUA6XVAK.js")})});var cJ=M(()=>{Ge();te({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>import("./sparql-CQTB3JIZ.js")})});var dJ=M(()=>{Ge();te({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>import("./st-EUKBJWA4.js")})});var uJ=M(()=>{Ge();te({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>import("./swift-DJAXPCZZ.js")})});var hJ=M(()=>{Ge();te({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>import("./systemverilog-VL3WHTSC.js")});te({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>import("./systemverilog-VL3WHTSC.js")})});var fJ=M(()=>{Ge();te({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>import("./tcl-HX43DWKO.js")})});var pJ=M(()=>{Ge();te({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>import("./twig-33VJJYP3.js")})});var mJ=M(()=>{Ge();te({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>import("./typescript-YY3TBR77.js")})});var gJ=M(()=>{Ge();te({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>import("./vb-7EFP77QG.js")})});var bJ=M(()=>{Ge();te({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>import("./wgsl-LFVBXOME.js")})});var vJ=M(()=>{Ge();te({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>import("./yaml-THK2ACKN.js")})});var _J=M(()=>{Ns();tZ();iZ();rZ();nZ();oZ();sZ();aZ();lZ();cZ();dZ();uZ();QM();hZ();fZ();eN();pZ();$M();mZ();gZ();bZ();vZ();_Z();yZ();wZ();ZM();xZ();CZ();YM();SZ();kZ();EZ();TZ();IZ();AZ();LZ();GM();DZ();MZ();NZ();RZ();PZ();OZ();FZ();zZ();BZ();HZ();UZ();jZ();WZ();VZ();qZ();KZ();$Z();GZ();YZ();XZ();QZ();ZZ();JZ();eJ();tJ();iJ();rJ();nJ();oJ();sJ();aJ();lJ();cJ();XM();dJ();uJ();hJ();fJ();pJ();mJ();gJ();bJ();JM();vJ();});function xN(){return import("./cssMode-3KIDE53D.js")}var k_e,E_e,T_e,I_e,yJ,A_e,mm,_N,yN,wN,wJ,xJ,CJ,SJ=M(()=>{Ns();Ns();k_e=Object.defineProperty,E_e=Object.getOwnPropertyDescriptor,T_e=Object.getOwnPropertyNames,I_e=Object.prototype.hasOwnProperty,yJ=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of T_e(e))!I_e.call(i,n)&&n!==t&&k_e(i,n,{get:()=>e[n],enumerable:!(r=E_e(e,n))||r.enumerable});return i},A_e=(i,e,t)=>(yJ(i,e,"default"),t&&yJ(t,e,"default")),mm={};A_e(mm,Ms);_N=class{constructor(i,e,t){xr(this,"_onDidChange",new mm.Emitter);xr(this,"_options");xr(this,"_modeConfiguration");xr(this,"_languageId");this._languageId=i,this.setOptions(e),this.setModeConfiguration(t)}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(i){this._options=i||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(i){this.setOptions(i)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},yN={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}},wN={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},wJ=new _N("css",yN,wN),xJ=new _N("scss",yN,wN),CJ=new _N("less",yN,wN);mm.languages.css={cssDefaults:wJ,lessDefaults:CJ,scssDefaults:xJ};mm.languages.onLanguage("less",()=>{xN().then(i=>i.setupMode(CJ))});mm.languages.onLanguage("scss",()=>{xN().then(i=>i.setupMode(xJ))});mm.languages.onLanguage("css",()=>{xN().then(i=>i.setupMode(wJ))})});function M4(i){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:i===pv,documentFormattingEdits:i===pv,documentRangeFormattingEdits:i===pv}}function H_e(){return import("./htmlMode-EEO2WQ3S.js")}function N4(i,e=D4,t=M4(i)){let r=new P_e(i,e,t),n,o=L4.languages.onLanguage(i,async()=>{n=(await H_e()).setupMode(r)});return{defaults:r,dispose(){o.dispose(),n==null||n.dispose(),n=void 0}}}var L_e,D_e,M_e,N_e,kJ,R_e,L4,P_e,O_e,D4,pv,EJ,TJ,IJ,F_e,AJ,z_e,LJ,B_e,DJ=M(()=>{Ns();Ns();L_e=Object.defineProperty,D_e=Object.getOwnPropertyDescriptor,M_e=Object.getOwnPropertyNames,N_e=Object.prototype.hasOwnProperty,kJ=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of M_e(e))!N_e.call(i,n)&&n!==t&&L_e(i,n,{get:()=>e[n],enumerable:!(r=D_e(e,n))||r.enumerable});return i},R_e=(i,e,t)=>(kJ(i,e,"default"),t&&kJ(t,e,"default")),L4={};R_e(L4,Ms);P_e=class{constructor(i,e,t){xr(this,"_onDidChange",new L4.Emitter);xr(this,"_options");xr(this,"_modeConfiguration");xr(this,"_languageId");this._languageId=i,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(i){this._options=i||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},O_e={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"},D4={format:O_e,suggest:{},data:{useDefaultDataProvider:!0}};pv="html",EJ="handlebars",TJ="razor",IJ=N4(pv,D4,M4(pv)),F_e=IJ.defaults,AJ=N4(EJ,D4,M4(EJ)),z_e=AJ.defaults,LJ=N4(TJ,D4,M4(TJ)),B_e=LJ.defaults;L4.languages.html={htmlDefaults:F_e,razorDefaults:B_e,handlebarDefaults:z_e,htmlLanguageService:IJ,handlebarLanguageService:AJ,razorLanguageService:LJ,registerHTMLLanguageService:N4}});var U_e,CN,j_e,Uh,SN,kN=M(()=>{ca();dne();Xo();Hr();ke();Pt();j_();U_e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},CN=function(i,e){return function(t,r){e(t,r,i)}},j_e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Uh=class{constructor(e,t){this._editorWorkerClient=new yz(e,!1,"editorWorkerService",t)}provideDocumentColors(e,t){return j_e(this,void 0,void 0,function*(){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)})}provideColorPresentations(e,t,r){let n=t.range,o=t.color,s=o.alpha,a=new vt(new Ts(Math.round(255*o.red),Math.round(255*o.green),Math.round(255*o.blue),s)),l=s?vt.Format.CSS.formatRGB(a):vt.Format.CSS.formatRGBA(a),c=s?vt.Format.CSS.formatHSL(a):vt.Format.CSS.formatHSLA(a),d=s?vt.Format.CSS.formatHex(a):vt.Format.CSS.formatHexA(a),u=[];return u.push({label:l,textEdit:{range:n,text:l}}),u.push({label:c,textEdit:{range:n,text:c}}),u.push({label:d,textEdit:{range:n,text:d}}),u}},SN=class extends ce{constructor(e,t,r){super(),this._register(r.colorProvider.register("*",new Uh(e,t)))}};SN=U_e([CN(0,Di),CN(1,Ot),CN(2,Se)],SN);Yc(SN)});function R4(i,e,t,r=!0){return mv(this,void 0,void 0,function*(){return LN(new EN,i,e,t,r)})}function AN(i,e,t,r){return Promise.resolve(t.provideColorPresentations(i,e,r))}function LN(i,e,t,r,n){return mv(this,void 0,void 0,function*(){let o=!1,s,a=[],l=e.ordered(t);for(let c=l.length-1;c>=0;c--){let d=l[c];if(d instanceof Uh)s=d;else try{(yield i.compute(d,t,r,a))&&(o=!0)}catch(u){Xt(u)}}return o?a:s&&n?(yield i.compute(s,t,r,a),a):[]})}function MJ(i,e){let{colorProvider:t}=i.get(Se),r=i.get(Di).getModel(e);if(!r)throw ko();let n=i.get(Mt).getValue("editor.defaultColorDecorators",{resource:e});return{model:r,colorProviderRegistry:t,isDefaultColorDecoratorsEnabled:n}}var mv,EN,TN,IN,DN=M(()=>{ki();qt();Ir();et();Xo();Vi();Pt();kN();Sr();mv=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};EN=class{constructor(){}compute(e,t,r,n){return mv(this,void 0,void 0,function*(){let o=yield e.provideDocumentColors(t,r);if(Array.isArray(o))for(let s of o)n.push({colorInfo:s,provider:e});return Array.isArray(o)})}},TN=class{constructor(){}compute(e,t,r,n){return mv(this,void 0,void 0,function*(){let o=yield e.provideDocumentColors(t,r);if(Array.isArray(o))for(let s of o)n.push({range:s.range,color:[s.color.red,s.color.green,s.color.blue,s.color.alpha]});return Array.isArray(o)})}},IN=class{constructor(e){this.colorInfo=e}compute(e,t,r,n){return mv(this,void 0,void 0,function*(){let o=yield e.provideColorPresentations(t,this.colorInfo,st.None);return Array.isArray(o)&&n.push(...o),Array.isArray(o)})}};Dt.registerCommand("_executeDocumentColorProvider",function(i,...e){let[t]=e;if(!(t instanceof yt))throw ko();let{model:r,colorProviderRegistry:n,isDefaultColorDecoratorsEnabled:o}=MJ(i,t);return LN(new TN,n,r,st.None,o)});Dt.registerCommand("_executeColorPresentationProvider",function(i,...e){let[t,r]=e,{uri:n,range:o}=r;if(!(n instanceof yt)||!Array.isArray(t)||t.length!==4||!B.isIRange(o))throw ko();let{model:s,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:l}=MJ(i,n),[c,d,u,h]=t;return LN(new IN({range:o,color:{red:c,green:d,blue:u,alpha:h}}),a,s,st.None,l)})});var W_e,MN,NJ,NN,PN,_c,RN,ON=M(()=>{jt();ca();qt();ei();ke();al();Ni();JF();lt();et();Ur();Ds();Pt();DN();Sr();W_e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},MN=function(i,e){return function(t,r){e(t,r,i)}},NJ=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},PN=Object.create({}),_c=NN=class extends ce{constructor(e,t,r,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=r,this._localToDispose=this._register(new ae),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new ty(this._editor),this._decoratorLimitReporter=new RN,this._colorDecorationClassRefs=this._register(new ae),this._debounceInformation=n.for(r.colorProvider,"Document Colors",{min:NN.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()})),this._register(e.onDidChangeModelLanguage(()=>this.updateColors())),this._register(r.colorProvider.onDidChange(()=>this.updateColors())),this._register(e.onDidChangeConfiguration(o=>{let s=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(144);let a=s!==this._isColorDecoratorsEnabled||o.hasChanged(20),l=o.hasChanged(144);(a||l)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(144),this.updateColors()}isEnabled(){let e=this._editor.getModel();if(!e)return!1;let t=e.getLanguageId(),r=this._configurationService.getValue(t);if(r&&typeof r=="object"){let n=r.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(19)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;let e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new aa,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){return NJ(this,void 0,void 0,function*(){this._computePromise=Jt(e=>NJ(this,void 0,void 0,function*(){let t=this._editor.getModel();if(!t)return[];let r=new mr(!1),n=yield R4(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,r.elapsed()),n}));try{let e=yield this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){ft(e)}})}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){let t=e.map(r=>({range:{startLineNumber:r.colorInfo.range.startLineNumber,startColumn:r.colorInfo.range.startColumn,endLineNumber:r.colorInfo.range.endLineNumber,endColumn:r.colorInfo.range.endColumn},options:mt.EMPTY}));this._editor.changeDecorations(r=>{this._decorationsIds=r.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,o)=>this._colorDatas.set(n,e[o]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();let t=[],r=this._editor.getOption(20);for(let o=0;othis._colorDatas.has(n.id));return r.length===0?null:this._colorDatas.get(r[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};_c.ID="editor.contrib.colorDetector";_c.RECOMPUTE_TIME=1e3;_c=NN=W_e([MN(1,Mt),MN(2,Se),MN(3,lr)],_c);RN=class{constructor(){this._onDidChange=new Je,this._computed=0,this._limited=!1}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}};Ue(_c.ID,_c,1)});var P4,RJ=M(()=>{ei();P4=class{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,r){this.presentationIndex=r,this._onColorFlushed=new Je,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new Je,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new Je,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 r=-1;for(let n=0;n{});var O4=M(()=>{PJ()});var Co,FN,zN,BN,HN,F4,UN,jN,WN,z4,OJ=M(()=>{K9();Ht();zre();M_();Zr();ca();ei();ke();An();O4();He();tn();Sl();Co=Ae,FN=class extends ce{constructor(e,t,r,n=!1){super(),this.model=t,this.showingStandaloneColorPicker=n,this._closeButton=null,this._domNode=Co(".colorpicker-header"),Te(e,this._domNode),this._pickedColorNode=Te(this._domNode,Co(".picked-color")),Te(this._pickedColorNode,Co("span.codicon.codicon-color-mode")),this._pickedColorPresentation=Te(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");let o=b("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",o),this._originalColorNode=Te(this._domNode,Co(".original-color")),this._originalColorNode.style.backgroundColor=vt.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=r.getColorTheme().getColor(ik)||vt.white,this._register(r.onDidColorThemeChange(s=>{this.backgroundColor=s.getColor(ik)||vt.white})),this._register(Lt(this._pickedColorNode,bi.CLICK,()=>this.model.selectNextColorPresentation())),this._register(Lt(this._originalColorNode,bi.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=vt.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 zN(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=vt.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:""}},zN=class extends ce{constructor(e){super(),this._onClicked=this._register(new Je),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),Te(e,this._button);let t=document.createElement("div");t.classList.add("close-button-inner-div"),Te(this._button,t),Te(t,Co(".button"+_t.asCSSSelector(Pi("color-picker-close",pt.close,b("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._button.onclick=()=>{this._onClicked.fire()}}},BN=class extends ce{constructor(e,t,r,n=!1){super(),this.model=t,this.pixelRatio=r,this._insertButton=null,this._domNode=Co(".colorpicker-body"),Te(e,this._domNode),this._saturationBox=new HN(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 UN(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 jN(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 WN(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){let r=this.model.color.hsva;this.model.color=new vt(new Hm(r.h,e,t,r.a))}onDidOpacityChange(e){let t=this.model.color.hsva;this.model.color=new vt(new Hm(t.h,t.s,t.v,e))}onDidHueChange(e){let t=this.model.color.hsva,r=(1-e)*360;this.model.color=new vt(new Hm(r===360?0:r,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()}},HN=class extends ce{constructor(e,t,r){super(),this.model=t,this.pixelRatio=r,this._onDidChange=new Je,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new Je,this.onColorFlushed=this._onColorFlushed.event,this._domNode=Co(".saturation-wrap"),Te(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",Te(this._domNode,this._canvas),this.selection=Co(".saturation-selection"),Te(this._domNode,this.selection),this.layout(),this._register(Lt(this._domNode,bi.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 dk);let t=Zi(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);let r=Lt(document,bi.POINTER_UP,()=>{this._onColorFlushed.fire(),r.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){let r=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(r,n),this._onDidChange.fire({s:r,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();let e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){let e=this.model.color.hsva,t=new vt(new Hm(e.h,1,1,1)),r=this._canvas.getContext("2d"),n=r.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)");let o=r.createLinearGradient(0,0,0,this._canvas.height);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(1,"rgba(0, 0, 0, 1)"),r.rect(0,0,this._canvas.width,this._canvas.height),r.fillStyle=vt.Format.CSS.format(t),r.fill(),r.fillStyle=n,r.fill(),r.fillStyle=o,r.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();let t=e.hsva;this.paintSelection(t.s,t.v)}},F4=class extends ce{constructor(e,t,r=!1){super(),this.model=t,this._onDidChange=new Je,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new Je,this.onColorFlushed=this._onColorFlushed.event,r?(this.domNode=Te(e,Co(".standalone-strip")),this.overlay=Te(this.domNode,Co(".standalone-overlay"))):(this.domNode=Te(e,Co(".strip")),this.overlay=Te(this.domNode,Co(".overlay"))),this.slider=Te(this.domNode,Co(".slider")),this.slider.style.top="0px",this._register(Lt(this.domNode,bi.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;let e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){let t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._register(new dk),r=Zi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,o=>this.onDidChangeTop(o.pageY-r.top),()=>null);let n=Lt(document,bi.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){let 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`}},UN=class extends F4{constructor(e,t,r=!1){super(e,t,r),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);let{r:t,g:r,b:n}=e.rgba,o=new vt(new Ts(t,r,n,1)),s=new vt(new Ts(t,r,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${o} 0%, ${s} 100%)`}getValue(e){return e.hsva.a}},jN=class extends F4{constructor(e,t,r=!1){super(e,t,r),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}},WN=class extends ce{constructor(e){super(),this._onClicked=this._register(new Je),this.onClicked=this._onClicked.event,this._button=Te(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._button.onclick=t=>{this._onClicked.fire()}}get button(){return this._button}},z4=class extends _l{constructor(e,t,r,n,o=!1){super(),this.model=t,this.pixelRatio=r,this._register(V9.onDidChange(()=>this.layout()));let s=Co(".colorpicker-widget");e.appendChild(s),this.header=this._register(new FN(s,this.model,n,o)),this.body=this._register(new BN(s,this.model,this.pixelRatio,o))}layout(){this.body.layout()}}});function BJ(i,e,t,r){return gm(this,void 0,void 0,function*(){let n=e.getValueInRange(t.range),{red:o,green:s,blue:a,alpha:l}=t.color,c=new Ts(Math.round(o*255),Math.round(s*255),Math.round(a*255),l),d=new vt(c),u=yield AN(e,t,r,st.None),h=new P4(d,[],0);return h.colorPresentations=u||[],h.guessColorPresentation(d,n),i instanceof gv?new VN(i,B.lift(t.range),h,r):new qN(i,B.lift(t.range),h,r)})}function HJ(i,e,t,r,n){if(r.length===0||!e.hasModel())return ce.None;if(n.setMinimumDimensions){let h=e.getOption(65)+8;n.setMinimumDimensions(new Qt(302,h))}let o=new ae,s=r[0],a=e.getModel(),l=s.model,c=o.add(new z4(n.fragment,l,e.getOption(140),t,i instanceof bm));n.setColorPicker(c);let d=!1,u=new B(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn);if(i instanceof bm){let h=r[0].model.color;i.color=h,B4(a,l,h,u,s),o.add(l.onColorFlushed(f=>{i.color=f}))}else o.add(l.onColorFlushed(h=>gm(this,void 0,void 0,function*(){yield B4(a,l,h,u,s),d=!0,u=UJ(e,u,l,n)})));return o.add(l.onDidChangeColor(h=>{B4(a,l,h,u,s)})),o.add(e.onDidChangeModelContent(h=>{d?d=!1:(n.hide(),e.focus())})),o}function UJ(i,e,t,r){let n,o;if(t.presentation.textEdit){n=[t.presentation.textEdit],o=new B(t.presentation.textEdit.range.startLineNumber,t.presentation.textEdit.range.startColumn,t.presentation.textEdit.range.endLineNumber,t.presentation.textEdit.range.endColumn);let s=i.getModel()._setTrackedRange(null,o,3);i.pushUndoStop(),i.executeEdits("colorpicker",n),o=i.getModel()._getTrackedRange(s)||o}else n=[{range:e,text:t.presentation.label,forceMoveMarkers:!1}],o=e.setEndPosition(e.endLineNumber,e.startColumn+t.presentation.label.length),i.pushUndoStop(),i.executeEdits("colorpicker",n);return t.presentation.additionalTextEdits&&(n=[...t.presentation.additionalTextEdits],i.executeEdits("colorpicker",n),r&&r.hide()),i.pushUndoStop(),o}function B4(i,e,t,r,n){return gm(this,void 0,void 0,function*(){let o=yield AN(i,{range:r,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=o||[]})}var FJ,zJ,gm,VN,gv,qN,bm,KN=M(()=>{jt();ki();ca();ke();et();DN();ON();RJ();OJ();rn();Ht();FJ=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},zJ=function(i,e){return function(t,r){e(t,r,i)}},gm=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},VN=class{constructor(e,t,r,n){this.owner=e,this.range=t,this.model=r,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},gv=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,r){return Mn.fromPromise(this._computeAsync(e,t,r))}_computeAsync(e,t,r){return gm(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];let n=_c.get(this._editor);if(!n)return[];for(let o of t){if(!n.isColorDecoration(o))continue;let s=n.getColorData(o.range.getStartPosition());if(s)return[yield BJ(this,this._editor.getModel(),s.colorInfo,s.provider)]}return[]})}renderHoverParts(e,t){return HJ(this,this._editor,this._themeService,t,e)}};gv=FJ([zJ(1,br)],gv);qN=class{constructor(e,t,r,n){this.owner=e,this.range=t,this.model=r,this.provider=n}},bm=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}createColorHover(e,t,r){return gm(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!_c.get(this._editor))return null;let o=yield R4(r,this._editor.getModel(),st.None),s=null,a=null;for(let u of o){let h=u.colorInfo;B.containsRange(h.range,e.range)&&(s=h,a=u.provider)}let l=s!=null?s:e,c=a!=null?a:t,d=!!s;return{colorHover:yield BJ(this,this._editor.getModel(),l,c),foundInEditor:d}})}updateEditorModel(e){return gm(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;let t=e.model,r=new B(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(yield B4(this._editor.getModel(),t,this._color,r,e),r=UJ(this._editor,r,t))})}renderHoverParts(e,t){return HJ(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};bm=FJ([zJ(1,br)],bm)});var bv,jJ=M(()=>{ke();lt();et();ON();KN();iS();rc();bv=class extends ce{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){let t=this._editor.getOption(145);if(t!=="click"&&t!=="clickAndHover")return;let r=e.target;if(r.type!==6||!r.detail.injectedText||r.detail.injectedText.options.attachedData!==PN||!r.range)return;let n=this._editor.getContribution(yn.ID);if(n&&!n.isColorPickerVisible){let o=new B(r.range.startLineNumber,r.range.startColumn+1,r.range.endLineNumber,r.range.endColumn+1);n.showContentHover(o,1,0,!1,!0)}}};bv.ID="editor.contrib.colorContribution";Ue(bv.ID,bv,2);Uo.register(gv)});var qJ,Qs,WJ,$N,GN,yc,VJ,V_e,H4,YN,KJ=M(()=>{ke();KN();Ut();s8();jr();ei();Pt();lt();ti();wt();Xo();Hr();kN();Ht();O4();qJ=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Qs=function(i,e){return function(t,r){e(t,r,i)}},WJ=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},yc=$N=class extends ce{constructor(e,t,r,n,o,s,a){super(),this._editor=e,this._modelService=r,this._keybindingService=n,this._instantiationService=o,this._languageFeatureService=s,this._languageConfigurationService=a,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=O.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=O.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 H4(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($N.ID)}};yc.ID="editor.contrib.standaloneColorPickerController";yc=$N=qJ([Qs(1,it),Qs(2,Di),Qs(3,Kt),Qs(4,Ke),Qs(5,Se),Qs(6,Ot)],yc);Ue(yc.ID,yc,1);VJ=8,V_e=22,H4=GN=class extends ce{constructor(e,t,r,n,o,s,a,l){var c;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=r,this._modelService=o,this._keybindingService=s,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 Je),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=n.createInstance(bm,this._editor),this._position=(c=this._editor._getViewModel())===null||c===void 0?void 0:c.getPrimaryCursorState().modelState.position;let d=this._editor.getSelection(),u=d?{startLineNumber:d.startLineNumber,startColumn:d.startColumn,endLineNumber:d.endLineNumber,endColumn:d.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},h=this._register(xs(this._body));this._register(h.onDidBlur(f=>{this.hide()})),this._register(h.onDidFocus(f=>{this.focus()})),this._register(this._editor.onDidChangeCursorPosition(()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()})),this._register(this._editor.onMouseMove(f=>{var m;let g=(m=f.target.element)===null||m===void 0?void 0:m.classList;g&&g.contains("colorpicker-color-decoration")&&this.hide()})),this._register(this.onResult(f=>{this._render(f.value,f.foundInEditor)})),this._start(u),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return GN.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;let e=this._editor.getOption(59).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()}_start(e){return WJ(this,void 0,void 0,function*(){let t=yield this._computeAsync(e);t&&this._onResult.fire(new YN(t.result,t.foundInEditor))})}_computeAsync(e){return WJ(this,void 0,void 0,function*(){if(!this._editor.hasModel())return null;let t={range:e,color:{red:0,green:0,blue:0,alpha:1}},r=yield this._standaloneColorPickerParticipant.createColorHover(t,new Uh(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return r?{result:r.colorHover,foundInEditor:r.foundInEditor}:null})}_render(e,t){let r=document.createDocumentFragment(),n=this._register(new a1(this._keybindingService)),o,s={fragment:r,statusBar:n,setColorPicker:g=>o=g,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=e,this._register(this._standaloneColorPickerParticipant.renderHoverParts(s,[e])),o===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(r),o.layout();let a=o.body,l=a.saturationBox.domNode.clientWidth,c=a.domNode.clientWidth-l-V_e-VJ,d=o.body.enterButton;d==null||d.onClicked(()=>{this.updateEditor(),this.hide()});let u=o.header,h=u.pickedColorNode;h.style.width=l+VJ+"px";let f=u.originalColorNode;f.style.width=c+"px";let m=o.header.closeButton;m==null||m.onClicked(()=>{this.hide()}),t&&(d&&(d.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};H4.ID="editor.contrib.standaloneColorPickerWidget";H4=GN=qJ([Qs(3,Ke),Qs(4,Di),Qs(5,Kt),Qs(6,Se),Qs(7,Ot)],H4);YN=class{constructor(e,t){this.value=e,this.foundInEditor=t}}});var XN,QN,ZN,$J=M(()=>{lt();He();KJ();ti();Ji();O4();XN=class extends oa{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{value:b("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:b({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker"),original:"Show or Focus Standalone Color Picker"},precondition:void 0,menu:[{id:Me.CommandPalette}]})}runEditorCommand(e,t){var r;(r=yc.get(t))===null||r===void 0||r.showOrFocus()}},QN=class extends de{constructor(){super({id:"editor.action.hideColorPicker",label:b({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:O.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100}})}run(e,t){var r;(r=yc.get(t))===null||r===void 0||r.hide()}},ZN=class extends de{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:b({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:O.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100}})}run(e,t){var r;(r=yc.get(t))===null||r===void 0||r.insertColor()}};ee(QN);ee(ZN);Si(XN)});function GJ(i,e){var t;return!!(!((t=i.pasteMimeTypes)===null||t===void 0)&&t.some(r=>e.matches(r)))}var q_e,vm,wc,eR,tR,iR,JN,tu,YJ=M(()=>{Ht();mi();jt();j0();ke();Y3();Tn();H0();JO();CI();tg();et();Pt();EI();yu();K0();He();Zm();wt();Ut();$c();wl();II();q_e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},vm=function(i,e){return function(t,r){e(t,r,i)}},wc=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},tR="editor.changePasteType",iR=new ht("pasteWidgetVisible",!1,b("pasteWidgetVisible","Whether the paste widget is showing")),JN="application/vnd.code.copyMetadata",tu=eR=class extends ce{static get(e){return e.getContribution(eR.ID)}constructor(e,t,r,n,o,s,a){super(),this._bulkEditService=r,this._clipboardService=n,this._languageFeaturesService=o,this._quickInputService=s,this._progressService=a,this._editor=e;let l=e.getContainerDomNode();this._register(Lt(l,"copy",c=>this.handleCopy(c))),this._register(Lt(l,"cut",c=>this.handleCopy(c))),this._register(Lt(l,"paste",c=>this.handlePaste(c),!0)),this._pasteProgressManager=this._register(new up("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(hp,"pasteIntoEditor",e,iR,{id:tR,label:b("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferredId:e},document.execCommand("paste")}finally{this._pasteAsActionContext=void 0}}isPasteAsEnabled(){return this._editor.getOption(83).enabled&&!this._editor.getOption(89)}handleCopy(e){var t,r;if(!this._editor.hasTextFocus()||(Uv&&this._clipboardService.writeResources([]),!e.clipboardData||!this.isPasteAsEnabled()))return;let n=this._editor.getModel(),o=this._editor.getSelections();if(!n||!(o!=null&&o.length))return;let s=this._editor.getOption(36),a=o,l=o.length===1&&o[0].isEmpty();if(l){if(!s)return;a=[new B(a[0].startLineNumber,1,a[0].startLineNumber,1+n.getLineLength(a[0].startLineNumber))]}let c=(t=this._editor._getViewModel())===null||t===void 0?void 0:t.getPlainTextToCopy(o,s,Rc),u={multicursorText:Array.isArray(c)?c:null,pasteOnNewLine:l,mode:null},h=this._languageFeaturesService.documentPasteEditProvider.ordered(n).filter(_=>!!_.prepareDocumentPaste);if(!h.length){this.setCopyMetadata(e.clipboardData,{defaultPastePayload:u});return}let f=xI(e.clipboardData),m=h.flatMap(_=>{var E;return(E=_.copyMimeTypes)!==null&&E!==void 0?E:[]}),g=Td();this.setCopyMetadata(e.clipboardData,{id:g,providerCopyMimeTypes:m,defaultPastePayload:u});let w=Jt(_=>wc(this,void 0,void 0,function*(){let E=hn(yield Promise.all(h.map(I=>wc(this,void 0,void 0,function*(){try{return yield I.prepareDocumentPaste(n,a,f,_)}catch(N){console.error(N);return}}))));E.reverse();for(let I of E)for(let[N,U]of I)f.replace(N,U);return f}));(r=this._currentCopyOperation)===null||r===void 0||r.dataTransferPromise.cancel(),this._currentCopyOperation={handle:g,dataTransferPromise:w}}handlePaste(e){var t,r;return wc(this,void 0,void 0,function*(){if(!e.clipboardData||!this._editor.hasTextFocus())return;(t=this._currentPasteOperation)===null||t===void 0||t.cancel(),this._currentPasteOperation=void 0;let n=this._editor.getModel(),o=this._editor.getSelections();if(!(o!=null&&o.length)||!n||!this.isPasteAsEnabled())return;let s=this.fetchCopyMetadata(e),a=i2(e.clipboardData);a.delete(JN);let l=[...e.clipboardData.types,...(r=s==null?void 0:s.providerCopyMimeTypes)!==null&&r!==void 0?r:[],gr.uriList],c=this._languageFeaturesService.documentPasteEditProvider.ordered(n).filter(d=>{var u;return(u=d.pasteMimeTypes)===null||u===void 0?void 0:u.some(h=>Xx(h,l))});c.length&&(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferredId,c,o,a,s):this.doPasteInline(c,o,a,s))})}doPasteInline(e,t,r,n){let o=Jt(s=>wc(this,void 0,void 0,function*(){let a=this._editor;if(!a.hasModel())return;let l=a.getModel(),c=new ga(a,3,void 0,s);try{if(yield this.mergeInDataFromCopy(r,n,c.token),c.token.isCancellationRequested)return;let d=e.filter(h=>GJ(h,r));if(!d.length||d.length===1&&d[0].id==="text"){yield this.applyDefaultPasteHandler(r,n,c.token);return}let u=yield this.getPasteEdits(d,r,l,t,c.token);if(c.token.isCancellationRequested)return;if(u.length===1&&u[0].providerId==="text"){yield this.applyDefaultPasteHandler(r,n,c.token);return}if(u.length){let h=a.getOption(83).showPasteSelector==="afterPaste";return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:u},h,c.token)}yield this.applyDefaultPasteHandler(r,n,c.token)}finally{c.dispose(),this._currentPasteOperation===o&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),b("pasteIntoEditorProgress","Running paste handlers. Click to cancel"),o),this._currentPasteOperation=o}showPasteAsPick(e,t,r,n,o){let s=Jt(a=>wc(this,void 0,void 0,function*(){let l=this._editor;if(!l.hasModel())return;let c=l.getModel(),d=new ga(l,3,void 0,a);try{if(yield this.mergeInDataFromCopy(n,o,d.token),d.token.isCancellationRequested)return;let u=t.filter(g=>GJ(g,n));e&&(u=u.filter(g=>g.id===e));let h=yield this.getPasteEdits(u,n,c,r,d.token);if(d.token.isCancellationRequested||!h.length)return;let f;if(e)f=h.at(0);else{let g=yield this._quickInputService.pick(h.map(w=>({label:w.label,description:w.providerId,detail:w.detail,edit:w})),{placeHolder:b("pasteAsPickerPlaceholder","Select Paste Action")});f=g==null?void 0:g.edit}if(!f)return;let m=uK(c.uri,r,f);yield this._bulkEditService.apply(m,{editor:this._editor})}finally{d.dispose(),this._currentPasteOperation===s&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:b("pasteAsProgress","Running paste handlers")},()=>s)}setCopyMetadata(e,t){e.setData(JN,JSON.stringify(t))}fetchCopyMetadata(e){var t;if(!e.clipboardData)return;let r=e.clipboardData.getData(JN);if(r)try{return JSON.parse(r)}catch(s){return}let[n,o]=ZO.getTextData(e.clipboardData);if(o)return{defaultPastePayload:{mode:o.mode,multicursorText:(t=o.multicursorText)!==null&&t!==void 0?t:null,pasteOnNewLine:!!o.isFromEmptySelection}}}mergeInDataFromCopy(e,t,r){var n;return wc(this,void 0,void 0,function*(){if(t!=null&&t.id&&((n=this._currentCopyOperation)===null||n===void 0?void 0:n.handle)===t.id){let o=yield this._currentCopyOperation.dataTransferPromise;if(r.isCancellationRequested)return;for(let[s,a]of o)e.replace(s,a)}if(!e.has(gr.uriList)){let o=yield this._clipboardService.readResources();if(r.isCancellationRequested)return;o.length&&e.append(gr.uriList,U0(eh.create(o)))}})}getPasteEdits(e,t,r,n,o){return wc(this,void 0,void 0,function*(){let s=yield Vc(Promise.all(e.map(l=>wc(this,void 0,void 0,function*(){var c;try{let d=yield(c=l.provideDocumentPasteEdits)===null||c===void 0?void 0:c.call(l,r,n,t,o);if(d)return Object.assign(Object.assign({},d),{providerId:l.id})}catch(d){console.error(d)}}))),o),a=hn(s!=null?s:[]);return o2(a),a})}applyDefaultPasteHandler(e,t,r){var n,o,s;return wc(this,void 0,void 0,function*(){let a=(n=e.get(gr.text))!==null&&n!==void 0?n:e.get("text");if(!a)return;let l=yield a.asString();if(r.isCancellationRequested)return;let c={text:l,pasteOnNewLine:(o=t==null?void 0:t.defaultPastePayload.pasteOnNewLine)!==null&&o!==void 0?o:!1,multicursorText:(s=t==null?void 0:t.defaultPastePayload.multicursorText)!==null&&s!==void 0?s:null,mode:null};this._editor.trigger("keyboard","paste",c)})}};tu.ID="editor.contrib.copyPasteActionController";tu=eR=q_e([vm(1,Ke),vm(2,Kc),vm(3,As),vm(4,Se),vm(5,nn),vm(6,rF)],tu)});var XJ=M(()=>{lt();j_();YJ();vI();He();Ue(tu.ID,tu,0);Yc(t2);We(new class extends Fi{constructor(){super({id:tR,precondition:iR,kbOpts:{weight:100,primary:2137}})}runEditorCommand(i,e,t){var r;return(r=tu.get(e))===null||r===void 0?void 0:r.changePasteType()}});ee(class extends de{constructor(){super({id:"editor.action.pasteAs",label:b("pasteAs","Paste As..."),alias:"Paste As...",precondition:void 0,description:{description:"Paste as",args:[{name:"args",schema:{type:"object",properties:{id:{type:"string",description:b("pasteAs.id","The id of the paste edit to try applying. If not provided, the editor will show a picker.")}}}}]}})}run(i,e,t){var r;let n=typeof(t==null?void 0:t.id)=="string"?t.id:void 0;return(r=tu.get(e))===null||r===void 0?void 0:r.pasteAs(n)}})});var QJ=Qi(rR=>{ki();zr();Ir();ra();R1();Vi();var K_e=rR&&rR.__awaiter||function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};Dt.registerCommand("_executeDocumentSymbolProvider",function(i,...e){return K_e(this,void 0,void 0,function*(){let[t]=e;Bt(yt.isUri(t));let r=i.get(Lh),o=yield i.get(Cr).createModelReference(t);try{return(yield r.getOrCreate(o.object.textEditorModel,st.None)).getTopLevelSymbols()}finally{o.dispose()}})})});var nR,ZJ=M(()=>{al();lt();He();nR=class extends de{constructor(){super({id:"editor.action.forceRetokenize",label:b("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;let r=t.getModel();r.tokenization.resetTokenization();let n=new mr;r.tokenization.forceTokenization(r.getLineCount()),n.stop(),console.log(`tokenization took ${n.elapsed()}`)}};ee(nR)});var U4,JJ=M(()=>{Io();Jre();He();Ji();wt();U4=class i extends Jo{constructor(){super({id:i.ID,title:{value:b({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),original:"Toggle Tab Key Moves Focus"},precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},f1:!0})}run(e){let t=e.get(it).getContextKeyValue("focusedView")==="terminal"?"terminalFocus":"editorFocus",n=!Sk.getTabFocusMode(t);Sk.setTabFocusMode(n,t),n?ar(b("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):ar(b("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}};U4.ID="editor.action.toggleTabFocusMode";Si(U4)});var Rkt,Pkt,Vkt,eee=M(()=>{s_();iz();une();cne();gT();wT();ST();ET();LT();XT();iI();jJ();$J();lI();uI();pI();mI();XJ();NI();y2();hb();TA();Rkt=Vn(DA()),Pkt=Vn(QJ());CL();K0();e1();BC();qC();iS();L8();z8();Vkt=Vn(U8());W8();c7();f7();v7();_7();O7();V7();Y7();sD();aD();hD();kp();SD();oC();AD();ZJ();JJ();BD();HD();GD();i4();SM();kM();xu();D0()});var tee=M(()=>{});var iee=M(()=>{tee()});var vv,j4,ree=M(()=>{iee();Ht();ke();lt();Tn();vv=class extends ce{constructor(e){super(),this.editor=e,this.widget=null,Lm&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){let e=!this.editor.getOption(89);!this.widget&&e?this.widget=new j4(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}};vv.ID="editor.contrib.iPadShowKeyboard";j4=class i extends ce{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(Lt(this._domNode,"touchstart",t=>{this.editor.focus()})),this._register(Lt(this._domNode,"focus",t=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return i.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}};j4.ID="editor.contrib.ShowKeyboardWidget";Ue(vv.ID,vv,3)});var oR,nee=M(()=>{lt();gz();xu();ok();hne();oR=class extends de{constructor(){super({id:"editor.action.toggleHighContrast",label:_z.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){let r=e.get(oy),n=r.getColorTheme();_u(n.type)?(r.setTheme(this._originalThemeName||(nk(n.type)?xz:wz)),this._originalThemeName=null):(r.setTheme(nk(n.type)?Cz:Sz),this._originalThemeName=n.themeName)}};ee(oR)});var DEt,oee=M(()=>{eee();ree();DEt=Vn(IM());AM();DM();FM();jM();VM();nee();Ns()});var _v={};Xh(_v,{CancellationTokenSource:()=>fne,Emitter:()=>pne,KeyCode:()=>mne,KeyMod:()=>gne,MarkerSeverity:()=>wne,MarkerTag:()=>xne,Position:()=>bne,Range:()=>vne,Selection:()=>_ne,SelectionDirection:()=>yne,Token:()=>Sne,Uri:()=>Cne,editor:()=>Cu,languages:()=>Ca});var yv=M(()=>{_J();SJ();DJ();qM();kne();oee()});var dee=Qi((KEt,cee)=>{var lee="Expected a function",see=NaN,$_e="[object Symbol]",G_e=/^\s+|\s+$/g,Y_e=/^[-+]0x[0-9a-f]+$/i,X_e=/^0b[01]+$/i,Q_e=/^0o[0-7]+$/i,Z_e=parseInt,J_e=typeof global=="object"&&global&&global.Object===Object&&global,eye=typeof self=="object"&&self&&self.Object===Object&&self,tye=J_e||eye||Function("return this")(),iye=Object.prototype,rye=iye.toString,nye=Math.max,oye=Math.min,sR=function(){return tye.Date.now()};function sye(i,e,t){var r,n,o,s,a,l,c=0,d=!1,u=!1,h=!0;if(typeof i!="function")throw new TypeError(lee);e=aee(e)||0,W4(t)&&(d=!!t.leading,u="maxWait"in t,o=u?nye(aee(t.maxWait)||0,e):o,h="trailing"in t?!!t.trailing:h);function f(z){var Y=r,le=n;return r=n=void 0,c=z,s=i.apply(le,Y),s}function m(z){return c=z,a=setTimeout(_,e),d?f(z):s}function g(z){var Y=z-l,le=z-c,re=e-Y;return u?oye(re,o-le):re}function w(z){var Y=z-l,le=z-c;return l===void 0||Y>=e||Y<0||u&&le>=o}function _(){var z=sR();if(w(z))return E(z);a=setTimeout(_,g(z))}function E(z){return a=void 0,h&&r?f(z):(r=n=void 0,s)}function I(){a!==void 0&&clearTimeout(a),c=0,r=l=n=a=void 0}function N(){return a===void 0?s:E(sR())}function U(){var z=sR(),Y=w(z);if(r=arguments,n=this,l=z,Y){if(a===void 0)return m(l);if(u)return a=setTimeout(_,e),f(l)}return a===void 0&&(a=setTimeout(_,e)),s}return U.cancel=I,U.flush=N,U}function aye(i,e,t){var r=!0,n=!0;if(typeof i!="function")throw new TypeError(lee);return W4(t)&&(r="leading"in t?!!t.leading:r,n="trailing"in t?!!t.trailing:n),sye(i,e,{leading:r,maxWait:e,trailing:n})}function W4(i){var e=typeof i;return!!i&&(e=="object"||e=="function")}function lye(i){return!!i&&typeof i=="object"}function cye(i){return typeof i=="symbol"||lye(i)&&rye.call(i)==$_e}function aee(i){if(typeof i=="number")return i;if(cye(i))return see;if(W4(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=W4(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=i.replace(G_e,"");var t=X_e.test(i);return t||Q_e.test(i)?Z_e(i.slice(2),t?2:8):Y_e.test(i)?see:+i}cee.exports=aye});var Nee=Qi(($Et,Mee)=>{var dye=1/0,uye="[object Symbol]",hye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vee="\\ud800-\\udfff",pye="\\u0300-\\u036f\\ufe20-\\ufe23",mye="\\u20d0-\\u20f0",_ee="\\u2700-\\u27bf",yee="a-z\\xdf-\\xf6\\xf8-\\xff",gye="\\xac\\xb1\\xd7\\xf7",bye="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vye="\\u2000-\\u206f",_ye=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wee="A-Z\\xc0-\\xd6\\xd8-\\xde",yye="\\ufe0e\\ufe0f",xee=gye+bye+vye+_ye,aR="['\u2019]",uee="["+xee+"]",Cee="["+pye+mye+"]",See="\\d+",wye="["+_ee+"]",kee="["+yee+"]",Eee="[^"+vee+xee+See+_ee+yee+wee+"]",xye="\\ud83c[\\udffb-\\udfff]",Cye="(?:"+Cee+"|"+xye+")",Sye="[^"+vee+"]",Tee="(?:\\ud83c[\\udde6-\\uddff]){2}",Iee="[\\ud800-\\udbff][\\udc00-\\udfff]",_m="["+wee+"]",kye="\\u200d",hee="(?:"+kee+"|"+Eee+")",Eye="(?:"+_m+"|"+Eee+")",fee="(?:"+aR+"(?:d|ll|m|re|s|t|ve))?",pee="(?:"+aR+"(?:D|LL|M|RE|S|T|VE))?",Aee=Cye+"?",Lee="["+yye+"]?",Tye="(?:"+kye+"(?:"+[Sye,Tee,Iee].join("|")+")"+Lee+Aee+")*",Iye=Lee+Aee+Tye,Aye="(?:"+[wye,Tee,Iee].join("|")+")"+Iye,Lye=RegExp(aR,"g"),Dye=RegExp(Cee,"g"),Mye=RegExp([_m+"?"+kee+"+"+fee+"(?="+[uee,_m,"$"].join("|")+")",Eye+"+"+pee+"(?="+[uee,_m+hee,"$"].join("|")+")",_m+"?"+hee+"+"+fee,_m+"+"+pee,See,Aye].join("|"),"g"),Nye=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rye={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},Pye=typeof global=="object"&&global&&global.Object===Object&&global,Oye=typeof self=="object"&&self&&self.Object===Object&&self,Fye=Pye||Oye||Function("return this")();function zye(i,e,t,r){var n=-1,o=i?i.length:0;for(r&&o&&(t=i[++n]);++n{"use strict";var fi=qe&&qe.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(qe,"__esModule",{value:!0});qe.DeleteLines=qe.SearchReplace=qe.Search=qe.InvertSelection=qe.GotoLine=qe.RotateCursorOnScreen=qe.InsertTabs=qe.RevealToBottomAction=qe.RevealToCenterAction=qe.RevealToTopAction=qe.RevealEditorAction=qe.YankRotate=qe.YankSelectionToRing=qe.Yank=qe.RedoAction=qe.UndoAction=qe.KeyBoardQuit=qe.MoveCursorTop=qe.MoveCursorBottom=qe.MoveCursorWordLeft=qe.MoveCursorWordRight=qe.MoveCursorToLineStart=qe.MoveCursorToLineEnd=qe.MoveCursorRight=qe.MoveCursorLeft=qe.MoveCursorDown=qe.MoveCursorUp=qe.SetMark=qe.InsertLineAfter=qe.InsertLineBelow=qe.KillLines=qe.KillSelection=qe.BaseAction=qe.SOURCE=void 0;var wr=(yv(),Qh(_v));qe.SOURCE="extension.emacs";function Jye(i,e,t,r,n){n===void 0&&(n=1);for(var o="cursor".concat(r==="word"?"Word":"").concat(t).concat(e?"Select":""),s=0;su?u:a.lineNumber+n;l=new wr.Position(h,s.getLineLength(h)+1)}var f=wr.Range.fromPositions(a,l);o?r.state.growRingTop(s.getValueInRange(f)):r.state.addToRing(s.getValueInRange(f)),t.executeEdits(qe.SOURCE,[{range:f,text:""}]),t.setSelection(wr.Selection.fromPositions(a,a))},e}(Yr);qe.KillLines=twe;var iwe=function(i){fi(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,r,n,o){var s=t.getPosition();t.trigger(qe.SOURCE,"editor.action.insertLineAfter",null),t.setPosition(s)},e}(Yr);qe.InsertLineBelow=iwe;var rwe=function(i){fi(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,r,n,o){for(var s="",a=0;ac&&(a=c):a=1;var d=new wr.Position(a,1),u;if(!r.selectionMode)u=wr.Selection.fromPositions(d);else{var h=t.getSelection();h.getDirection()===wr.SelectionDirection.LTR?u=wr.Selection.fromPositions(h.getStartPosition(),d):u=wr.Selection.fromPositions(h.getEndPosition(),d)}t.setSelection(u),t.revealRangeInCenter(u)}).catch(function(){t.focus()})},e}(Yr);qe.GotoLine=Swe;var kwe=function(i){fi(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,r,n,o){var s=t.getSelection();if(!s.isEmpty()){var a;s.getDirection()===wr.SelectionDirection.LTR?a=wr.Selection.fromPositions(s.getEndPosition(),s.getStartPosition()):a=wr.Selection.fromPositions(s.getStartPosition(),s.getEndPosition()),t.setSelection(a)}},e}(Yr);qe.InvertSelection=kwe;var Ewe=function(i){fi(e,i);function e(){return i.call(this,"editor.actions.findWithArgs")||this}return e}(Ree);qe.Search=Ewe;var Twe=function(i){fi(e,i);function e(){return i.call(this,"editor.action.startFindReplaceAction")||this}return e}(Ree);qe.SearchReplace=Twe;var Iwe=function(i){fi(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,r,n,o){r.selectionMode=!1;for(var s=0;s{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.getAllMappings=Xr.unregisterKey=Xr.registerGlobalCommand=Xr.executeCommand=Xr.COMMANDS=Xr.prefixPreservingKeys=void 0;var wi=lR();Xr.prefixPreservingKeys={"M-g":!0,"C-x":!0,"C-q":!0,"C-u":!0};var zee=new wi.SetMark,q4=new wi.UndoAction,Awe=new wi.MoveCursorDown,Lwe=new wi.MoveCursorUp,Dwe=new wi.MoveCursorRight,Mwe=new wi.MoveCursorLeft;Xr.COMMANDS={"M-/":{description:"",action:"editor.action.triggerSuggest"},"C-'":{description:"",action:"editor.action.triggerSuggest"},"M-;":{description:"",action:"editor.action.commentLine"},"C-t":{description:"",action:"editor.action.transposeLetters"},"C-x C-p":{description:"",action:"editor.action.selectAll"},Tab:{description:"",action:"editor.action.formatDocument"},"C-Backspace":{description:"",action:"deleteWordLeft"},"C-d":{description:"",action:"deleteRight"},"M-Backspace":{description:"",action:"deleteWordLeft"},"M-Delete":{description:"",action:"deleteWordLeft"},"C-x C-u":{description:"",action:"editor.action.transformToUppercase"},"C-x C-l":{description:"",action:"editor.action.transformToLowercase"},"C-v":{description:"",action:"cursorPageDown"},PageDown:{description:"",action:"cursorPageDown"},"M-v":{description:"",action:"cursorPageUp"},PageUp:{description:"",action:"cursorPageUp"},"M-g n":{description:"",action:"editor.action.marker.next"},"M-g p":{description:"",action:"editor.action.marker.prev"},"M-C-n":{description:"",action:"editor.action.addSelectionToNextFindMatch"},"C-h":{description:"",action:"deleteLeft"},"M-d":{description:"",action:"deleteWordRight"},"S-C-":{description:"",action:"editor.action.triggerParameterHints"},"C-SPC":zee,"S-C-2":zee,"C-/":q4,"S-C--":q4,"C-z":q4,"C-x u":q4,"C-n":Awe,"C-p":Lwe,"C-f":Dwe,"C-b":Mwe,"S-C-Backspace":new wi.DeleteLines,"M-f":new wi.MoveCursorWordRight,"M-b":new wi.MoveCursorWordLeft,"C-k":new wi.KillLines,"C-m":new wi.InsertLineAfter,"C-w":new wi.KillSelection,"C-o":new wi.InsertLineBelow,"C-g":new wi.KeyBoardQuit,"C-e":new wi.MoveCursorToLineEnd,"C-a":new wi.MoveCursorToLineStart,"C-y":new wi.Yank,"M-w":new wi.YankSelectionToRing,"M-y":new wi.YankRotate,"C-l":new wi.RevealToCenterAction,"C-q Tab":new wi.InsertTabs,"M-r":new wi.RotateCursorOnScreen,"M-g g":new wi.GotoLine,"M-g M-g":new wi.GotoLine,"C-x C-x":new wi.InvertSelection,"S-M-.":new wi.MoveCursorBottom,"S-M-,":new wi.MoveCursorTop,"C-s":new wi.Search,"C-r":new wi.Search,"S-M-5":new wi.SearchReplace};function Nwe(i,e,t,r){var n=i.getEditor(),o=parseInt(t)||1;if(e.run){e.run(n,i,o,r);return}if(typeof e.action=="string")for(var s=0;s{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.Emitter=Un.Event=Un.monacoToEmacsKey=Un.modifierKeys=void 0;var Fwe=(yv(),Qh(_v));Un.modifierKeys={Alt:"M",Control:"C",Ctrl:"C",Meta:"CMD",Shift:"S"};var Bee={Enter:"Return",Space:"SPC",Backslash:"\\",Slash:"/",Backquote:"`",BracketRight:"]",BracketLeft:"[",Comma:",",Period:".",Equal:"=",Minus:"-",Quote:"'",Semicolon:";"},zwe=["Key","Numpad"],Hee="Arrow";function Bwe(i){var e=Fwe.KeyCode[i.keyCode];if(Un.modifierKeys[e])return"";var t=zwe.some(function(r){return e.startsWith(r)})?e[e.length-1]:e;return e.endsWith(Hee)?t=e.substring(0,e.length-Hee.length):Bee[e]&&(t=Bee[t]),t.length===1&&(t=t.toLowerCase()),i.altKey&&(t="".concat(Un.modifierKeys.Alt,"-").concat(t)),i.ctrlKey&&(t="".concat(Un.modifierKeys.Ctrl,"-").concat(t)),i.metaKey&&(t="".concat(Un.modifierKeys.Meta,"-").concat(t)),i.shiftKey&&(t="".concat(Un.modifierKeys.Shift,"-").concat(t)),t}Un.monacoToEmacsKey=Bwe;var Hwe;(function(i){var e={dispose:function(){}};i.None=function(){return e}})(Hwe=Un.Event||(Un.Event={}));var Uwe=function(){function i(){this._listeners=[]}return Object.defineProperty(i.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t){e._listeners.push(t);var r={dispose:function(){if(!e._disposed){var n=e._listeners.indexOf(t);n<0||e._listeners.splice(n,1)}}};return r}),this._event},enumerable:!1,configurable:!0}),i.prototype.fire=function(e){this._listeners.length&&this._listeners.forEach(function(t){return t(e)})},i.prototype.dispose=function(){this._disposed||(this._listeners=void 0,this._disposed=!0)},i}();Un.Emitter=Uwe});var jee=Qi($4=>{"use strict";Object.defineProperty($4,"__esModule",{value:!0});$4.BasicInputWidget=void 0;var jwe=(yv(),Qh(_v)),Ko="ext-emacs-basic-input";function Wwe(){return` +`;if(C){var M;C=C.join("");for(var W=0;W1)return"Invalid arguments";M=dn&&"decimal"||so&&"hex"||Wn&&"octal"}si[2]&&(H=new RegExp(si[2].substr(1,si[2].length-2),k?"i":""))}}var V=W();if(V){Hi(p,V+": "+y.argString);return}var Q=y.line||p.firstLine(),se=y.lineEnd||y.line||p.lastLine();if(Q==se)return;var Ce=new Ve(Q,0),xe=new Ve(se,Ci(p,se)),ye=p.getRange(Ce,xe).split(` +`),Ze=H||(M=="decimal"?/(-?)([\d]+)/:M=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:M=="octal"?/([0-7]+)/:null),tt=M=="decimal"?10:M=="hex"?16:M=="octal"?8:null,Ye=[],zt=[];if(M||H)for(var It=0;It=Q){Hi(p,"Invalid argument: "+y.argString.substring(I));return}for(var se=0;se<=Q-V;se++){var Ce=String.fromCharCode(V+se);delete C.marks[Ce]}}else{Hi(p,"Invalid argument: "+H+"-");return}}else delete C.marks[M]}}},ia=new D9;function Jie(S,p,y,C,k,I,M,H,W){S.state.vim.exMode=!0;var V=!1,Q,se,Ce;function xe(){S.operation(function(){for(;!V;)ye(),tt();Ye()})}function ye(){var It=S.getRange(I.from(),I.to()),At=It.replace(M,H),Ui=I.to().line;I.replace(At),se=I.to().line,k+=se-Ui,Ce=se1&&(F9(S,p,p.insertModeRepeat-1,!0),p.lastEditInputState.repeatOverride=p.insertModeRepeat),delete p.insertModeRepeat,p.insertMode=!1,S.setCursor(S.getCursor().line,S.getCursor().ch-1),S.setOption("keyMap","vim"),S.setOption("disableInput",!0),S.toggleOverwrite(!1),C.setText(I.changes.join("")),ut.default.signal(S,"vim-mode-change",{mode:"normal"}),y.isRecording&&rre(y),S.enterVimMode()}function N9(S){xn.unshift(S)}function ere(S,p,y,C,k){var I={keys:S,type:p};I[p]=y,I[p+"Args"]=C;for(var M in k)I[M]=k[M];N9(I)}Pe("insertModeEscKeysTimeout",200,"number"),ut.default.keyMap["vim-insert"]={fallthrough:["default"],attach:n,detach:r,call:o},ut.default.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:n,detach:r,call:o};function tre(S,p,y,C){var k=X.registerController.getRegister(C);if(C==":"){k.keyBuffer[0]&&ia.processCommand(S,k.keyBuffer[0]),y.isPlaying=!1;return}var I=k.keyBuffer,M=0;y.isPlaying=!0,y.replaySearchQueries=k.searchQueries.slice(0);for(var H=0;H|<\w+>|./.exec(W),Q=V[0],W=W.substring(V.index+Q.length),me.handleKey(S,Q,"macro"),p.insertMode){var se=k.insertModeChanges[M++].changes;X.macroModeState.lastInsertModeChanges.changes=se,z9(S,se,1),km(S)}y.isPlaying=!1}function ire(S,p){if(!S.isPlaying){var y=S.latestRegister,C=X.registerController.getRegister(y);C&&C.pushText(p)}}function rre(S){if(!S.isPlaying){var p=S.latestRegister,y=X.registerController.getRegister(p);y&&y.pushInsertModeChanges&&y.pushInsertModeChanges(S.lastInsertModeChanges)}}function nre(S,p){if(!S.isPlaying){var y=S.latestRegister,C=X.registerController.getRegister(y);C&&C.pushSearchQuery&&C.pushSearchQuery(p)}}function R9(S,p){var y=X.macroModeState,C=y.lastInsertModeChanges;if(!y.isPlaying)for(;p;){if(C.expectCursorActivityForChange=!0,C.ignoreCount>1)C.ignoreCount--;else if(p.origin=="+input"||p.origin=="paste"||p.origin===void 0){var k=S.listSelections().length;k>1&&(C.ignoreCount=k);var I=p.text.join(` +`);C.maybeReset&&(C.changes=[],C.maybeReset=!1),I&&(S.state.overwrite&&!/\n/.test(I)?C.changes.push([I]):C.changes.push(I))}p=p.next}}function P9(S){var p=S.state.vim;if(p.insertMode){var y=X.macroModeState;if(y.isPlaying)return;var C=y.lastInsertModeChanges;C.expectCursorActivityForChange?C.expectCursorActivityForChange=!1:C.maybeReset=!0}else S.curOp.isVimOp||ore(S,p)}function ore(S,p){var y=S.getCursor("anchor"),C=S.getCursor("head");if(p.visualMode&&!S.somethingSelected()?Js(S,!1):!p.visualMode&&!p.insertMode&&S.somethingSelected()&&(p.visualMode=!0,p.visualLine=!1,ut.default.signal(S,"vim-mode-change",{mode:"visual"})),p.visualMode){var k=De(C,y)?0:-1,I=De(C,y)?-1:0;C=fr(C,0,k),y=fr(y,0,I),p.sel={anchor:y,head:C},sl(S,p,"<",bt(C,y)),sl(S,p,">",Vt(C,y))}else p.insertMode||(p.lastHPos=S.getCursor().ch)}function L3(S){this.keyName=S}function O9(S){var p=X.macroModeState,y=p.lastInsertModeChanges,C=ut.default.keyName(S);if(!C)return;function k(){return y.maybeReset&&(y.changes=[],y.maybeReset=!1),y.changes.push(new L3(C)),!0}(C.indexOf("Delete")!=-1||C.indexOf("Backspace")!=-1)&&ut.default.lookupKey(C,"vim-insert",k)}function F9(S,p,y,C){var k=X.macroModeState;k.isPlaying=!0;var I=!!p.lastEditActionCommand,M=p.inputState;function H(){I?Ii.processAction(S,p,p.lastEditActionCommand):Ii.evalInput(S,p)}function W(Q){if(k.lastInsertModeChanges.changes.length>0){Q=p.lastEditActionCommand?Q:1;var se=k.lastInsertModeChanges;z9(S,se.changes,Q)}}if(p.inputState=p.lastEditInputState,I&&p.lastEditActionCommand.interlaceInsertRepeat)for(var V=0;V{"use strict";Object.defineProperty(A4,"__esModule",{value:!0});A4.default=void 0;function w_e(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function YQ(i,e){for(var t=0;t2&&arguments[2]!==void 0?arguments[2]:null;w_e(this,i),this.closeInput=function(){r.removeInputListeners(),r.input=null,r.setSec(""),r.editor&&r.editor.focus()},this.clear=function(){r.setInnerHtml_(r.node,"")},this.inputKeyUp=function(o){var s=r.input.options;s&&s.onKeyUp&&s.onKeyUp(o,o.target.value,r.closeInput)},this.inputKeyInput=function(o){var s=r.input.options;s&&s.onKeyInput&&s.onKeyUp(o,o.target.value,r.closeInput)},this.inputBlur=function(){var o=r.input.options;o.closeOnBlur&&r.closeInput()},this.inputKeyDown=function(o){var s=r.input,a=s.options,l=s.callback;a&&a.onKeyDown&&a.onKeyDown(o,o.target.value,r.closeInput)||((o.keyCode===27||a&&a.closeOnEnter!==!1&&o.keyCode==13)&&(r.input.node.blur(),o.stopPropagation(),r.closeInput()),o.keyCode===13&&l&&(o.stopPropagation(),o.preventDefault(),l(o.target.value)))},this.node=e,this.modeInfoNode=document.createElement("span"),this.secInfoNode=document.createElement("span"),this.notifNode=document.createElement("span"),this.notifNode.className="vim-notification",this.keyInfoNode=document.createElement("span"),this.keyInfoNode.setAttribute("style","float: right"),this.node.appendChild(this.modeInfoNode),this.node.appendChild(this.secInfoNode),this.node.appendChild(this.notifNode),this.node.appendChild(this.keyInfoNode),this.toggleVisibility(!1),this.editor=t,this.sanitizer=n}return x_e(i,[{key:"setMode",value:function(t){if(t.mode==="visual"){t.subMode==="linewise"?this.setText("--VISUAL LINE--"):t.subMode==="blockwise"?this.setText("--VISUAL BLOCK--"):this.setText("--VISUAL--");return}this.setText("--".concat(t.mode.toUpperCase(),"--"))}},{key:"setKeyBuffer",value:function(t){this.keyInfoNode.textContent=t}},{key:"setSec",value:function(t,r,n){if(this.notifNode.textContent="",t===void 0)return this.closeInput;this.setInnerHtml_(this.secInfoNode,t);var o=this.secInfoNode.querySelector("input");return o&&(o.focus(),this.input={callback:r,options:n,node:o},n&&(n.selectValueOnOpen&&o.select(),n.value&&(o.value=n.value)),this.addInputListeners()),this.closeInput}},{key:"setText",value:function(t){this.modeInfoNode.textContent=t}},{key:"toggleVisibility",value:function(t){t?this.node.style.display="block":this.node.style.display="none",this.input&&this.removeInputListeners(),clearInterval(this.notifTimeout)}},{key:"addInputListeners",value:function(){var t=this.input.node;t.addEventListener("keyup",this.inputKeyUp),t.addEventListener("keydown",this.inputKeyDown),t.addEventListener("input",this.inputKeyInput),t.addEventListener("blur",this.inputBlur)}},{key:"removeInputListeners",value:function(){if(!(!this.input||!this.input.node)){var t=this.input.node;t.removeEventListener("keyup",this.inputKeyUp),t.removeEventListener("keydown",this.inputKeyDown),t.removeEventListener("input",this.inputKeyInput),t.removeEventListener("blur",this.inputBlur)}}},{key:"showNotification",value:function(t){var r=this,n=document.createElement("span");this.setInnerHtml_(n,t),this.notifNode.textContent=n.textContent,this.notifTimeout=setTimeout(function(){r.notifNode.textContent=""},5e3)}},{key:"setInnerHtml_",value:function(t,r){for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);r&&(this.sanitizer?t.appendChild(this.sanitizer(r)):t.appendChild(r))}}]),i}();A4.default=C_e});var eZ=Qi(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});Object.defineProperty(fv,"StatusBar",{enumerable:!0,get:function(){return ZQ.default}});Object.defineProperty(fv,"VimMode",{enumerable:!0,get:function(){return QQ.default}});fv.initVimMode=S_e;var QQ=JQ(GQ()),ZQ=JQ(XQ());function JQ(i){return i&&i.__esModule?i:{default:i}}function S_e(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ZQ.default,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,n=new QQ.default(i);if(!e)return n.attach(),n;var o=new t(e,i,r),s="";return n.on("vim-mode-change",function(a){o.setMode(a)}),n.on("vim-keypress",function(a){a===":"?s="":s+=a,o.setKeyBuffer(s)}),n.on("vim-command-done",function(){s="",o.setKeyBuffer(s)}),n.on("dispose",function(){o.toggleVisibility(!1),o.closeInput(),o.clear()}),o.toggleVisibility(!0),n.setStatusBar(o),n.attach(),n}});var tZ=N(()=>{Ge();ie({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>import("./abap-VAQQMSMV.js")})});var iZ=N(()=>{Ge();ie({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>import("./apex-UGORXUMY.js")})});var rZ=N(()=>{Ge();ie({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>import("./azcli-5IGBGNJX.js")})});var nZ=N(()=>{Ge();ie({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>import("./bat-I2Q2VM2E.js")})});var oZ=N(()=>{Ge();ie({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>import("./bicep-6DU2S5EQ.js")})});var sZ=N(()=>{Ge();ie({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>import("./cameligo-FQU2BD2Q.js")})});var aZ=N(()=>{Ge();ie({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>import("./clojure-X5EURZF4.js")})});var lZ=N(()=>{Ge();ie({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>import("./coffee-V3VYUJVN.js")})});var cZ=N(()=>{Ge();ie({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>import("./cpp-EIUZ67SI.js")});ie({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>import("./cpp-EIUZ67SI.js")})});var dZ=N(()=>{Ge();ie({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>import("./csharp-6XMKEPGL.js")})});var uZ=N(()=>{Ge();ie({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>import("./csp-RUXEOTA7.js")})});var hZ=N(()=>{Ge();ie({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>import("./cypher-LB5ELPID.js")})});var fZ=N(()=>{Ge();ie({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>import("./dart-6KXBVQQ5.js")})});var pZ=N(()=>{Ge();ie({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>import("./ecl-M4POWDBD.js")})});var mZ=N(()=>{Ge();ie({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>import("./flow9-CCUIXH3M.js")})});var gZ=N(()=>{Ge();ie({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>import("./fsharp-VVLVFTJD.js")})});var bZ=N(()=>{Ge();ie({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAutoInterpolationDollar)});ie({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAngleInterpolationDollar)});ie({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagBracketInterpolationDollar)});ie({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAngleInterpolationBracket)});ie({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagBracketInterpolationBracket)});ie({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAutoInterpolationDollar)});ie({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAutoInterpolationBracket)})});var vZ=N(()=>{Ge();ie({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>import("./go-BSHCOGOM.js")})});var _Z=N(()=>{Ge();ie({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>import("./graphql-QJYQP674.js")})});var yZ=N(()=>{Ge();ie({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>import("./handlebars-VNAHN657.js")})});var wZ=N(()=>{Ge();ie({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>import("./hcl-B2FOVQI3.js")})});var xZ=N(()=>{Ge();ie({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>import("./ini-K4OMSQGU.js")})});var CZ=N(()=>{Ge();ie({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>import("./java-M2SLT6P5.js")})});var SZ=N(()=>{Ge();ie({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>import("./julia-UMW37XS3.js")})});var kZ=N(()=>{Ge();ie({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>import("./kotlin-DTS7EPKW.js")})});var EZ=N(()=>{Ge();ie({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>import("./less-64EWHB2U.js")})});var TZ=N(()=>{Ge();ie({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>import("./lexon-VSTQQJS4.js")})});var IZ=N(()=>{Ge();ie({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>import("./lua-DEBQHPWC.js")})});var AZ=N(()=>{Ge();ie({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>import("./liquid-PZUYRUGD.js")})});var LZ=N(()=>{Ge();ie({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>import("./m3-BVWXEQNO.js")})});var DZ=N(()=>{Ge();ie({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>import("./mdx-VP3GSOCD.js")})});var MZ=N(()=>{Ge();ie({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>import("./mips-PLBQC4OD.js")})});var NZ=N(()=>{Ge();ie({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>import("./msdax-T7T2KNYQ.js")})});var RZ=N(()=>{Ge();ie({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>import("./mysql-6SINHLS3.js")})});var PZ=N(()=>{Ge();ie({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>import("./objective-c-HU5BK7KT.js")})});var OZ=N(()=>{Ge();ie({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>import("./pascal-35QHNCUU.js")})});var FZ=N(()=>{Ge();ie({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>import("./pascaligo-XJIGVHMA.js")})});var zZ=N(()=>{Ge();ie({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>import("./perl-EJ4CU5Y5.js")})});var BZ=N(()=>{Ge();ie({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>import("./pgsql-O5YVZFG3.js")})});var HZ=N(()=>{Ge();ie({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>import("./php-7OX4N2D2.js")})});var UZ=N(()=>{Ge();ie({id:"pla",extensions:[".pla"],loader:()=>import("./pla-XIRH422Y.js")})});var jZ=N(()=>{Ge();ie({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>import("./postiats-FSD57ZTG.js")})});var WZ=N(()=>{Ge();ie({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>import("./powerquery-WN3FBQ3N.js")})});var VZ=N(()=>{Ge();ie({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>import("./powershell-6POP5WYL.js")})});var qZ=N(()=>{Ge();ie({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>import("./protobuf-R3NYANEY.js")})});var KZ=N(()=>{Ge();ie({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>import("./pug-UMENAZU6.js")})});var $Z=N(()=>{Ge();ie({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>import("./python-CAXMRMZU.js")})});var GZ=N(()=>{Ge();ie({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>import("./qsharp-JPLZF5CJ.js")})});var YZ=N(()=>{Ge();ie({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>import("./r-V566F5LS.js")})});var XZ=N(()=>{Ge();ie({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>import("./razor-VXRRUWJU.js")})});var QZ=N(()=>{Ge();ie({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>import("./redis-C25WFMNL.js")})});var ZZ=N(()=>{Ge();ie({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>import("./redshift-LE5NUCLH.js")})});var JZ=N(()=>{Ge();ie({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>import("./restructuredtext-XX5QEZJT.js")})});var eJ=N(()=>{Ge();ie({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>import("./ruby-XQPDAWDE.js")})});var tJ=N(()=>{Ge();ie({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>import("./rust-TOYK7AZY.js")})});var iJ=N(()=>{Ge();ie({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>import("./sb-J2JR5LHW.js")})});var rJ=N(()=>{Ge();ie({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:()=>import("./scala-YUYNXHOB.js")})});var nJ=N(()=>{Ge();ie({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>import("./scheme-3ZBC5PHA.js")})});var oJ=N(()=>{Ge();ie({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>import("./scss-TEOGYYZ6.js")})});var sJ=N(()=>{Ge();ie({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>import("./shell-BD6IL5P2.js")})});var aJ=N(()=>{Ge();ie({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>import("./solidity-7YGHHWAJ.js")})});var lJ=N(()=>{Ge();ie({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>import("./sophia-UUA6XVAK.js")})});var cJ=N(()=>{Ge();ie({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>import("./sparql-CQTB3JIZ.js")})});var dJ=N(()=>{Ge();ie({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>import("./st-EUKBJWA4.js")})});var uJ=N(()=>{Ge();ie({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>import("./swift-DJAXPCZZ.js")})});var hJ=N(()=>{Ge();ie({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>import("./systemverilog-VL3WHTSC.js")});ie({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>import("./systemverilog-VL3WHTSC.js")})});var fJ=N(()=>{Ge();ie({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>import("./tcl-HX43DWKO.js")})});var pJ=N(()=>{Ge();ie({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>import("./twig-33VJJYP3.js")})});var mJ=N(()=>{Ge();ie({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>import("./typescript-YY3TBR77.js")})});var gJ=N(()=>{Ge();ie({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>import("./vb-7EFP77QG.js")})});var bJ=N(()=>{Ge();ie({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>import("./wgsl-LFVBXOME.js")})});var vJ=N(()=>{Ge();ie({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>import("./yaml-THK2ACKN.js")})});var _J=N(()=>{Ns();tZ();iZ();rZ();nZ();oZ();sZ();aZ();lZ();cZ();dZ();uZ();QM();hZ();fZ();eN();pZ();$M();mZ();gZ();bZ();vZ();_Z();yZ();wZ();ZM();xZ();CZ();YM();SZ();kZ();EZ();TZ();IZ();AZ();LZ();GM();DZ();MZ();NZ();RZ();PZ();OZ();FZ();zZ();BZ();HZ();UZ();jZ();WZ();VZ();qZ();KZ();$Z();GZ();YZ();XZ();QZ();ZZ();JZ();eJ();tJ();iJ();rJ();nJ();oJ();sJ();aJ();lJ();cJ();XM();dJ();uJ();hJ();fJ();pJ();mJ();gJ();bJ();JM();vJ();});function xN(){return import("./cssMode-3KIDE53D.js")}var k_e,E_e,T_e,I_e,yJ,A_e,mm,_N,yN,wN,wJ,xJ,CJ,SJ=N(()=>{Ns();Ns();k_e=Object.defineProperty,E_e=Object.getOwnPropertyDescriptor,T_e=Object.getOwnPropertyNames,I_e=Object.prototype.hasOwnProperty,yJ=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of T_e(e))!I_e.call(i,n)&&n!==t&&k_e(i,n,{get:()=>e[n],enumerable:!(r=E_e(e,n))||r.enumerable});return i},A_e=(i,e,t)=>(yJ(i,e,"default"),t&&yJ(t,e,"default")),mm={};A_e(mm,Ms);_N=class{constructor(i,e,t){xr(this,"_onDidChange",new mm.Emitter);xr(this,"_options");xr(this,"_modeConfiguration");xr(this,"_languageId");this._languageId=i,this.setOptions(e),this.setModeConfiguration(t)}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(i){this._options=i||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(i){this.setOptions(i)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},yN={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}},wN={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},wJ=new _N("css",yN,wN),xJ=new _N("scss",yN,wN),CJ=new _N("less",yN,wN);mm.languages.css={cssDefaults:wJ,lessDefaults:CJ,scssDefaults:xJ};mm.languages.onLanguage("less",()=>{xN().then(i=>i.setupMode(CJ))});mm.languages.onLanguage("scss",()=>{xN().then(i=>i.setupMode(xJ))});mm.languages.onLanguage("css",()=>{xN().then(i=>i.setupMode(wJ))})});function M4(i){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:i===pv,documentFormattingEdits:i===pv,documentRangeFormattingEdits:i===pv}}function H_e(){return import("./htmlMode-EEO2WQ3S.js")}function N4(i,e=D4,t=M4(i)){let r=new P_e(i,e,t),n,o=L4.languages.onLanguage(i,async()=>{n=(await H_e()).setupMode(r)});return{defaults:r,dispose(){o.dispose(),n==null||n.dispose(),n=void 0}}}var L_e,D_e,M_e,N_e,kJ,R_e,L4,P_e,O_e,D4,pv,EJ,TJ,IJ,F_e,AJ,z_e,LJ,B_e,DJ=N(()=>{Ns();Ns();L_e=Object.defineProperty,D_e=Object.getOwnPropertyDescriptor,M_e=Object.getOwnPropertyNames,N_e=Object.prototype.hasOwnProperty,kJ=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of M_e(e))!N_e.call(i,n)&&n!==t&&L_e(i,n,{get:()=>e[n],enumerable:!(r=D_e(e,n))||r.enumerable});return i},R_e=(i,e,t)=>(kJ(i,e,"default"),t&&kJ(t,e,"default")),L4={};R_e(L4,Ms);P_e=class{constructor(i,e,t){xr(this,"_onDidChange",new L4.Emitter);xr(this,"_options");xr(this,"_modeConfiguration");xr(this,"_languageId");this._languageId=i,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(i){this._options=i||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},O_e={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"},D4={format:O_e,suggest:{},data:{useDefaultDataProvider:!0}};pv="html",EJ="handlebars",TJ="razor",IJ=N4(pv,D4,M4(pv)),F_e=IJ.defaults,AJ=N4(EJ,D4,M4(EJ)),z_e=AJ.defaults,LJ=N4(TJ,D4,M4(TJ)),B_e=LJ.defaults;L4.languages.html={htmlDefaults:F_e,razorDefaults:B_e,handlebarDefaults:z_e,htmlLanguageService:IJ,handlebarLanguageService:AJ,razorLanguageService:LJ,registerHTMLLanguageService:N4}});var U_e,CN,j_e,Uh,SN,kN=N(()=>{ca();dne();Xo();Hr();ke();Pt();j_();U_e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},CN=function(i,e){return function(t,r){e(t,r,i)}},j_e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Uh=class{constructor(e,t){this._editorWorkerClient=new yz(e,!1,"editorWorkerService",t)}provideDocumentColors(e,t){return j_e(this,void 0,void 0,function*(){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)})}provideColorPresentations(e,t,r){let n=t.range,o=t.color,s=o.alpha,a=new vt(new Ts(Math.round(255*o.red),Math.round(255*o.green),Math.round(255*o.blue),s)),l=s?vt.Format.CSS.formatRGB(a):vt.Format.CSS.formatRGBA(a),c=s?vt.Format.CSS.formatHSL(a):vt.Format.CSS.formatHSLA(a),d=s?vt.Format.CSS.formatHex(a):vt.Format.CSS.formatHexA(a),u=[];return u.push({label:l,textEdit:{range:n,text:l}}),u.push({label:c,textEdit:{range:n,text:c}}),u.push({label:d,textEdit:{range:n,text:d}}),u}},SN=class extends ce{constructor(e,t,r){super(),this._register(r.colorProvider.register("*",new Uh(e,t)))}};SN=U_e([CN(0,Di),CN(1,Ot),CN(2,Se)],SN);Yc(SN)});function R4(i,e,t,r=!0){return mv(this,void 0,void 0,function*(){return LN(new EN,i,e,t,r)})}function AN(i,e,t,r){return Promise.resolve(t.provideColorPresentations(i,e,r))}function LN(i,e,t,r,n){return mv(this,void 0,void 0,function*(){let o=!1,s,a=[],l=e.ordered(t);for(let c=l.length-1;c>=0;c--){let d=l[c];if(d instanceof Uh)s=d;else try{(yield i.compute(d,t,r,a))&&(o=!0)}catch(u){Xt(u)}}return o?a:s&&n?(yield i.compute(s,t,r,a),a):[]})}function MJ(i,e){let{colorProvider:t}=i.get(Se),r=i.get(Di).getModel(e);if(!r)throw ko();let n=i.get(Mt).getValue("editor.defaultColorDecorators",{resource:e});return{model:r,colorProviderRegistry:t,isDefaultColorDecoratorsEnabled:n}}var mv,EN,TN,IN,DN=N(()=>{ki();qt();Ir();et();Xo();Vi();Pt();kN();Sr();mv=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};EN=class{constructor(){}compute(e,t,r,n){return mv(this,void 0,void 0,function*(){let o=yield e.provideDocumentColors(t,r);if(Array.isArray(o))for(let s of o)n.push({colorInfo:s,provider:e});return Array.isArray(o)})}},TN=class{constructor(){}compute(e,t,r,n){return mv(this,void 0,void 0,function*(){let o=yield e.provideDocumentColors(t,r);if(Array.isArray(o))for(let s of o)n.push({range:s.range,color:[s.color.red,s.color.green,s.color.blue,s.color.alpha]});return Array.isArray(o)})}},IN=class{constructor(e){this.colorInfo=e}compute(e,t,r,n){return mv(this,void 0,void 0,function*(){let o=yield e.provideColorPresentations(t,this.colorInfo,st.None);return Array.isArray(o)&&n.push(...o),Array.isArray(o)})}};Dt.registerCommand("_executeDocumentColorProvider",function(i,...e){let[t]=e;if(!(t instanceof yt))throw ko();let{model:r,colorProviderRegistry:n,isDefaultColorDecoratorsEnabled:o}=MJ(i,t);return LN(new TN,n,r,st.None,o)});Dt.registerCommand("_executeColorPresentationProvider",function(i,...e){let[t,r]=e,{uri:n,range:o}=r;if(!(n instanceof yt)||!Array.isArray(t)||t.length!==4||!B.isIRange(o))throw ko();let{model:s,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:l}=MJ(i,n),[c,d,u,h]=t;return LN(new IN({range:o,color:{red:c,green:d,blue:u,alpha:h}}),a,s,st.None,l)})});var W_e,MN,NJ,NN,PN,_c,RN,ON=N(()=>{jt();ca();qt();ei();ke();al();Ni();JF();lt();et();Ur();Ds();Pt();DN();Sr();W_e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},MN=function(i,e){return function(t,r){e(t,r,i)}},NJ=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},PN=Object.create({}),_c=NN=class extends ce{constructor(e,t,r,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=r,this._localToDispose=this._register(new le),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new ty(this._editor),this._decoratorLimitReporter=new RN,this._colorDecorationClassRefs=this._register(new le),this._debounceInformation=n.for(r.colorProvider,"Document Colors",{min:NN.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()})),this._register(e.onDidChangeModelLanguage(()=>this.updateColors())),this._register(r.colorProvider.onDidChange(()=>this.updateColors())),this._register(e.onDidChangeConfiguration(o=>{let s=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(144);let a=s!==this._isColorDecoratorsEnabled||o.hasChanged(20),l=o.hasChanged(144);(a||l)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(144),this.updateColors()}isEnabled(){let e=this._editor.getModel();if(!e)return!1;let t=e.getLanguageId(),r=this._configurationService.getValue(t);if(r&&typeof r=="object"){let n=r.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(19)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;let e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new aa,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){return NJ(this,void 0,void 0,function*(){this._computePromise=Jt(e=>NJ(this,void 0,void 0,function*(){let t=this._editor.getModel();if(!t)return[];let r=new mr(!1),n=yield R4(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,r.elapsed()),n}));try{let e=yield this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){ft(e)}})}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){let t=e.map(r=>({range:{startLineNumber:r.colorInfo.range.startLineNumber,startColumn:r.colorInfo.range.startColumn,endLineNumber:r.colorInfo.range.endLineNumber,endColumn:r.colorInfo.range.endColumn},options:mt.EMPTY}));this._editor.changeDecorations(r=>{this._decorationsIds=r.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,o)=>this._colorDatas.set(n,e[o]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();let t=[],r=this._editor.getOption(20);for(let o=0;othis._colorDatas.has(n.id));return r.length===0?null:this._colorDatas.get(r[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};_c.ID="editor.contrib.colorDetector";_c.RECOMPUTE_TIME=1e3;_c=NN=W_e([MN(1,Mt),MN(2,Se),MN(3,lr)],_c);RN=class{constructor(){this._onDidChange=new Je,this._computed=0,this._limited=!1}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}};Ue(_c.ID,_c,1)});var P4,RJ=N(()=>{ei();P4=class{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,r){this.presentationIndex=r,this._onColorFlushed=new Je,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new Je,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new Je,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 r=-1;for(let n=0;n{});var O4=N(()=>{PJ()});var Co,FN,zN,BN,HN,F4,UN,jN,WN,z4,OJ=N(()=>{K9();Ht();zre();M_();Zr();ca();ei();ke();An();O4();He();tn();Sl();Co=Ae,FN=class extends ce{constructor(e,t,r,n=!1){super(),this.model=t,this.showingStandaloneColorPicker=n,this._closeButton=null,this._domNode=Co(".colorpicker-header"),Te(e,this._domNode),this._pickedColorNode=Te(this._domNode,Co(".picked-color")),Te(this._pickedColorNode,Co("span.codicon.codicon-color-mode")),this._pickedColorPresentation=Te(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");let o=b("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",o),this._originalColorNode=Te(this._domNode,Co(".original-color")),this._originalColorNode.style.backgroundColor=vt.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=r.getColorTheme().getColor(ik)||vt.white,this._register(r.onDidColorThemeChange(s=>{this.backgroundColor=s.getColor(ik)||vt.white})),this._register(Lt(this._pickedColorNode,bi.CLICK,()=>this.model.selectNextColorPresentation())),this._register(Lt(this._originalColorNode,bi.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=vt.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 zN(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=vt.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:""}},zN=class extends ce{constructor(e){super(),this._onClicked=this._register(new Je),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),Te(e,this._button);let t=document.createElement("div");t.classList.add("close-button-inner-div"),Te(this._button,t),Te(t,Co(".button"+_t.asCSSSelector(Pi("color-picker-close",pt.close,b("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._button.onclick=()=>{this._onClicked.fire()}}},BN=class extends ce{constructor(e,t,r,n=!1){super(),this.model=t,this.pixelRatio=r,this._insertButton=null,this._domNode=Co(".colorpicker-body"),Te(e,this._domNode),this._saturationBox=new HN(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 UN(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 jN(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 WN(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){let r=this.model.color.hsva;this.model.color=new vt(new Hm(r.h,e,t,r.a))}onDidOpacityChange(e){let t=this.model.color.hsva;this.model.color=new vt(new Hm(t.h,t.s,t.v,e))}onDidHueChange(e){let t=this.model.color.hsva,r=(1-e)*360;this.model.color=new vt(new Hm(r===360?0:r,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()}},HN=class extends ce{constructor(e,t,r){super(),this.model=t,this.pixelRatio=r,this._onDidChange=new Je,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new Je,this.onColorFlushed=this._onColorFlushed.event,this._domNode=Co(".saturation-wrap"),Te(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",Te(this._domNode,this._canvas),this.selection=Co(".saturation-selection"),Te(this._domNode,this.selection),this.layout(),this._register(Lt(this._domNode,bi.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 dk);let t=Zi(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);let r=Lt(document,bi.POINTER_UP,()=>{this._onColorFlushed.fire(),r.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){let r=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(r,n),this._onDidChange.fire({s:r,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();let e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){let e=this.model.color.hsva,t=new vt(new Hm(e.h,1,1,1)),r=this._canvas.getContext("2d"),n=r.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)");let o=r.createLinearGradient(0,0,0,this._canvas.height);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(1,"rgba(0, 0, 0, 1)"),r.rect(0,0,this._canvas.width,this._canvas.height),r.fillStyle=vt.Format.CSS.format(t),r.fill(),r.fillStyle=n,r.fill(),r.fillStyle=o,r.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();let t=e.hsva;this.paintSelection(t.s,t.v)}},F4=class extends ce{constructor(e,t,r=!1){super(),this.model=t,this._onDidChange=new Je,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new Je,this.onColorFlushed=this._onColorFlushed.event,r?(this.domNode=Te(e,Co(".standalone-strip")),this.overlay=Te(this.domNode,Co(".standalone-overlay"))):(this.domNode=Te(e,Co(".strip")),this.overlay=Te(this.domNode,Co(".overlay"))),this.slider=Te(this.domNode,Co(".slider")),this.slider.style.top="0px",this._register(Lt(this.domNode,bi.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;let e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){let t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._register(new dk),r=Zi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,o=>this.onDidChangeTop(o.pageY-r.top),()=>null);let n=Lt(document,bi.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){let 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`}},UN=class extends F4{constructor(e,t,r=!1){super(e,t,r),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);let{r:t,g:r,b:n}=e.rgba,o=new vt(new Ts(t,r,n,1)),s=new vt(new Ts(t,r,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${o} 0%, ${s} 100%)`}getValue(e){return e.hsva.a}},jN=class extends F4{constructor(e,t,r=!1){super(e,t,r),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}},WN=class extends ce{constructor(e){super(),this._onClicked=this._register(new Je),this.onClicked=this._onClicked.event,this._button=Te(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._button.onclick=t=>{this._onClicked.fire()}}get button(){return this._button}},z4=class extends _l{constructor(e,t,r,n,o=!1){super(),this.model=t,this.pixelRatio=r,this._register(V9.onDidChange(()=>this.layout()));let s=Co(".colorpicker-widget");e.appendChild(s),this.header=this._register(new FN(s,this.model,n,o)),this.body=this._register(new BN(s,this.model,this.pixelRatio,o))}layout(){this.body.layout()}}});function BJ(i,e,t,r){return gm(this,void 0,void 0,function*(){let n=e.getValueInRange(t.range),{red:o,green:s,blue:a,alpha:l}=t.color,c=new Ts(Math.round(o*255),Math.round(s*255),Math.round(a*255),l),d=new vt(c),u=yield AN(e,t,r,st.None),h=new P4(d,[],0);return h.colorPresentations=u||[],h.guessColorPresentation(d,n),i instanceof gv?new VN(i,B.lift(t.range),h,r):new qN(i,B.lift(t.range),h,r)})}function HJ(i,e,t,r,n){if(r.length===0||!e.hasModel())return ce.None;if(n.setMinimumDimensions){let h=e.getOption(65)+8;n.setMinimumDimensions(new Qt(302,h))}let o=new le,s=r[0],a=e.getModel(),l=s.model,c=o.add(new z4(n.fragment,l,e.getOption(140),t,i instanceof bm));n.setColorPicker(c);let d=!1,u=new B(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn);if(i instanceof bm){let h=r[0].model.color;i.color=h,B4(a,l,h,u,s),o.add(l.onColorFlushed(f=>{i.color=f}))}else o.add(l.onColorFlushed(h=>gm(this,void 0,void 0,function*(){yield B4(a,l,h,u,s),d=!0,u=UJ(e,u,l,n)})));return o.add(l.onDidChangeColor(h=>{B4(a,l,h,u,s)})),o.add(e.onDidChangeModelContent(h=>{d?d=!1:(n.hide(),e.focus())})),o}function UJ(i,e,t,r){let n,o;if(t.presentation.textEdit){n=[t.presentation.textEdit],o=new B(t.presentation.textEdit.range.startLineNumber,t.presentation.textEdit.range.startColumn,t.presentation.textEdit.range.endLineNumber,t.presentation.textEdit.range.endColumn);let s=i.getModel()._setTrackedRange(null,o,3);i.pushUndoStop(),i.executeEdits("colorpicker",n),o=i.getModel()._getTrackedRange(s)||o}else n=[{range:e,text:t.presentation.label,forceMoveMarkers:!1}],o=e.setEndPosition(e.endLineNumber,e.startColumn+t.presentation.label.length),i.pushUndoStop(),i.executeEdits("colorpicker",n);return t.presentation.additionalTextEdits&&(n=[...t.presentation.additionalTextEdits],i.executeEdits("colorpicker",n),r&&r.hide()),i.pushUndoStop(),o}function B4(i,e,t,r,n){return gm(this,void 0,void 0,function*(){let o=yield AN(i,{range:r,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=o||[]})}var FJ,zJ,gm,VN,gv,qN,bm,KN=N(()=>{jt();ki();ca();ke();et();DN();ON();RJ();OJ();rn();Ht();FJ=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},zJ=function(i,e){return function(t,r){e(t,r,i)}},gm=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},VN=class{constructor(e,t,r,n){this.owner=e,this.range=t,this.model=r,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},gv=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,r){return Mn.fromPromise(this._computeAsync(e,t,r))}_computeAsync(e,t,r){return gm(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];let n=_c.get(this._editor);if(!n)return[];for(let o of t){if(!n.isColorDecoration(o))continue;let s=n.getColorData(o.range.getStartPosition());if(s)return[yield BJ(this,this._editor.getModel(),s.colorInfo,s.provider)]}return[]})}renderHoverParts(e,t){return HJ(this,this._editor,this._themeService,t,e)}};gv=FJ([zJ(1,br)],gv);qN=class{constructor(e,t,r,n){this.owner=e,this.range=t,this.model=r,this.provider=n}},bm=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}createColorHover(e,t,r){return gm(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!_c.get(this._editor))return null;let o=yield R4(r,this._editor.getModel(),st.None),s=null,a=null;for(let u of o){let h=u.colorInfo;B.containsRange(h.range,e.range)&&(s=h,a=u.provider)}let l=s!=null?s:e,c=a!=null?a:t,d=!!s;return{colorHover:yield BJ(this,this._editor.getModel(),l,c),foundInEditor:d}})}updateEditorModel(e){return gm(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;let t=e.model,r=new B(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(yield B4(this._editor.getModel(),t,this._color,r,e),r=UJ(this._editor,r,t))})}renderHoverParts(e,t){return HJ(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};bm=FJ([zJ(1,br)],bm)});var bv,jJ=N(()=>{ke();lt();et();ON();KN();iS();rc();bv=class extends ce{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){let t=this._editor.getOption(145);if(t!=="click"&&t!=="clickAndHover")return;let r=e.target;if(r.type!==6||!r.detail.injectedText||r.detail.injectedText.options.attachedData!==PN||!r.range)return;let n=this._editor.getContribution(yn.ID);if(n&&!n.isColorPickerVisible){let o=new B(r.range.startLineNumber,r.range.startColumn+1,r.range.endLineNumber,r.range.endColumn+1);n.showContentHover(o,1,0,!1,!0)}}};bv.ID="editor.contrib.colorContribution";Ue(bv.ID,bv,2);Uo.register(gv)});var qJ,Qs,WJ,$N,GN,yc,VJ,V_e,H4,YN,KJ=N(()=>{ke();KN();Ut();s8();jr();ei();Pt();lt();ti();wt();Xo();Hr();kN();Ht();O4();qJ=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Qs=function(i,e){return function(t,r){e(t,r,i)}},WJ=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},yc=$N=class extends ce{constructor(e,t,r,n,o,s,a){super(),this._editor=e,this._modelService=r,this._keybindingService=n,this._instantiationService=o,this._languageFeatureService=s,this._languageConfigurationService=a,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=F.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=F.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 H4(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($N.ID)}};yc.ID="editor.contrib.standaloneColorPickerController";yc=$N=qJ([Qs(1,it),Qs(2,Di),Qs(3,Kt),Qs(4,Ke),Qs(5,Se),Qs(6,Ot)],yc);Ue(yc.ID,yc,1);VJ=8,V_e=22,H4=GN=class extends ce{constructor(e,t,r,n,o,s,a,l){var c;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=r,this._modelService=o,this._keybindingService=s,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 Je),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=n.createInstance(bm,this._editor),this._position=(c=this._editor._getViewModel())===null||c===void 0?void 0:c.getPrimaryCursorState().modelState.position;let d=this._editor.getSelection(),u=d?{startLineNumber:d.startLineNumber,startColumn:d.startColumn,endLineNumber:d.endLineNumber,endColumn:d.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},h=this._register(xs(this._body));this._register(h.onDidBlur(f=>{this.hide()})),this._register(h.onDidFocus(f=>{this.focus()})),this._register(this._editor.onDidChangeCursorPosition(()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()})),this._register(this._editor.onMouseMove(f=>{var m;let g=(m=f.target.element)===null||m===void 0?void 0:m.classList;g&&g.contains("colorpicker-color-decoration")&&this.hide()})),this._register(this.onResult(f=>{this._render(f.value,f.foundInEditor)})),this._start(u),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return GN.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;let e=this._editor.getOption(59).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()}_start(e){return WJ(this,void 0,void 0,function*(){let t=yield this._computeAsync(e);t&&this._onResult.fire(new YN(t.result,t.foundInEditor))})}_computeAsync(e){return WJ(this,void 0,void 0,function*(){if(!this._editor.hasModel())return null;let t={range:e,color:{red:0,green:0,blue:0,alpha:1}},r=yield this._standaloneColorPickerParticipant.createColorHover(t,new Uh(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return r?{result:r.colorHover,foundInEditor:r.foundInEditor}:null})}_render(e,t){let r=document.createDocumentFragment(),n=this._register(new a1(this._keybindingService)),o,s={fragment:r,statusBar:n,setColorPicker:g=>o=g,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=e,this._register(this._standaloneColorPickerParticipant.renderHoverParts(s,[e])),o===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(r),o.layout();let a=o.body,l=a.saturationBox.domNode.clientWidth,c=a.domNode.clientWidth-l-V_e-VJ,d=o.body.enterButton;d==null||d.onClicked(()=>{this.updateEditor(),this.hide()});let u=o.header,h=u.pickedColorNode;h.style.width=l+VJ+"px";let f=u.originalColorNode;f.style.width=c+"px";let m=o.header.closeButton;m==null||m.onClicked(()=>{this.hide()}),t&&(d&&(d.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};H4.ID="editor.contrib.standaloneColorPickerWidget";H4=GN=qJ([Qs(3,Ke),Qs(4,Di),Qs(5,Kt),Qs(6,Se),Qs(7,Ot)],H4);YN=class{constructor(e,t){this.value=e,this.foundInEditor=t}}});var XN,QN,ZN,$J=N(()=>{lt();He();KJ();ti();Ji();O4();XN=class extends oa{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{value:b("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:b({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker"),original:"Show or Focus Standalone Color Picker"},precondition:void 0,menu:[{id:Me.CommandPalette}]})}runEditorCommand(e,t){var r;(r=yc.get(t))===null||r===void 0||r.showOrFocus()}},QN=class extends de{constructor(){super({id:"editor.action.hideColorPicker",label:b({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:F.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100}})}run(e,t){var r;(r=yc.get(t))===null||r===void 0||r.hide()}},ZN=class extends de{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:b({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:F.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100}})}run(e,t){var r;(r=yc.get(t))===null||r===void 0||r.insertColor()}};ee(QN);ee(ZN);Si(XN)});function GJ(i,e){var t;return!!(!((t=i.pasteMimeTypes)===null||t===void 0)&&t.some(r=>e.matches(r)))}var q_e,vm,wc,eR,tR,iR,JN,tu,YJ=N(()=>{Ht();mi();jt();j0();ke();Y3();Tn();H0();JO();CI();tg();et();Pt();EI();yu();K0();He();Zm();wt();Ut();$c();wl();II();q_e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},vm=function(i,e){return function(t,r){e(t,r,i)}},wc=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},tR="editor.changePasteType",iR=new ht("pasteWidgetVisible",!1,b("pasteWidgetVisible","Whether the paste widget is showing")),JN="application/vnd.code.copyMetadata",tu=eR=class extends ce{static get(e){return e.getContribution(eR.ID)}constructor(e,t,r,n,o,s,a){super(),this._bulkEditService=r,this._clipboardService=n,this._languageFeaturesService=o,this._quickInputService=s,this._progressService=a,this._editor=e;let l=e.getContainerDomNode();this._register(Lt(l,"copy",c=>this.handleCopy(c))),this._register(Lt(l,"cut",c=>this.handleCopy(c))),this._register(Lt(l,"paste",c=>this.handlePaste(c),!0)),this._pasteProgressManager=this._register(new up("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(hp,"pasteIntoEditor",e,iR,{id:tR,label:b("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferredId:e},document.execCommand("paste")}finally{this._pasteAsActionContext=void 0}}isPasteAsEnabled(){return this._editor.getOption(83).enabled&&!this._editor.getOption(89)}handleCopy(e){var t,r;if(!this._editor.hasTextFocus()||(Uv&&this._clipboardService.writeResources([]),!e.clipboardData||!this.isPasteAsEnabled()))return;let n=this._editor.getModel(),o=this._editor.getSelections();if(!n||!(o!=null&&o.length))return;let s=this._editor.getOption(36),a=o,l=o.length===1&&o[0].isEmpty();if(l){if(!s)return;a=[new B(a[0].startLineNumber,1,a[0].startLineNumber,1+n.getLineLength(a[0].startLineNumber))]}let c=(t=this._editor._getViewModel())===null||t===void 0?void 0:t.getPlainTextToCopy(o,s,Rc),u={multicursorText:Array.isArray(c)?c:null,pasteOnNewLine:l,mode:null},h=this._languageFeaturesService.documentPasteEditProvider.ordered(n).filter(_=>!!_.prepareDocumentPaste);if(!h.length){this.setCopyMetadata(e.clipboardData,{defaultPastePayload:u});return}let f=xI(e.clipboardData),m=h.flatMap(_=>{var E;return(E=_.copyMimeTypes)!==null&&E!==void 0?E:[]}),g=Td();this.setCopyMetadata(e.clipboardData,{id:g,providerCopyMimeTypes:m,defaultPastePayload:u});let w=Jt(_=>wc(this,void 0,void 0,function*(){let E=hn(yield Promise.all(h.map(L=>wc(this,void 0,void 0,function*(){try{return yield L.prepareDocumentPaste(n,a,f,_)}catch(A){console.error(A);return}}))));E.reverse();for(let L of E)for(let[A,O]of L)f.replace(A,O);return f}));(r=this._currentCopyOperation)===null||r===void 0||r.dataTransferPromise.cancel(),this._currentCopyOperation={handle:g,dataTransferPromise:w}}handlePaste(e){var t,r;return wc(this,void 0,void 0,function*(){if(!e.clipboardData||!this._editor.hasTextFocus())return;(t=this._currentPasteOperation)===null||t===void 0||t.cancel(),this._currentPasteOperation=void 0;let n=this._editor.getModel(),o=this._editor.getSelections();if(!(o!=null&&o.length)||!n||!this.isPasteAsEnabled())return;let s=this.fetchCopyMetadata(e),a=i2(e.clipboardData);a.delete(JN);let l=[...e.clipboardData.types,...(r=s==null?void 0:s.providerCopyMimeTypes)!==null&&r!==void 0?r:[],gr.uriList],c=this._languageFeaturesService.documentPasteEditProvider.ordered(n).filter(d=>{var u;return(u=d.pasteMimeTypes)===null||u===void 0?void 0:u.some(h=>Xx(h,l))});c.length&&(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferredId,c,o,a,s):this.doPasteInline(c,o,a,s))})}doPasteInline(e,t,r,n){let o=Jt(s=>wc(this,void 0,void 0,function*(){let a=this._editor;if(!a.hasModel())return;let l=a.getModel(),c=new ga(a,3,void 0,s);try{if(yield this.mergeInDataFromCopy(r,n,c.token),c.token.isCancellationRequested)return;let d=e.filter(h=>GJ(h,r));if(!d.length||d.length===1&&d[0].id==="text"){yield this.applyDefaultPasteHandler(r,n,c.token);return}let u=yield this.getPasteEdits(d,r,l,t,c.token);if(c.token.isCancellationRequested)return;if(u.length===1&&u[0].providerId==="text"){yield this.applyDefaultPasteHandler(r,n,c.token);return}if(u.length){let h=a.getOption(83).showPasteSelector==="afterPaste";return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:u},h,c.token)}yield this.applyDefaultPasteHandler(r,n,c.token)}finally{c.dispose(),this._currentPasteOperation===o&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),b("pasteIntoEditorProgress","Running paste handlers. Click to cancel"),o),this._currentPasteOperation=o}showPasteAsPick(e,t,r,n,o){let s=Jt(a=>wc(this,void 0,void 0,function*(){let l=this._editor;if(!l.hasModel())return;let c=l.getModel(),d=new ga(l,3,void 0,a);try{if(yield this.mergeInDataFromCopy(n,o,d.token),d.token.isCancellationRequested)return;let u=t.filter(g=>GJ(g,n));e&&(u=u.filter(g=>g.id===e));let h=yield this.getPasteEdits(u,n,c,r,d.token);if(d.token.isCancellationRequested||!h.length)return;let f;if(e)f=h.at(0);else{let g=yield this._quickInputService.pick(h.map(w=>({label:w.label,description:w.providerId,detail:w.detail,edit:w})),{placeHolder:b("pasteAsPickerPlaceholder","Select Paste Action")});f=g==null?void 0:g.edit}if(!f)return;let m=uK(c.uri,r,f);yield this._bulkEditService.apply(m,{editor:this._editor})}finally{d.dispose(),this._currentPasteOperation===s&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:b("pasteAsProgress","Running paste handlers")},()=>s)}setCopyMetadata(e,t){e.setData(JN,JSON.stringify(t))}fetchCopyMetadata(e){var t;if(!e.clipboardData)return;let r=e.clipboardData.getData(JN);if(r)try{return JSON.parse(r)}catch(s){return}let[n,o]=ZO.getTextData(e.clipboardData);if(o)return{defaultPastePayload:{mode:o.mode,multicursorText:(t=o.multicursorText)!==null&&t!==void 0?t:null,pasteOnNewLine:!!o.isFromEmptySelection}}}mergeInDataFromCopy(e,t,r){var n;return wc(this,void 0,void 0,function*(){if(t!=null&&t.id&&((n=this._currentCopyOperation)===null||n===void 0?void 0:n.handle)===t.id){let o=yield this._currentCopyOperation.dataTransferPromise;if(r.isCancellationRequested)return;for(let[s,a]of o)e.replace(s,a)}if(!e.has(gr.uriList)){let o=yield this._clipboardService.readResources();if(r.isCancellationRequested)return;o.length&&e.append(gr.uriList,U0(eh.create(o)))}})}getPasteEdits(e,t,r,n,o){return wc(this,void 0,void 0,function*(){let s=yield Vc(Promise.all(e.map(l=>wc(this,void 0,void 0,function*(){var c;try{let d=yield(c=l.provideDocumentPasteEdits)===null||c===void 0?void 0:c.call(l,r,n,t,o);if(d)return Object.assign(Object.assign({},d),{providerId:l.id})}catch(d){console.error(d)}}))),o),a=hn(s!=null?s:[]);return o2(a),a})}applyDefaultPasteHandler(e,t,r){var n,o,s;return wc(this,void 0,void 0,function*(){let a=(n=e.get(gr.text))!==null&&n!==void 0?n:e.get("text");if(!a)return;let l=yield a.asString();if(r.isCancellationRequested)return;let c={text:l,pasteOnNewLine:(o=t==null?void 0:t.defaultPastePayload.pasteOnNewLine)!==null&&o!==void 0?o:!1,multicursorText:(s=t==null?void 0:t.defaultPastePayload.multicursorText)!==null&&s!==void 0?s:null,mode:null};this._editor.trigger("keyboard","paste",c)})}};tu.ID="editor.contrib.copyPasteActionController";tu=eR=q_e([vm(1,Ke),vm(2,Kc),vm(3,As),vm(4,Se),vm(5,nn),vm(6,rF)],tu)});var XJ=N(()=>{lt();j_();YJ();vI();He();Ue(tu.ID,tu,0);Yc(t2);We(new class extends Fi{constructor(){super({id:tR,precondition:iR,kbOpts:{weight:100,primary:2137}})}runEditorCommand(i,e,t){var r;return(r=tu.get(e))===null||r===void 0?void 0:r.changePasteType()}});ee(class extends de{constructor(){super({id:"editor.action.pasteAs",label:b("pasteAs","Paste As..."),alias:"Paste As...",precondition:void 0,description:{description:"Paste as",args:[{name:"args",schema:{type:"object",properties:{id:{type:"string",description:b("pasteAs.id","The id of the paste edit to try applying. If not provided, the editor will show a picker.")}}}}]}})}run(i,e,t){var r;let n=typeof(t==null?void 0:t.id)=="string"?t.id:void 0;return(r=tu.get(e))===null||r===void 0?void 0:r.pasteAs(n)}})});var QJ=Qi(rR=>{ki();zr();Ir();ra();R1();Vi();var K_e=rR&&rR.__awaiter||function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};Dt.registerCommand("_executeDocumentSymbolProvider",function(i,...e){return K_e(this,void 0,void 0,function*(){let[t]=e;Bt(yt.isUri(t));let r=i.get(Lh),o=yield i.get(Cr).createModelReference(t);try{return(yield r.getOrCreate(o.object.textEditorModel,st.None)).getTopLevelSymbols()}finally{o.dispose()}})})});var nR,ZJ=N(()=>{al();lt();He();nR=class extends de{constructor(){super({id:"editor.action.forceRetokenize",label:b("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;let r=t.getModel();r.tokenization.resetTokenization();let n=new mr;r.tokenization.forceTokenization(r.getLineCount()),n.stop(),console.log(`tokenization took ${n.elapsed()}`)}};ee(nR)});var U4,JJ=N(()=>{Io();Jre();He();Ji();wt();U4=class i extends Jo{constructor(){super({id:i.ID,title:{value:b({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),original:"Toggle Tab Key Moves Focus"},precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},f1:!0})}run(e){let t=e.get(it).getContextKeyValue("focusedView")==="terminal"?"terminalFocus":"editorFocus",n=!Sk.getTabFocusMode(t);Sk.setTabFocusMode(n,t),n?ar(b("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):ar(b("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}};U4.ID="editor.action.toggleTabFocusMode";Si(U4)});var Rkt,Pkt,Vkt,eee=N(()=>{s_();iz();une();cne();gT();wT();ST();ET();LT();XT();iI();jJ();$J();lI();uI();pI();mI();XJ();NI();y2();hb();TA();Rkt=Vn(DA()),Pkt=Vn(QJ());CL();K0();e1();BC();qC();iS();L8();z8();Vkt=Vn(U8());W8();c7();f7();v7();_7();O7();V7();Y7();sD();aD();hD();kp();SD();oC();AD();ZJ();JJ();BD();HD();GD();i4();SM();kM();xu();D0()});var tee=N(()=>{});var iee=N(()=>{tee()});var vv,j4,ree=N(()=>{iee();Ht();ke();lt();Tn();vv=class extends ce{constructor(e){super(),this.editor=e,this.widget=null,Lm&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){let e=!this.editor.getOption(89);!this.widget&&e?this.widget=new j4(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}};vv.ID="editor.contrib.iPadShowKeyboard";j4=class i extends ce{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(Lt(this._domNode,"touchstart",t=>{this.editor.focus()})),this._register(Lt(this._domNode,"focus",t=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return i.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}};j4.ID="editor.contrib.ShowKeyboardWidget";Ue(vv.ID,vv,3)});var oR,nee=N(()=>{lt();gz();xu();ok();hne();oR=class extends de{constructor(){super({id:"editor.action.toggleHighContrast",label:_z.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){let r=e.get(oy),n=r.getColorTheme();_u(n.type)?(r.setTheme(this._originalThemeName||(nk(n.type)?xz:wz)),this._originalThemeName=null):(r.setTheme(nk(n.type)?Cz:Sz),this._originalThemeName=n.themeName)}};ee(oR)});var DEt,oee=N(()=>{eee();ree();DEt=Vn(IM());AM();DM();FM();jM();VM();nee();Ns()});var _v={};Xh(_v,{CancellationTokenSource:()=>fne,Emitter:()=>pne,KeyCode:()=>mne,KeyMod:()=>gne,MarkerSeverity:()=>wne,MarkerTag:()=>xne,Position:()=>bne,Range:()=>vne,Selection:()=>_ne,SelectionDirection:()=>yne,Token:()=>Sne,Uri:()=>Cne,editor:()=>Cu,languages:()=>Ca});var yv=N(()=>{_J();SJ();DJ();qM();kne();oee()});var dee=Qi((KEt,cee)=>{var lee="Expected a function",see=NaN,$_e="[object Symbol]",G_e=/^\s+|\s+$/g,Y_e=/^[-+]0x[0-9a-f]+$/i,X_e=/^0b[01]+$/i,Q_e=/^0o[0-7]+$/i,Z_e=parseInt,J_e=typeof global=="object"&&global&&global.Object===Object&&global,eye=typeof self=="object"&&self&&self.Object===Object&&self,tye=J_e||eye||Function("return this")(),iye=Object.prototype,rye=iye.toString,nye=Math.max,oye=Math.min,sR=function(){return tye.Date.now()};function sye(i,e,t){var r,n,o,s,a,l,c=0,d=!1,u=!1,h=!0;if(typeof i!="function")throw new TypeError(lee);e=aee(e)||0,W4(t)&&(d=!!t.leading,u="maxWait"in t,o=u?nye(aee(t.maxWait)||0,e):o,h="trailing"in t?!!t.trailing:h);function f(U){var Y=r,oe=n;return r=n=void 0,c=U,s=i.apply(oe,Y),s}function m(U){return c=U,a=setTimeout(_,e),d?f(U):s}function g(U){var Y=U-l,oe=U-c,te=e-Y;return u?oye(te,o-oe):te}function w(U){var Y=U-l,oe=U-c;return l===void 0||Y>=e||Y<0||u&&oe>=o}function _(){var U=sR();if(w(U))return E(U);a=setTimeout(_,g(U))}function E(U){return a=void 0,h&&r?f(U):(r=n=void 0,s)}function L(){a!==void 0&&clearTimeout(a),c=0,r=l=n=a=void 0}function A(){return a===void 0?s:E(sR())}function O(){var U=sR(),Y=w(U);if(r=arguments,n=this,l=U,Y){if(a===void 0)return m(l);if(u)return a=setTimeout(_,e),f(l)}return a===void 0&&(a=setTimeout(_,e)),s}return O.cancel=L,O.flush=A,O}function aye(i,e,t){var r=!0,n=!0;if(typeof i!="function")throw new TypeError(lee);return W4(t)&&(r="leading"in t?!!t.leading:r,n="trailing"in t?!!t.trailing:n),sye(i,e,{leading:r,maxWait:e,trailing:n})}function W4(i){var e=typeof i;return!!i&&(e=="object"||e=="function")}function lye(i){return!!i&&typeof i=="object"}function cye(i){return typeof i=="symbol"||lye(i)&&rye.call(i)==$_e}function aee(i){if(typeof i=="number")return i;if(cye(i))return see;if(W4(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=W4(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=i.replace(G_e,"");var t=X_e.test(i);return t||Q_e.test(i)?Z_e(i.slice(2),t?2:8):Y_e.test(i)?see:+i}cee.exports=aye});var Nee=Qi(($Et,Mee)=>{var dye=1/0,uye="[object Symbol]",hye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vee="\\ud800-\\udfff",pye="\\u0300-\\u036f\\ufe20-\\ufe23",mye="\\u20d0-\\u20f0",_ee="\\u2700-\\u27bf",yee="a-z\\xdf-\\xf6\\xf8-\\xff",gye="\\xac\\xb1\\xd7\\xf7",bye="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vye="\\u2000-\\u206f",_ye=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wee="A-Z\\xc0-\\xd6\\xd8-\\xde",yye="\\ufe0e\\ufe0f",xee=gye+bye+vye+_ye,aR="['\u2019]",uee="["+xee+"]",Cee="["+pye+mye+"]",See="\\d+",wye="["+_ee+"]",kee="["+yee+"]",Eee="[^"+vee+xee+See+_ee+yee+wee+"]",xye="\\ud83c[\\udffb-\\udfff]",Cye="(?:"+Cee+"|"+xye+")",Sye="[^"+vee+"]",Tee="(?:\\ud83c[\\udde6-\\uddff]){2}",Iee="[\\ud800-\\udbff][\\udc00-\\udfff]",_m="["+wee+"]",kye="\\u200d",hee="(?:"+kee+"|"+Eee+")",Eye="(?:"+_m+"|"+Eee+")",fee="(?:"+aR+"(?:d|ll|m|re|s|t|ve))?",pee="(?:"+aR+"(?:D|LL|M|RE|S|T|VE))?",Aee=Cye+"?",Lee="["+yye+"]?",Tye="(?:"+kye+"(?:"+[Sye,Tee,Iee].join("|")+")"+Lee+Aee+")*",Iye=Lee+Aee+Tye,Aye="(?:"+[wye,Tee,Iee].join("|")+")"+Iye,Lye=RegExp(aR,"g"),Dye=RegExp(Cee,"g"),Mye=RegExp([_m+"?"+kee+"+"+fee+"(?="+[uee,_m,"$"].join("|")+")",Eye+"+"+pee+"(?="+[uee,_m+hee,"$"].join("|")+")",_m+"?"+hee+"+"+fee,_m+"+"+pee,See,Aye].join("|"),"g"),Nye=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rye={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},Pye=typeof global=="object"&&global&&global.Object===Object&&global,Oye=typeof self=="object"&&self&&self.Object===Object&&self,Fye=Pye||Oye||Function("return this")();function zye(i,e,t,r){var n=-1,o=i?i.length:0;for(r&&o&&(t=i[++n]);++n{"use strict";var fi=qe&&qe.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(qe,"__esModule",{value:!0});qe.DeleteLines=qe.SearchReplace=qe.Search=qe.InvertSelection=qe.GotoLine=qe.RotateCursorOnScreen=qe.InsertTabs=qe.RevealToBottomAction=qe.RevealToCenterAction=qe.RevealToTopAction=qe.RevealEditorAction=qe.YankRotate=qe.YankSelectionToRing=qe.Yank=qe.RedoAction=qe.UndoAction=qe.KeyBoardQuit=qe.MoveCursorTop=qe.MoveCursorBottom=qe.MoveCursorWordLeft=qe.MoveCursorWordRight=qe.MoveCursorToLineStart=qe.MoveCursorToLineEnd=qe.MoveCursorRight=qe.MoveCursorLeft=qe.MoveCursorDown=qe.MoveCursorUp=qe.SetMark=qe.InsertLineAfter=qe.InsertLineBelow=qe.KillLines=qe.KillSelection=qe.BaseAction=qe.SOURCE=void 0;var wr=(yv(),Qh(_v));qe.SOURCE="extension.emacs";function Jye(i,e,t,r,n){n===void 0&&(n=1);for(var o="cursor".concat(r==="word"?"Word":"").concat(t).concat(e?"Select":""),s=0;su?u:a.lineNumber+n;l=new wr.Position(h,s.getLineLength(h)+1)}var f=wr.Range.fromPositions(a,l);o?r.state.growRingTop(s.getValueInRange(f)):r.state.addToRing(s.getValueInRange(f)),t.executeEdits(qe.SOURCE,[{range:f,text:""}]),t.setSelection(wr.Selection.fromPositions(a,a))},e}(Yr);qe.KillLines=twe;var iwe=function(i){fi(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,r,n,o){var s=t.getPosition();t.trigger(qe.SOURCE,"editor.action.insertLineAfter",null),t.setPosition(s)},e}(Yr);qe.InsertLineBelow=iwe;var rwe=function(i){fi(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,r,n,o){for(var s="",a=0;ac&&(a=c):a=1;var d=new wr.Position(a,1),u;if(!r.selectionMode)u=wr.Selection.fromPositions(d);else{var h=t.getSelection();h.getDirection()===wr.SelectionDirection.LTR?u=wr.Selection.fromPositions(h.getStartPosition(),d):u=wr.Selection.fromPositions(h.getEndPosition(),d)}t.setSelection(u),t.revealRangeInCenter(u)}).catch(function(){t.focus()})},e}(Yr);qe.GotoLine=Swe;var kwe=function(i){fi(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,r,n,o){var s=t.getSelection();if(!s.isEmpty()){var a;s.getDirection()===wr.SelectionDirection.LTR?a=wr.Selection.fromPositions(s.getEndPosition(),s.getStartPosition()):a=wr.Selection.fromPositions(s.getStartPosition(),s.getEndPosition()),t.setSelection(a)}},e}(Yr);qe.InvertSelection=kwe;var Ewe=function(i){fi(e,i);function e(){return i.call(this,"editor.actions.findWithArgs")||this}return e}(Ree);qe.Search=Ewe;var Twe=function(i){fi(e,i);function e(){return i.call(this,"editor.action.startFindReplaceAction")||this}return e}(Ree);qe.SearchReplace=Twe;var Iwe=function(i){fi(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,r,n,o){r.selectionMode=!1;for(var s=0;s{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.getAllMappings=Xr.unregisterKey=Xr.registerGlobalCommand=Xr.executeCommand=Xr.COMMANDS=Xr.prefixPreservingKeys=void 0;var wi=lR();Xr.prefixPreservingKeys={"M-g":!0,"C-x":!0,"C-q":!0,"C-u":!0};var zee=new wi.SetMark,q4=new wi.UndoAction,Awe=new wi.MoveCursorDown,Lwe=new wi.MoveCursorUp,Dwe=new wi.MoveCursorRight,Mwe=new wi.MoveCursorLeft;Xr.COMMANDS={"M-/":{description:"",action:"editor.action.triggerSuggest"},"C-'":{description:"",action:"editor.action.triggerSuggest"},"M-;":{description:"",action:"editor.action.commentLine"},"C-t":{description:"",action:"editor.action.transposeLetters"},"C-x C-p":{description:"",action:"editor.action.selectAll"},Tab:{description:"",action:"editor.action.formatDocument"},"C-Backspace":{description:"",action:"deleteWordLeft"},"C-d":{description:"",action:"deleteRight"},"M-Backspace":{description:"",action:"deleteWordLeft"},"M-Delete":{description:"",action:"deleteWordLeft"},"C-x C-u":{description:"",action:"editor.action.transformToUppercase"},"C-x C-l":{description:"",action:"editor.action.transformToLowercase"},"C-v":{description:"",action:"cursorPageDown"},PageDown:{description:"",action:"cursorPageDown"},"M-v":{description:"",action:"cursorPageUp"},PageUp:{description:"",action:"cursorPageUp"},"M-g n":{description:"",action:"editor.action.marker.next"},"M-g p":{description:"",action:"editor.action.marker.prev"},"M-C-n":{description:"",action:"editor.action.addSelectionToNextFindMatch"},"C-h":{description:"",action:"deleteLeft"},"M-d":{description:"",action:"deleteWordRight"},"S-C-":{description:"",action:"editor.action.triggerParameterHints"},"C-SPC":zee,"S-C-2":zee,"C-/":q4,"S-C--":q4,"C-z":q4,"C-x u":q4,"C-n":Awe,"C-p":Lwe,"C-f":Dwe,"C-b":Mwe,"S-C-Backspace":new wi.DeleteLines,"M-f":new wi.MoveCursorWordRight,"M-b":new wi.MoveCursorWordLeft,"C-k":new wi.KillLines,"C-m":new wi.InsertLineAfter,"C-w":new wi.KillSelection,"C-o":new wi.InsertLineBelow,"C-g":new wi.KeyBoardQuit,"C-e":new wi.MoveCursorToLineEnd,"C-a":new wi.MoveCursorToLineStart,"C-y":new wi.Yank,"M-w":new wi.YankSelectionToRing,"M-y":new wi.YankRotate,"C-l":new wi.RevealToCenterAction,"C-q Tab":new wi.InsertTabs,"M-r":new wi.RotateCursorOnScreen,"M-g g":new wi.GotoLine,"M-g M-g":new wi.GotoLine,"C-x C-x":new wi.InvertSelection,"S-M-.":new wi.MoveCursorBottom,"S-M-,":new wi.MoveCursorTop,"C-s":new wi.Search,"C-r":new wi.Search,"S-M-5":new wi.SearchReplace};function Nwe(i,e,t,r){var n=i.getEditor(),o=parseInt(t)||1;if(e.run){e.run(n,i,o,r);return}if(typeof e.action=="string")for(var s=0;s{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.Emitter=Un.Event=Un.monacoToEmacsKey=Un.modifierKeys=void 0;var Fwe=(yv(),Qh(_v));Un.modifierKeys={Alt:"M",Control:"C",Ctrl:"C",Meta:"CMD",Shift:"S"};var Bee={Enter:"Return",Space:"SPC",Backslash:"\\",Slash:"/",Backquote:"`",BracketRight:"]",BracketLeft:"[",Comma:",",Period:".",Equal:"=",Minus:"-",Quote:"'",Semicolon:";"},zwe=["Key","Numpad"],Hee="Arrow";function Bwe(i){var e=Fwe.KeyCode[i.keyCode];if(Un.modifierKeys[e])return"";var t=zwe.some(function(r){return e.startsWith(r)})?e[e.length-1]:e;return e.endsWith(Hee)?t=e.substring(0,e.length-Hee.length):Bee[e]&&(t=Bee[t]),t.length===1&&(t=t.toLowerCase()),i.altKey&&(t="".concat(Un.modifierKeys.Alt,"-").concat(t)),i.ctrlKey&&(t="".concat(Un.modifierKeys.Ctrl,"-").concat(t)),i.metaKey&&(t="".concat(Un.modifierKeys.Meta,"-").concat(t)),i.shiftKey&&(t="".concat(Un.modifierKeys.Shift,"-").concat(t)),t}Un.monacoToEmacsKey=Bwe;var Hwe;(function(i){var e={dispose:function(){}};i.None=function(){return e}})(Hwe=Un.Event||(Un.Event={}));var Uwe=function(){function i(){this._listeners=[]}return Object.defineProperty(i.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t){e._listeners.push(t);var r={dispose:function(){if(!e._disposed){var n=e._listeners.indexOf(t);n<0||e._listeners.splice(n,1)}}};return r}),this._event},enumerable:!1,configurable:!0}),i.prototype.fire=function(e){this._listeners.length&&this._listeners.forEach(function(t){return t(e)})},i.prototype.dispose=function(){this._disposed||(this._listeners=void 0,this._disposed=!0)},i}();Un.Emitter=Uwe});var jee=Qi($4=>{"use strict";Object.defineProperty($4,"__esModule",{value:!0});$4.BasicInputWidget=void 0;var jwe=(yv(),Qh(_v)),Ko="ext-emacs-basic-input";function Wwe(){return` .`.concat(Ko,` { color: #d4d4d4; transition: top 200ms linear; @@ -149,23 +149,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .hc-black .`).concat(Ko,` input { color: #ffffff; } -`)}var Vwe=function(){function i(){var e=this;this._pendingPromise=null,this.onKeyDown=function(r){(r.altKey||r.ctrlKey||r.metaKey)&&(r.preventDefault(),r.stopPropagation()),r.which===13?e._pendingPromise&&(r.preventDefault(),e._pendingPromise.resolve(r.target.value),e._pendingPromise=null):r.which===27&&e._pendingPromise&&(e._pendingPromise.reject(),e._pendingPromise=null)},this.onBlur=function(){e._pendingPromise&&(e._pendingPromise.reject(),e._pendingPromise=null)},this._dom=document.createElement("div"),this._messageDom=document.createElement("div");var t=document.createElement("div");this._dom.setAttribute("class",Ko),this._dom.setAttribute("aria-hidden","true"),this._input=document.createElement("input"),this._dom.appendChild(this._messageDom),t.appendChild(this._input),this._dom.appendChild(t),this.addListeners(),this._style=document.createElement("style"),this._style.type="text/css",this._style.textContent=Wwe(),(document.head||document.body).appendChild(this._style)}return i.prototype.getDomNode=function(){return this._dom},i.prototype.getId=function(){return"extension.emacs.basicinput"},i.prototype.getPosition=function(){return{preference:jwe.editor.OverlayWidgetPositionPreference.TOP_RIGHT_CORNER}},i.prototype.addListeners=function(){this._input.addEventListener("keydown",this.onKeyDown),this._input.addEventListener("blur",this.onBlur)},i.prototype.showWidgetAndFocus=function(e){this._dom.classList.add("".concat(Ko,"-visible")),this._dom.setAttribute("aria-hidden","false"),this._messageDom.textContent=e,this._input.focus()},i.prototype.cleanup=function(){this._dom.classList.remove("".concat(Ko,"-visible")),this._dom.setAttribute("aria-hidden","true"),this._messageDom.textContent="",this._input.placeholder="",this._input.value=""},i.prototype.getInput=function(e){var t=this;return this._pendingPromise&&(this._pendingPromise.reject(),this._pendingPromise=null),new Promise(function(r,n){t._pendingPromise={resolve:function(o){r(o),t.cleanup()},reject:function(){n(),t.cleanup()}},t.showWidgetAndFocus(e)})},i.prototype.dispose=function(){this.cleanup(),this._input.removeEventListener("keydown",this.onKeyDown),this._input.removeEventListener("blur",this.onBlur),(document.head||document.body).removeChild(this._style)},i}();$4.BasicInputWidget=Vwe});var Vee=Qi(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.State=xc.EAT_UP_KEY=void 0;var Wee=K4();xc.EAT_UP_KEY="==-==";var qwe=function(){function i(){this._inargumentMode=!1,this._killRing=[]}return i.prototype.updateAndGetKey=function(e){return e==="C-g"&&(this._inargumentMode||this._prefixKey)?(this.resetState(),xc.EAT_UP_KEY):this.updateCuMode(e)?xc.EAT_UP_KEY:this._prefixKey?"".concat(this._prefixKey," ").concat(e):Wee.prefixPreservingKeys[e]?(this._prefixKey=e,xc.EAT_UP_KEY):e},i.prototype.setLastCommandKey=function(e){this._lastCommandKey=e},i.prototype.isLastCommandKey=function(e){return this._lastCommandKey==e},i.prototype.resetState=function(e){e===void 0&&(e=!1),this._inargumentMode=e,this._prefixKey=null,e?this._lastInputBuffer=this._inputBuffer:this._lastInputBuffer=null,this._inputBuffer=null},i.prototype.updateCuMode=function(e){if(this._inargumentMode){if(typeof e=="string"&&/^\d$/.test(e))return this._inputBuffer=(this._inputBuffer||"")+e,!0;if(Wee.prefixPreservingKeys[e])return this.resetState(!0),!1}else if(!this._prefixKey&&e==="C-u")return this._inargumentMode=!0,this._inputBuffer=null,this._lastInputBuffer=null,!0},i.prototype.updateStateOnExecution=function(e){e===void 0&&(e=!1),this.resetState(e)},i.prototype.getInputBuffer=function(){return this._lastInputBuffer||this._inputBuffer},i.prototype.addToRing=function(e){this._killRing.push(e),this._killRing.length>50&&this._killRing.shift()},i.prototype.growRingTop=function(e){this._killRing.length||this.addToRing(e),this._killRing[this._killRing.length-1]+=e},i.prototype.getFromRing=function(e){return this._killRing[this._killRing.length-(e?Math.min(e,1):1)]||""},i.prototype.popFromRing=function(){return this._killRing.length>1?this._killRing.pop():this.getFromRing()},i.prototype.getReadableState=function(){var e="";return this._inargumentMode&&(e+="C-u",this._inputBuffer?e+=" ".concat(this._inputBuffer):this._lastInputBuffer&&(e+=" ".concat(this._lastInputBuffer))),this._prefixKey&&(e+=" ".concat(this._prefixKey)),e},i}();xc.State=qwe});var Yee=Qi(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.getConfiguration=ym.EmacsExtension=void 0;var jh=(yv(),Qh(_v)),Kwe=dee(),G4=Nee(),qee=K4(),cR=Uee(),$we=jee(),Kee=Vee(),$ee=jh.editor,dR=$ee.TextEditorCursorBlinkingStyle,uR=$ee.TextEditorCursorStyle,Gwe=function(){function i(e){this._disposables=[],this._inSelectionMode=!1,this._changeDisposable=null,this._state=new Kee.State,this._onDidMarkChange=new cR.Emitter,this.onDidMarkChange=this._onDidMarkChange.event,this._onDidChangeKey=new cR.Emitter,this.onDidChangeKey=this._onDidChangeKey.event,this._editor=e;var t=Gee(e);this._intialCursorType=t.cursorStyle,this._intialCursorBlinking=t.cursorBlinking,this._basicInputWidget=new $we.BasicInputWidget}return i.prototype.start=function(){this._disposables.length||(this.addListeners(),this._editor.updateOptions({cursorStyle:G4(uR[uR.Block]),cursorBlinking:G4(dR[dR.Blink])}),this._editor.addOverlayWidget(this._basicInputWidget))},Object.defineProperty(i.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),i.prototype.getEditor=function(){return this._editor},i.prototype.addListeners=function(){this._disposables.push(this._editor.onKeyDown(this.onKeyDown.bind(this))),this._throttledScroll=Kwe(this.onEditorScroll.bind(this),500),this._disposables.push(this._editor.onDidScrollChange(this._throttledScroll))},i.prototype.cancelKey=function(e){e.preventDefault(),e.stopPropagation()},i.prototype.onKeyDown=function(e){if(!e.browserEvent.defaultPrevented){var t=(0,cR.monacoToEmacsKey)(e);if(t){if(t=this._state.updateAndGetKey(t),this._onDidChangeKey.fire(this._state.getReadableState()),t===Kee.EAT_UP_KEY){this._onDidChangeKey.fire(this._state.getReadableState()),this.cancelKey(e);return}var r=qee.COMMANDS[t];if(!r){this._onDidChangeKey.fire(this._state.getReadableState()),this._state.setLastCommandKey(t);return}this.cancelKey(e);var n=this._state.isLastCommandKey(t);(0,qee.executeCommand)(this,r,this._state.getInputBuffer(),n),this._state.setLastCommandKey(t),this._state.updateStateOnExecution()}}},i.prototype.onEditorScroll=function(){var e=this._editor.getLayoutInfo().height,t=this._editor.getScrolledVisiblePosition(this._editor.getPosition());if(!(t.top>=0&&t.top<=e)){var r=this._editor.getVisibleRanges();if(r.length){var n,o=this._editor.getSelection();t.top<0?n=new jh.Position(r[0].getStartPosition().lineNumber,1):t.top>e&&(n=new jh.Position(r[r.length-1].getEndPosition().lineNumber,1)),this._inSelectionMode?this._editor.setSelection(jh.Selection.fromPositions(o.getStartPosition(),n)):this._editor.setPosition(n)}}},i.prototype.onContentChange=function(){this.selectionMode=!1},i.prototype.clearState=function(){this._state.updateStateOnExecution()},Object.defineProperty(i.prototype,"selectionMode",{get:function(){return this._inSelectionMode},set:function(e){e!==this._inSelectionMode&&(this._inSelectionMode=e,e?this._changeDisposable=this._editor.onDidChangeModelContent(this.onContentChange.bind(this)):this._changeDisposable&&(this._changeDisposable.dispose(),this._changeDisposable=null),this._onDidMarkChange.fire(e))},enumerable:!1,configurable:!0}),i.prototype.getCursorAnchor=function(){var e=this._editor.getSelection(),t=e.getDirection();return t===jh.SelectionDirection.LTR?e.getEndPosition():e.getStartPosition()},i.prototype.getBasicInput=function(e){return this._basicInputWidget.getInput(e)},i.prototype.dispose=function(){this._disposables.forEach(function(e){return e.dispose()}),this._disposables=void 0,this._changeDisposable&&(this._changeDisposable.dispose(),this._changeDisposable=null),this._editor.updateOptions({cursorStyle:this._intialCursorType,cursorBlinking:this._intialCursorBlinking}),this._editor.removeOverlayWidget(this._basicInputWidget),this._basicInputWidget.dispose(),this._throttledScroll.cancel(),this._state=null},i}();ym.EmacsExtension=Gwe;function Gee(i){var e=i.getOption(jh.editor.EditorOption.cursorStyle),t=i.getOption(jh.editor.EditorOption.cursorBlinking);return{cursorStyle:G4(uR[e]),cursorBlinking:G4(dR[t])}}ym.getConfiguration=Gee});var Qee=Qi($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.Actions=$o.EmacsExtension=$o.unregisterKey=$o.getAllMappings=$o.registerGlobalCommand=void 0;var Xee=Yee();Object.defineProperty($o,"EmacsExtension",{enumerable:!0,get:function(){return Xee.EmacsExtension}});var hR=K4();Object.defineProperty($o,"registerGlobalCommand",{enumerable:!0,get:function(){return hR.registerGlobalCommand}});Object.defineProperty($o,"getAllMappings",{enumerable:!0,get:function(){return hR.getAllMappings}});Object.defineProperty($o,"unregisterKey",{enumerable:!0,get:function(){return hR.unregisterKey}});var Ywe=lR();$o.Actions=Ywe;$o.default=Xee.EmacsExtension});var mie=Qi((pie,p9)=>{(function(i){if(typeof pie=="object"&&typeof p9!="undefined")p9.exports=i();else if(typeof define=="function"&&define.amd)define([],i);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.HyperList=i()}})(function(){var i,e,t;return function(){function r(n,o,s){function a(d,u){if(!o[d]){if(!n[d]){var h=typeof lu=="function"&&lu;if(!u&&h)return h(d,!0);if(l)return l(d,!0);var f=new Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f}var m=o[d]={exports:{}};n[d][0].call(m.exports,function(g){var w=n[d][1][g];return a(w||g)},m,m.exports,r,n,o,s)}return o[d].exports}for(var l=typeof lu=="function"&&lu,c=0;cw._averageHeight){var Y=w._renderChunk();w._lastRepaint=N,Y!==!1&&typeof _.afterRender=="function"&&_.afterRender()}}};E()}return s(f,[{key:"destroy",value:function(){window.cancelAnimationFrame(this._renderAnimationFrame)}},{key:"refresh",value:function(g,w){var _;if(Object.assign(this._config,c,w),!g||g.nodeType!==1)throw new Error("HyperList requires a valid DOM Node container");this._element=g;var E=this._config,I=this._scroller||E.scroller||document.createElement(E.scrollerTagName||"tr");if(typeof E.useFragment!="boolean"&&(this._config.useFragment=!0),!E.generate)throw new Error("Missing required `generate` function");if(!d(E.total))throw new Error("Invalid required `total` value, expected number");if(!Array.isArray(E.itemHeight)&&!d(E.itemHeight))throw new Error("\n Invalid required `itemHeight` value, expected number or array\n ".trim());d(E.itemHeight)?this._itemHeights=Array(E.total).fill(E.itemHeight):this._itemHeights=E.itemHeight,Object.keys(c).filter(function(dt){return dt in E}).forEach(function(dt){var be=E[dt],we=d(be);if(be&&typeof be!="string"&&typeof be!="number"){var X="Invalid optional `"+dt+"`, expected string or number";throw new Error(X)}else we&&(E[dt]=be+"px")});var N=!!E.horizontal,U=E[N?"width":"height"];if(U){var z=d(U),Y=z?!1:U.slice(-1)==="%",le=z?U:parseInt(U.replace(/px|%/,""),10),re=window[N?"innerWidth":"innerHeight"];Y?this._containerSize=re*le/100:this._containerSize=d(U)?U:le}var Z=E.scrollContainer,ye=E.itemHeight*E.total,Pe=this._maxElementHeight;ye>Pe&&console.warn(["HyperList: The maximum element height",Pe+"px has","been exceeded; please reduce your item height."].join(" "));var Ee={width:""+E.width,height:Z?ye+"px":""+E.height,overflow:Z?"none":"auto",position:"relative"};f.mergeStyle(g,Ee),Z&&f.mergeStyle(E.scrollContainer,{overflow:"auto"});var Oe=(_={opacity:"0",position:"absolute"},a(_,N?"height":"width","1px"),a(_,N?"width":"height",ye+"px"),_);f.mergeStyle(I,Oe),this._scroller||g.appendChild(I);var Xe=this._computeScrollPadding();this._scrollPaddingBottom=Xe.bottom,this._scrollPaddingTop=Xe.top,this._scroller=I,this._scrollHeight=this._computeScrollHeight(),this._itemPositions=this._itemPositions||Array(E.total).fill(0),this._computePositions(0),this._renderChunk(this._lastRepaint!==null),typeof E.afterRender=="function"&&E.afterRender()}},{key:"_getRow",value:function(g){var w=this._config,_=w.generate(g),E=_.height;if(E!==void 0&&d(E)?(_=_.element,E!==this._itemHeights[g]&&(this._itemHeights[g]=E,this._computePositions(g),this._scrollHeight=this._computeScrollHeight(g))):E=this._itemHeights[g],!_||_.nodeType!==1)throw new Error("Generator did not return a DOM Node for index: "+g);u(_,w.rowClassName||"vrow");var I=this._itemPositions[g]+this._scrollPaddingTop;return f.mergeStyle(_,a({position:"absolute"},w.horizontal?"left":"top",I+"px")),_}},{key:"_getScrollPosition",value:function(){var g=this._config;return typeof g.overrideScrollPosition=="function"?g.overrideScrollPosition():this._element[g.horizontal?"scrollLeft":"scrollTop"]}},{key:"_renderChunk",value:function(g){var w=this._config,_=this._element,E=this._getScrollPosition(),I=w.total,N=w.reverse?this._getReverseFrom(E):this._getFrom(E)-1;if((N<0||N-this._screenItemsLen<0)&&(N=0),!g&&this._lastFrom===N)return!1;this._lastFrom=N;var U=N+this._cachedItemsLen;(U>I||U+this._cachedItemsLen>I)&&(U=I);var z=w.useFragment?document.createDocumentFragment():[],Y=this._scroller;z[w.useFragment?"appendChild":"push"](Y);for(var le=N;le0&&arguments[0]!==void 0?arguments[0]:1,w=this._config,_=w.total,E=w.reverse;g<1&&!E&&(g=1);for(var I=g;I<_;I++)E?I===0?this._itemPositions[0]=this._scrollHeight-this._itemHeights[0]:this._itemPositions[I]=this._itemPositions[I-1]-this._itemHeights[I]:this._itemPositions[I]=this._itemHeights[I-1]+this._itemPositions[I-1]}},{key:"_computeScrollHeight",value:function(){var g,w=this,_=this._config,E=!!_.horizontal,I=_.total,N=this._itemHeights.reduce(function(ye,Pe){return ye+Pe},0)+this._scrollPaddingBottom+this._scrollPaddingTop;f.mergeStyle(this._scroller,(g={opacity:0,position:"absolute",top:"0px"},a(g,E?"height":"width","1px"),a(g,E?"width":"height",N+"px"),g));var U=this._itemHeights.slice(0).sort(function(ye,Pe){return ye-Pe}),z=Math.floor(I/2),Y=I%2===0?(U[z]+U[z-1])/2:U[z],le=E?"clientWidth":"clientHeight",re=_.scrollContainer?_.scrollContainer:this._element,Z=re[le]?re[le]:this._containerSize;return this._screenItemsLen=Math.ceil(Z/Y),this._containerSize=Z,this._cachedItemsLen=Math.max(this._cachedItemsLen||0,this._screenItemsLen*3),this._averageHeight=Y,_.reverse&&window.requestAnimationFrame(function(){E?w._element.scrollLeft=N:w._element.scrollTop=N}),N}},{key:"_computeScrollPadding",value:function(){var g=this._config,w=!!g.horizontal,_=g.reverse,E=window.getComputedStyle(this._element),I=function(U){var z=E.getPropertyValue("padding-"+U);return parseInt(z,10)||0};return w&&_?{bottom:I("left"),top:I("right")}:w?{bottom:I("right"),top:I("left")}:_?{bottom:I("top"),top:I("bottom")}:{bottom:I("bottom"),top:I("top")}}},{key:"_getFrom",value:function(g){for(var w=0;this._itemPositions[w]0&&this._itemPositions[w]{(function(i,e){"use strict";function t(){r.width=i.innerWidth,r.height=5*c.barThickness;var u=r.getContext("2d");u.shadowBlur=c.shadowBlur,u.shadowColor=c.shadowColor;var h,f=u.createLinearGradient(0,0,r.width,0);for(h in c.barColors)f.addColorStop(h,c.barColors[h]);u.lineWidth=c.barThickness,u.beginPath(),u.moveTo(0,c.barThickness/2),u.lineTo(Math.ceil(n*r.width),c.barThickness/2),u.strokeStyle=f,u.stroke()}var r,n,o,s=null,a=null,l=null,c={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},d={config:function(u){for(var h in u)c.hasOwnProperty(h)&&(c[h]=u[h])},show:function(u){var h,f;o||(u?l=l||setTimeout(()=>d.show(),u):(o=!0,a!==null&&i.cancelAnimationFrame(a),r||((f=(r=e.createElement("canvas")).style).position="fixed",f.top=f.left=f.right=f.margin=f.padding=0,f.zIndex=100001,f.display="none",c.className&&r.classList.add(c.className),e.body.appendChild(r),h="resize",u=t,(f=i).addEventListener?f.addEventListener(h,u,!1):f.attachEvent?f.attachEvent("on"+h,u):f["on"+h]=u),r.style.opacity=1,r.style.display="block",d.progress(0),c.autoRun&&function m(){s=i.requestAnimationFrame(m),d.progress("+"+.05*Math.pow(1-Math.sqrt(n),2))}()))},progress:function(u){return u===void 0||(typeof u=="string"&&(u=(0<=u.indexOf("+")||0<=u.indexOf("-")?n:0)+parseFloat(u)),n=1typeof i=="function"?i:function(){return i},Ene=typeof self!="undefined"?self:null,hg=typeof window!="undefined"?window:null,pg=Ene||hg||pg,Tne="2.0.0",Sa={connecting:0,open:1,closing:2,closed:3},Ine=1e4,Ane=1e3,Ro={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Il={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},zk={longpoll:"longpoll",websocket:"websocket"},Lne={complete:4},ay=class{constructor(i,e,t,r){this.channel=i,this.event=e,this.payload=t||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(i){this.timeout=i,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(i,e){return this.hasReceived(i)&&e(this.receivedResp.response),this.recHooks.push({status:i,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:i,response:e,_ref:t}){this.recHooks.filter(r=>r.status===i).forEach(r=>r.callback(e))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,i=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=i,this.matchReceive(i)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(i){return this.receivedResp&&this.receivedResp.status===i}trigger(i,e){this.channel.trigger(this.refEvent,{status:i,response:e})}},kz=class{constructor(i,e){this.callback=i,this.timerCalc=e,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},Dne=class{constructor(i,e,t){this.state=Ro.closed,this.topic=i,this.params=fg(e||{}),this.socket=t,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new ay(this,Il.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new kz(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Ro.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=Ro.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=Ro.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=Ro.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new ay(this,Il.leave,fg({}),this.timeout).send(),this.state=Ro.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Il.reply,(r,n)=>{this.trigger(this.replyEventName(n),r)})}join(i=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=i,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(i){this.on(Il.close,i)}onError(i){return this.on(Il.error,e=>i(e))}on(i,e){let t=this.bindingRef++;return this.bindings.push({event:i,ref:t,callback:e}),t}off(i,e){this.bindings=this.bindings.filter(t=>!(t.event===i&&(typeof e=="undefined"||e===t.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(i,e,t=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${i}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new ay(this,i,function(){return e},t);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(i=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Ro.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Il.close,"leave")},t=new ay(this,Il.leave,fg({}),i);return t.receive("ok",()=>e()).receive("timeout",()=>e()),t.send(),this.canPush()||t.trigger("ok",{}),t}onMessage(i,e,t){return e}isMember(i,e,t,r){return this.topic!==i?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:i,event:e,payload:t,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(i=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Ro.joining,this.joinPush.resend(i))}trigger(i,e,t,r){let n=this.onMessage(i,e,t,r);if(e&&!n)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let o=this.bindings.filter(s=>s.event===i);for(let s=0;s{let a=this.parseJSON(i.responseText);s&&s(a)},o&&(i.ontimeout=o),i.onprogress=()=>{},i.send(r),i}static xhrRequest(i,e,t,r,n,o,s,a){return i.open(e,t,!0),i.timeout=o,i.setRequestHeader("Content-Type",r),i.onerror=()=>a&&a(null),i.onreadystatechange=()=>{if(i.readyState===Lne.complete&&a){let l=this.parseJSON(i.responseText);a(l)}},s&&(i.ontimeout=s),i.send(n),i}static parseJSON(i){if(!i||i==="")return null;try{return JSON.parse(i)}catch(e){return console&&console.log("failed to parse JSON response",i),null}}static serialize(i,e){let t=[];for(var r in i){if(!Object.prototype.hasOwnProperty.call(i,r))continue;let n=e?`${e}[${r}]`:r,o=i[r];typeof o=="object"?t.push(this.serialize(o,n)):t.push(encodeURIComponent(n)+"="+encodeURIComponent(o))}return t.join("&")}static appendParams(i,e){if(Object.keys(e).length===0)return i;let t=i.match(/\?/)?"&":"?";return`${i}${t}${this.serialize(e)}`}},Mne=i=>{let e="",t=new Uint8Array(i),r=t.byteLength;for(let n=0;nthis.ontimeout(),i=>{if(i){var{status:e,token:t,messages:r}=i;this.token=t}else e=0;switch(e){case 200:r.forEach(n=>{setTimeout(()=>this.onmessage({data:n}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Sa.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${e}`)}})}send(i){typeof i!="string"&&(i=Mne(i)),this.currentBatch?this.currentBatch.push(i):this.awaitingBatchAck?this.batchBuffer.push(i):(this.currentBatch=[i],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(i){this.awaitingBatchAck=!0,this.ajax("POST","application/x-ndjson",i.join(` -`),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,!e||e.status!==200?(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(i,e,t){for(let n of this.reqs)n.abort();this.readyState=Sa.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:i,reason:e,wasClean:t});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent!="undefined"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(i,e,t,r,n){let o,s=()=>{this.reqs.delete(o),r()};o=cy.request(i,this.endpointURL(),e,t,this.timeout,s,a=>{this.reqs.delete(o),this.isActive()&&n(a)}),this.reqs.add(o)}};var ly={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(i,e){if(i.payload.constructor===ArrayBuffer)return e(this.binaryEncode(i));{let t=[i.join_ref,i.ref,i.topic,i.event,i.payload];return e(JSON.stringify(t))}},decode(i,e){if(i.constructor===ArrayBuffer)return e(this.binaryDecode(i));{let[t,r,n,o,s]=JSON.parse(i);return e({join_ref:t,ref:r,topic:n,event:o,payload:s})}},binaryEncode(i){let{join_ref:e,ref:t,event:r,topic:n,payload:o}=i,s=this.META_LENGTH+e.length+t.length+n.length+r.length,a=new ArrayBuffer(this.HEADER_LENGTH+s),l=new DataView(a),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,e.length),l.setUint8(c++,t.length),l.setUint8(c++,n.length),l.setUint8(c++,r.length),Array.from(e,u=>l.setUint8(c++,u.charCodeAt(0))),Array.from(t,u=>l.setUint8(c++,u.charCodeAt(0))),Array.from(n,u=>l.setUint8(c++,u.charCodeAt(0))),Array.from(r,u=>l.setUint8(c++,u.charCodeAt(0)));var d=new Uint8Array(a.byteLength+o.byteLength);return d.set(new Uint8Array(a),0),d.set(new Uint8Array(o),a.byteLength),d.buffer},binaryDecode(i){let e=new DataView(i),t=e.getUint8(0),r=new TextDecoder;switch(t){case this.KINDS.push:return this.decodePush(i,e,r);case this.KINDS.reply:return this.decodeReply(i,e,r);case this.KINDS.broadcast:return this.decodeBroadcast(i,e,r)}},decodePush(i,e,t){let r=e.getUint8(1),n=e.getUint8(2),o=e.getUint8(3),s=this.HEADER_LENGTH+this.META_LENGTH-1,a=t.decode(i.slice(s,s+r));s=s+r;let l=t.decode(i.slice(s,s+n));s=s+n;let c=t.decode(i.slice(s,s+o));s=s+o;let d=i.slice(s,i.byteLength);return{join_ref:a,ref:null,topic:l,event:c,payload:d}},decodeReply(i,e,t){let r=e.getUint8(1),n=e.getUint8(2),o=e.getUint8(3),s=e.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=t.decode(i.slice(a,a+r));a=a+r;let c=t.decode(i.slice(a,a+n));a=a+n;let d=t.decode(i.slice(a,a+o));a=a+o;let u=t.decode(i.slice(a,a+s));a=a+s;let h=i.slice(a,i.byteLength),f={status:u,response:h};return{join_ref:l,ref:c,topic:d,event:Il.reply,payload:f}},decodeBroadcast(i,e,t){let r=e.getUint8(1),n=e.getUint8(2),o=this.HEADER_LENGTH+2,s=t.decode(i.slice(o,o+r));o=o+r;let a=t.decode(i.slice(o,o+n));o=o+n;let l=i.slice(o,i.byteLength);return{join_ref:null,ref:null,topic:s,event:a,payload:l}}},dy=class{constructor(i,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=e.timeout||Ine,this.transport=e.transport||pg.WebSocket||Fk,this.establishedConnections=0,this.defaultEncoder=ly.encode.bind(ly),this.defaultDecoder=ly.decode.bind(ly),this.closeWasClean=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Fk?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let t=null;hg&&hg.addEventListener&&(hg.addEventListener("pagehide",r=>{this.conn&&(this.disconnect(),t=this.connectClock)}),hg.addEventListener("pageshow",r=>{t===this.connectClock&&(t=null,this.connect())})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=r=>e.rejoinAfterMs?e.rejoinAfterMs(r):[1e3,2e3,5e3][r-1]||1e4,this.reconnectAfterMs=r=>e.reconnectAfterMs?e.reconnectAfterMs(r):[10,50,100,150,200,250,500,1e3,2e3][r-1]||5e3,this.logger=e.logger||null,this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=fg(e.params||{}),this.endPoint=`${i}/${zk.websocket}`,this.vsn=e.vsn||Tne,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new kz(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Fk}replaceTransport(i){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=i}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let i=cy.appendParams(cy.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return i.charAt(0)!=="/"?i:i.charAt(1)==="/"?`${this.protocol()}:${i}`:`${this.protocol()}://${location.host}${i}`}disconnect(i,e,t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(i,e,t)}connect(i){i&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=fg(i)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e))}log(i,e,t){this.logger(i,e,t)}hasLogger(){return this.logger!==null}onOpen(i){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,i]),e}onClose(i){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,i]),e}onError(i){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,i]),e}onMessage(i){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,i]),e}ping(i){if(!this.isConnected())return!1;let e=this.makeRef(),t=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let r=this.onMessage(n=>{n.ref===e&&(this.off([r]),i(Date.now()-t))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,i])=>i())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),Ane,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(i,e,t){if(!this.conn)return i&&i();this.waitForBufferDone(()=>{this.conn&&(e?this.conn.close(e,t||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),i&&i()})})}waitForBufferDone(i,e=1){if(e===5||!this.conn||!this.conn.bufferedAmount){i();return}setTimeout(()=>{this.waitForBufferDone(i,e+1)},150*e)}waitForSocketClosed(i,e=1){if(e===5||!this.conn||this.conn.readyState===Sa.closed){i();return}setTimeout(()=>{this.waitForSocketClosed(i,e+1)},150*e)}onConnClose(i){let e=i&&i.code;this.hasLogger()&&this.log("transport","close",i),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&e!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,t])=>t(i))}onConnError(i){this.hasLogger()&&this.log("transport",i);let e=this.transport,t=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,r])=>{r(i,e,t)}),(e===this.transport||t>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(i=>{i.isErrored()||i.isLeaving()||i.isClosed()||i.trigger(Il.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Sa.connecting:return"connecting";case Sa.open:return"open";case Sa.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(i){this.off(i.stateChangeRefs),this.channels=this.channels.filter(e=>e.joinRef()!==i.joinRef())}off(i){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter(([t])=>i.indexOf(t)===-1)}channel(i,e={}){let t=new Dne(i,e,this);return this.channels.push(t),t}push(i){if(this.hasLogger()){let{topic:e,event:t,payload:r,ref:n,join_ref:o}=i;this.log("push",`${e} ${t} (${o}, ${n})`,r)}this.isConnected()?this.encode(i,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(i,e=>this.conn.send(e)))}makeRef(){let i=this.ref+1;return i===this.ref?this.ref=0:this.ref=i,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(i=>i()),this.sendBuffer=[])}onConnMessage(i){this.decode(i.data,e=>{let{topic:t,event:r,payload:n,ref:o,join_ref:s}=e;o&&o===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${n.status||""} ${t} ${r} ${o&&"("+o+")"||""}`,n);for(let a=0;at.topic===i&&(t.isJoined()||t.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${i}"`),e.leave())}};var Xz="consecutive-reloads",Nne=10,Rne=5e3,Pne=1e4,One=3e4,Qz=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading"],Ll="data-phx-component",Bk="data-phx-link",Fne="track-static",zne="data-phx-link-state",os="data-phx-ref",Su="data-phx-ref-src",Zz="track-uploads",Zc="data-phx-upload-ref",Zk="data-phx-preflighted-refs",Bne="data-phx-done-refs",Ez="drop-target",Yk="data-phx-active-refs",Cy="phx:live-file:updated",Jz="data-phx-skip",eB="data-phx-id",Tz="data-phx-prune",Iz="page-loading",Az="phx-connected",mg="phx-loading",Hk="phx-no-feedback",uy="phx-error",Lz="phx-client-error",Uk="phx-server-error",Tf="data-phx-parent-id",Jk="data-phx-main",Sg="data-phx-root-id",tB="viewport-top",iB="viewport-bottom",Hne="trigger-action",ky="feedback-for",Xk="phx-has-focused",Une=["text","textarea","number","email","password","search","tel","url","date","time","datetime-local","color","range"],rB=["checkbox","radio"],Ey="phx-has-submitted",Jc="data-phx-session",Af=`[${Jc}]`,Dz="data-phx-sticky",xg="data-phx-static",jk="data-phx-readonly",hy="data-phx-disabled",Qk="disable-with",fy="data-phx-disable-with-restore",gg="hook",jne="debounce",Wne="throttle",Ty="update",py="stream",bg="data-phx-stream",Vne="key",ka="phxPrivate",Mz="auto-recover",my="phx:live-socket:debug",Wk="phx:live-socket:profiling",Vk="phx:live-socket:latency-sim",qne="progress",Nz="mounted",Kne=1,$ne=200,Gne="phx-",Yne=3e4,vg="debounce-trigger",gy="throttled",Rz="debounce-prev-key",Xne={debounce:300,throttle:300},by="d",Ea="s",qk="r",Po="c",Pz="e",Oz="r",Fz="t",Qne="p",zz="stream",Zne=class{constructor(i,e,t){this.liveSocket=t,this.entry=i,this.offset=0,this.chunkSize=e,this.chunkTimer=null,this.errored=!1,this.uploadChannel=t.channel(`lvu:${i.ref}`,{token:i.metadata()})}error(i){this.errored||(this.errored=!0,clearTimeout(this.chunkTimer),this.entry.error(i))}upload(){this.uploadChannel.onError(i=>this.error(i)),this.uploadChannel.join().receive("ok",i=>this.readNextChunk()).receive("error",i=>this.error(i))}isDone(){return this.offset>=this.entry.file.size}readNextChunk(){let i=new window.FileReader,e=this.entry.file.slice(this.offset,this.chunkSize+this.offset);i.onload=t=>{if(t.target.error===null)this.offset+=t.target.result.byteLength,this.pushChunk(t.target.result);else return Oo("Read error: "+t.target.error)},i.readAsArrayBuffer(e)}pushChunk(i){this.uploadChannel.isJoined()&&this.uploadChannel.push("chunk",i).receive("ok",()=>{this.entry.progress(this.offset/this.entry.file.size*100),this.isDone()||(this.chunkTimer=setTimeout(()=>this.readNextChunk(),this.liveSocket.getLatencySim()||0))}).receive("error",({reason:e})=>this.error(e))}},Oo=(i,e)=>console.error&&console.error(i,e),Al=i=>{let e=typeof i;return e==="number"||e==="string"&&/^(0|[1-9]\d*)$/.test(i)};function Jne(){let i=new Set,e=document.querySelectorAll("*[id]");for(let t=0,r=e.length;t{i.liveSocket.isDebugEnabled()&&console.log(`${i.id} ${e}: ${t} - `,r)},Kk=i=>typeof i=="function"?i:function(){return i},Sy=i=>JSON.parse(JSON.stringify(i)),Cg=(i,e,t)=>{do{if(i.matches(`[${e}]`)&&!i.disabled)return i;i=i.parentElement||i.parentNode}while(i!==null&&i.nodeType===1&&!(t&&t.isSameNode(i)||i.matches(Af)));return null},_g=i=>i!==null&&typeof i=="object"&&!(i instanceof Array),toe=(i,e)=>JSON.stringify(i)===JSON.stringify(e),Bz=i=>{for(let e in i)return!1;return!0},Qc=(i,e)=>i&&e(i),ioe=function(i,e,t,r){i.forEach(n=>{new Zne(n,t.config.chunk_size,r).upload()})},nB={canPushState(){return typeof history.pushState!="undefined"},dropLocal(i,e,t){return i.removeItem(this.localKey(e,t))},updateLocal(i,e,t,r,n){let o=this.getLocal(i,e,t),s=this.localKey(e,t),a=o===null?r:n(o);return i.setItem(s,JSON.stringify(a)),a},getLocal(i,e,t){return JSON.parse(i.getItem(this.localKey(e,t)))},updateCurrentState(i){this.canPushState()&&history.replaceState(i(history.state||{}),"",window.location.href)},pushState(i,e,t){if(this.canPushState()){if(t!==window.location.href){if(e.type=="redirect"&&e.scroll){let n=history.state||{};n.scroll=e.scroll,history.replaceState(n,"",window.location.href)}delete e.scroll,history[i+"State"](e,"",t||null);let r=this.getHashTargetEl(window.location.hash);r?r.scrollIntoView():e.type==="redirect"&&window.scroll(0,0)}}else this.redirect(t)},setCookie(i,e){document.cookie=`${i}=${e}`},getCookie(i){return document.cookie.replace(new RegExp(`(?:(?:^|.*;s*)${i}s*=s*([^;]*).*$)|^.*$`),"$1")},redirect(i,e){e&&nB.setCookie("__phoenix_flash__",e+"; max-age=60000; path=/"),window.location=i},localKey(i,e){return`${i}-${e}`},getHashTargetEl(i){let e=i.toString().substring(1);if(e!=="")return document.getElementById(e)||document.querySelector(`a[name="${e}"]`)}},Ta=nB,ns={byId(i){return document.getElementById(i)||Oo(`no id found for ${i}`)},removeClass(i,e){i.classList.remove(e),i.classList.length===0&&i.removeAttribute("class")},all(i,e,t){if(!i)return[];let r=Array.from(i.querySelectorAll(e));return t?r.forEach(t):r},childNodeLength(i){let e=document.createElement("template");return e.innerHTML=i,e.content.childElementCount},isUploadInput(i){return i.type==="file"&&i.getAttribute(Zc)!==null},isAutoUpload(i){return i.hasAttribute("data-phx-auto-upload")},findUploadInputs(i){return this.all(i,`input[type="file"][${Zc}]`)},findComponentNodeList(i,e){return this.filterWithinSameLiveView(this.all(i,`[${Ll}="${e}"]`),i)},isPhxDestroyed(i){return!!(i.id&&ns.private(i,"destroyed"))},wantsNewTab(i){let e=i.ctrlKey||i.shiftKey||i.metaKey||i.button&&i.button===1,t=i.target instanceof HTMLAnchorElement&&i.target.hasAttribute("download"),r=i.target.hasAttribute("target")&&i.target.getAttribute("target").toLowerCase()==="_blank";return e||r||t},isUnloadableFormSubmit(i){return i.target&&i.target.getAttribute("method")==="dialog"||i.submitter&&i.submitter.getAttribute("formmethod")==="dialog"?!1:!i.defaultPrevented&&!this.wantsNewTab(i)},isNewPageClick(i,e){let t=i.target instanceof HTMLAnchorElement?i.target.getAttribute("href"):null,r;if(i.defaultPrevented||t===null||this.wantsNewTab(i)||t.startsWith("mailto:")||t.startsWith("tel:")||i.target.isContentEditable)return!1;try{r=new URL(t)}catch(n){try{r=new URL(t,e)}catch(o){return!0}}return r.host===e.host&&r.protocol===e.protocol&&r.pathname===e.pathname&&r.search===e.search?r.hash===""&&!r.href.endsWith("#"):r.protocol.startsWith("http")},markPhxChildDestroyed(i){this.isPhxChild(i)&&i.setAttribute(Jc,""),this.putPrivate(i,"destroyed",!0)},findPhxChildrenInFragment(i,e){let t=document.createElement("template");return t.innerHTML=i,this.findPhxChildren(t.content,e)},isIgnored(i,e){return(i.getAttribute(e)||i.getAttribute("data-phx-update"))==="ignore"},isPhxUpdate(i,e,t){return i.getAttribute&&t.indexOf(i.getAttribute(e))>=0},findPhxSticky(i){return this.all(i,`[${Dz}]`)},findPhxChildren(i,e){return this.all(i,`${Af}[${Tf}="${e}"]`)},findParentCIDs(i,e){let t=new Set(e),r=e.reduce((n,o)=>{let s=`[${Ll}="${o}"] [${Ll}]`;return this.filterWithinSameLiveView(this.all(i,s),i).map(a=>parseInt(a.getAttribute(Ll))).forEach(a=>n.delete(a)),n},t);return r.size===0?new Set(e):r},filterWithinSameLiveView(i,e){return e.querySelector(Af)?i.filter(t=>this.withinSameLiveView(t,e)):i},withinSameLiveView(i,e){for(;i=i.parentNode;){if(i.isSameNode(e))return!0;if(i.getAttribute(Jc)!==null)return!1}},private(i,e){return i[ka]&&i[ka][e]},deletePrivate(i,e){i[ka]&&delete i[ka][e]},putPrivate(i,e,t){i[ka]||(i[ka]={}),i[ka][e]=t},updatePrivate(i,e,t,r){let n=this.private(i,e);n===void 0?this.putPrivate(i,e,r(t)):this.putPrivate(i,e,r(n))},copyPrivates(i,e){e[ka]&&(i[ka]=e[ka])},putTitle(i){let e=document.querySelector("title");if(e){let{prefix:t,suffix:r}=e.dataset;document.title=`${t||""}${i}${r||""}`}else document.title=i},debounce(i,e,t,r,n,o,s,a){let l=i.getAttribute(t),c=i.getAttribute(n);l===""&&(l=r),c===""&&(c=o);let d=l||c;switch(d){case null:return a();case"blur":this.once(i,"debounce-blur")&&i.addEventListener("blur",()=>a());return;default:let u=parseInt(d),h=()=>c?this.deletePrivate(i,gy):a(),f=this.incCycle(i,vg,h);if(isNaN(u))return Oo(`invalid throttle/debounce value: ${d}`);if(c){let g=!1;if(e.type==="keydown"){let w=this.private(i,Rz);this.putPrivate(i,Rz,e.key),g=w!==e.key}if(!g&&this.private(i,gy))return!1;a(),this.putPrivate(i,gy,!0),setTimeout(()=>{s()&&this.triggerCycle(i,vg)},u)}else setTimeout(()=>{s()&&this.triggerCycle(i,vg,f)},u);let m=i.form;m&&this.once(m,"bind-debounce")&&m.addEventListener("submit",()=>{Array.from(new FormData(m).entries(),([g])=>{let w=m.querySelector(`[name="${g}"]`);this.incCycle(w,vg),this.deletePrivate(w,gy)})}),this.once(i,"bind-debounce")&&i.addEventListener("blur",()=>this.triggerCycle(i,vg))}},triggerCycle(i,e,t){let[r,n]=this.private(i,e);t||(t=r),t===r&&(this.incCycle(i,e),n())},once(i,e){return this.private(i,e)===!0?!1:(this.putPrivate(i,e,!0),!0)},incCycle(i,e,t=function(){}){let[r]=this.private(i,e)||[0,t];return r++,this.putPrivate(i,e,[r,t]),r},maybeAddPrivateHooks(i,e,t){i.hasAttribute&&(i.hasAttribute(e)||i.hasAttribute(t))&&i.setAttribute("data-phx-hook","Phoenix.InfiniteScroll")},maybeHideFeedback(i,e,t){if(!(this.private(e,Xk)||this.private(e,Ey))){let r=[e.name];e.name.endsWith("[]")&&r.push(e.name.slice(0,-2));let n=r.map(o=>`[${t}="${o}"]`).join(", ");ns.all(i,n,o=>o.classList.add(Hk))}},resetForm(i,e){Array.from(i.elements).forEach(t=>{let r=`[${e}="${t.id}"], +`)}var Vwe=function(){function i(){var e=this;this._pendingPromise=null,this.onKeyDown=function(r){(r.altKey||r.ctrlKey||r.metaKey)&&(r.preventDefault(),r.stopPropagation()),r.which===13?e._pendingPromise&&(r.preventDefault(),e._pendingPromise.resolve(r.target.value),e._pendingPromise=null):r.which===27&&e._pendingPromise&&(e._pendingPromise.reject(),e._pendingPromise=null)},this.onBlur=function(){e._pendingPromise&&(e._pendingPromise.reject(),e._pendingPromise=null)},this._dom=document.createElement("div"),this._messageDom=document.createElement("div");var t=document.createElement("div");this._dom.setAttribute("class",Ko),this._dom.setAttribute("aria-hidden","true"),this._input=document.createElement("input"),this._dom.appendChild(this._messageDom),t.appendChild(this._input),this._dom.appendChild(t),this.addListeners(),this._style=document.createElement("style"),this._style.type="text/css",this._style.textContent=Wwe(),(document.head||document.body).appendChild(this._style)}return i.prototype.getDomNode=function(){return this._dom},i.prototype.getId=function(){return"extension.emacs.basicinput"},i.prototype.getPosition=function(){return{preference:jwe.editor.OverlayWidgetPositionPreference.TOP_RIGHT_CORNER}},i.prototype.addListeners=function(){this._input.addEventListener("keydown",this.onKeyDown),this._input.addEventListener("blur",this.onBlur)},i.prototype.showWidgetAndFocus=function(e){this._dom.classList.add("".concat(Ko,"-visible")),this._dom.setAttribute("aria-hidden","false"),this._messageDom.textContent=e,this._input.focus()},i.prototype.cleanup=function(){this._dom.classList.remove("".concat(Ko,"-visible")),this._dom.setAttribute("aria-hidden","true"),this._messageDom.textContent="",this._input.placeholder="",this._input.value=""},i.prototype.getInput=function(e){var t=this;return this._pendingPromise&&(this._pendingPromise.reject(),this._pendingPromise=null),new Promise(function(r,n){t._pendingPromise={resolve:function(o){r(o),t.cleanup()},reject:function(){n(),t.cleanup()}},t.showWidgetAndFocus(e)})},i.prototype.dispose=function(){this.cleanup(),this._input.removeEventListener("keydown",this.onKeyDown),this._input.removeEventListener("blur",this.onBlur),(document.head||document.body).removeChild(this._style)},i}();$4.BasicInputWidget=Vwe});var Vee=Qi(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.State=xc.EAT_UP_KEY=void 0;var Wee=K4();xc.EAT_UP_KEY="==-==";var qwe=function(){function i(){this._inargumentMode=!1,this._killRing=[]}return i.prototype.updateAndGetKey=function(e){return e==="C-g"&&(this._inargumentMode||this._prefixKey)?(this.resetState(),xc.EAT_UP_KEY):this.updateCuMode(e)?xc.EAT_UP_KEY:this._prefixKey?"".concat(this._prefixKey," ").concat(e):Wee.prefixPreservingKeys[e]?(this._prefixKey=e,xc.EAT_UP_KEY):e},i.prototype.setLastCommandKey=function(e){this._lastCommandKey=e},i.prototype.isLastCommandKey=function(e){return this._lastCommandKey==e},i.prototype.resetState=function(e){e===void 0&&(e=!1),this._inargumentMode=e,this._prefixKey=null,e?this._lastInputBuffer=this._inputBuffer:this._lastInputBuffer=null,this._inputBuffer=null},i.prototype.updateCuMode=function(e){if(this._inargumentMode){if(typeof e=="string"&&/^\d$/.test(e))return this._inputBuffer=(this._inputBuffer||"")+e,!0;if(Wee.prefixPreservingKeys[e])return this.resetState(!0),!1}else if(!this._prefixKey&&e==="C-u")return this._inargumentMode=!0,this._inputBuffer=null,this._lastInputBuffer=null,!0},i.prototype.updateStateOnExecution=function(e){e===void 0&&(e=!1),this.resetState(e)},i.prototype.getInputBuffer=function(){return this._lastInputBuffer||this._inputBuffer},i.prototype.addToRing=function(e){this._killRing.push(e),this._killRing.length>50&&this._killRing.shift()},i.prototype.growRingTop=function(e){this._killRing.length||this.addToRing(e),this._killRing[this._killRing.length-1]+=e},i.prototype.getFromRing=function(e){return this._killRing[this._killRing.length-(e?Math.min(e,1):1)]||""},i.prototype.popFromRing=function(){return this._killRing.length>1?this._killRing.pop():this.getFromRing()},i.prototype.getReadableState=function(){var e="";return this._inargumentMode&&(e+="C-u",this._inputBuffer?e+=" ".concat(this._inputBuffer):this._lastInputBuffer&&(e+=" ".concat(this._lastInputBuffer))),this._prefixKey&&(e+=" ".concat(this._prefixKey)),e},i}();xc.State=qwe});var Yee=Qi(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.getConfiguration=ym.EmacsExtension=void 0;var jh=(yv(),Qh(_v)),Kwe=dee(),G4=Nee(),qee=K4(),cR=Uee(),$we=jee(),Kee=Vee(),$ee=jh.editor,dR=$ee.TextEditorCursorBlinkingStyle,uR=$ee.TextEditorCursorStyle,Gwe=function(){function i(e){this._disposables=[],this._inSelectionMode=!1,this._changeDisposable=null,this._state=new Kee.State,this._onDidMarkChange=new cR.Emitter,this.onDidMarkChange=this._onDidMarkChange.event,this._onDidChangeKey=new cR.Emitter,this.onDidChangeKey=this._onDidChangeKey.event,this._editor=e;var t=Gee(e);this._intialCursorType=t.cursorStyle,this._intialCursorBlinking=t.cursorBlinking,this._basicInputWidget=new $we.BasicInputWidget}return i.prototype.start=function(){this._disposables.length||(this.addListeners(),this._editor.updateOptions({cursorStyle:G4(uR[uR.Block]),cursorBlinking:G4(dR[dR.Blink])}),this._editor.addOverlayWidget(this._basicInputWidget))},Object.defineProperty(i.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),i.prototype.getEditor=function(){return this._editor},i.prototype.addListeners=function(){this._disposables.push(this._editor.onKeyDown(this.onKeyDown.bind(this))),this._throttledScroll=Kwe(this.onEditorScroll.bind(this),500),this._disposables.push(this._editor.onDidScrollChange(this._throttledScroll))},i.prototype.cancelKey=function(e){e.preventDefault(),e.stopPropagation()},i.prototype.onKeyDown=function(e){if(!e.browserEvent.defaultPrevented){var t=(0,cR.monacoToEmacsKey)(e);if(t){if(t=this._state.updateAndGetKey(t),this._onDidChangeKey.fire(this._state.getReadableState()),t===Kee.EAT_UP_KEY){this._onDidChangeKey.fire(this._state.getReadableState()),this.cancelKey(e);return}var r=qee.COMMANDS[t];if(!r){this._onDidChangeKey.fire(this._state.getReadableState()),this._state.setLastCommandKey(t);return}this.cancelKey(e);var n=this._state.isLastCommandKey(t);(0,qee.executeCommand)(this,r,this._state.getInputBuffer(),n),this._state.setLastCommandKey(t),this._state.updateStateOnExecution()}}},i.prototype.onEditorScroll=function(){var e=this._editor.getLayoutInfo().height,t=this._editor.getScrolledVisiblePosition(this._editor.getPosition());if(!(t.top>=0&&t.top<=e)){var r=this._editor.getVisibleRanges();if(r.length){var n,o=this._editor.getSelection();t.top<0?n=new jh.Position(r[0].getStartPosition().lineNumber,1):t.top>e&&(n=new jh.Position(r[r.length-1].getEndPosition().lineNumber,1)),this._inSelectionMode?this._editor.setSelection(jh.Selection.fromPositions(o.getStartPosition(),n)):this._editor.setPosition(n)}}},i.prototype.onContentChange=function(){this.selectionMode=!1},i.prototype.clearState=function(){this._state.updateStateOnExecution()},Object.defineProperty(i.prototype,"selectionMode",{get:function(){return this._inSelectionMode},set:function(e){e!==this._inSelectionMode&&(this._inSelectionMode=e,e?this._changeDisposable=this._editor.onDidChangeModelContent(this.onContentChange.bind(this)):this._changeDisposable&&(this._changeDisposable.dispose(),this._changeDisposable=null),this._onDidMarkChange.fire(e))},enumerable:!1,configurable:!0}),i.prototype.getCursorAnchor=function(){var e=this._editor.getSelection(),t=e.getDirection();return t===jh.SelectionDirection.LTR?e.getEndPosition():e.getStartPosition()},i.prototype.getBasicInput=function(e){return this._basicInputWidget.getInput(e)},i.prototype.dispose=function(){this._disposables.forEach(function(e){return e.dispose()}),this._disposables=void 0,this._changeDisposable&&(this._changeDisposable.dispose(),this._changeDisposable=null),this._editor.updateOptions({cursorStyle:this._intialCursorType,cursorBlinking:this._intialCursorBlinking}),this._editor.removeOverlayWidget(this._basicInputWidget),this._basicInputWidget.dispose(),this._throttledScroll.cancel(),this._state=null},i}();ym.EmacsExtension=Gwe;function Gee(i){var e=i.getOption(jh.editor.EditorOption.cursorStyle),t=i.getOption(jh.editor.EditorOption.cursorBlinking);return{cursorStyle:G4(uR[e]),cursorBlinking:G4(dR[t])}}ym.getConfiguration=Gee});var Qee=Qi($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.Actions=$o.EmacsExtension=$o.unregisterKey=$o.getAllMappings=$o.registerGlobalCommand=void 0;var Xee=Yee();Object.defineProperty($o,"EmacsExtension",{enumerable:!0,get:function(){return Xee.EmacsExtension}});var hR=K4();Object.defineProperty($o,"registerGlobalCommand",{enumerable:!0,get:function(){return hR.registerGlobalCommand}});Object.defineProperty($o,"getAllMappings",{enumerable:!0,get:function(){return hR.getAllMappings}});Object.defineProperty($o,"unregisterKey",{enumerable:!0,get:function(){return hR.unregisterKey}});var Ywe=lR();$o.Actions=Ywe;$o.default=Xee.EmacsExtension});var mie=Qi((pie,p9)=>{(function(i){if(typeof pie=="object"&&typeof p9!="undefined")p9.exports=i();else if(typeof define=="function"&&define.amd)define([],i);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.HyperList=i()}})(function(){var i,e,t;return function(){function r(n,o,s){function a(d,u){if(!o[d]){if(!n[d]){var h=typeof lu=="function"&&lu;if(!u&&h)return h(d,!0);if(l)return l(d,!0);var f=new Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f}var m=o[d]={exports:{}};n[d][0].call(m.exports,function(g){var w=n[d][1][g];return a(w||g)},m,m.exports,r,n,o,s)}return o[d].exports}for(var l=typeof lu=="function"&&lu,c=0;cw._averageHeight){var Y=w._renderChunk();w._lastRepaint=A,Y!==!1&&typeof _.afterRender=="function"&&_.afterRender()}}};E()}return s(f,[{key:"destroy",value:function(){window.cancelAnimationFrame(this._renderAnimationFrame)}},{key:"refresh",value:function(g,w){var _;if(Object.assign(this._config,c,w),!g||g.nodeType!==1)throw new Error("HyperList requires a valid DOM Node container");this._element=g;var E=this._config,L=this._scroller||E.scroller||document.createElement(E.scrollerTagName||"tr");if(typeof E.useFragment!="boolean"&&(this._config.useFragment=!0),!E.generate)throw new Error("Missing required `generate` function");if(!d(E.total))throw new Error("Invalid required `total` value, expected number");if(!Array.isArray(E.itemHeight)&&!d(E.itemHeight))throw new Error("\n Invalid required `itemHeight` value, expected number or array\n ".trim());d(E.itemHeight)?this._itemHeights=Array(E.total).fill(E.itemHeight):this._itemHeights=E.itemHeight,Object.keys(c).filter(function(dt){return dt in E}).forEach(function(dt){var be=E[dt],we=d(be);if(be&&typeof be!="string"&&typeof be!="number"){var X="Invalid optional `"+dt+"`, expected string or number";throw new Error(X)}else we&&(E[dt]=be+"px")});var A=!!E.horizontal,O=E[A?"width":"height"];if(O){var U=d(O),Y=U?!1:O.slice(-1)==="%",oe=U?O:parseInt(O.replace(/px|%/,""),10),te=window[A?"innerWidth":"innerHeight"];Y?this._containerSize=te*oe/100:this._containerSize=d(O)?O:oe}var Z=E.scrollContainer,ve=E.itemHeight*E.total,Pe=this._maxElementHeight;ve>Pe&&console.warn(["HyperList: The maximum element height",Pe+"px has","been exceeded; please reduce your item height."].join(" "));var Ee={width:""+E.width,height:Z?ve+"px":""+E.height,overflow:Z?"none":"auto",position:"relative"};f.mergeStyle(g,Ee),Z&&f.mergeStyle(E.scrollContainer,{overflow:"auto"});var Oe=(_={opacity:"0",position:"absolute"},a(_,A?"height":"width","1px"),a(_,A?"width":"height",ve+"px"),_);f.mergeStyle(L,Oe),this._scroller||g.appendChild(L);var Xe=this._computeScrollPadding();this._scrollPaddingBottom=Xe.bottom,this._scrollPaddingTop=Xe.top,this._scroller=L,this._scrollHeight=this._computeScrollHeight(),this._itemPositions=this._itemPositions||Array(E.total).fill(0),this._computePositions(0),this._renderChunk(this._lastRepaint!==null),typeof E.afterRender=="function"&&E.afterRender()}},{key:"_getRow",value:function(g){var w=this._config,_=w.generate(g),E=_.height;if(E!==void 0&&d(E)?(_=_.element,E!==this._itemHeights[g]&&(this._itemHeights[g]=E,this._computePositions(g),this._scrollHeight=this._computeScrollHeight(g))):E=this._itemHeights[g],!_||_.nodeType!==1)throw new Error("Generator did not return a DOM Node for index: "+g);u(_,w.rowClassName||"vrow");var L=this._itemPositions[g]+this._scrollPaddingTop;return f.mergeStyle(_,a({position:"absolute"},w.horizontal?"left":"top",L+"px")),_}},{key:"_getScrollPosition",value:function(){var g=this._config;return typeof g.overrideScrollPosition=="function"?g.overrideScrollPosition():this._element[g.horizontal?"scrollLeft":"scrollTop"]}},{key:"_renderChunk",value:function(g){var w=this._config,_=this._element,E=this._getScrollPosition(),L=w.total,A=w.reverse?this._getReverseFrom(E):this._getFrom(E)-1;if((A<0||A-this._screenItemsLen<0)&&(A=0),!g&&this._lastFrom===A)return!1;this._lastFrom=A;var O=A+this._cachedItemsLen;(O>L||O+this._cachedItemsLen>L)&&(O=L);var U=w.useFragment?document.createDocumentFragment():[],Y=this._scroller;U[w.useFragment?"appendChild":"push"](Y);for(var oe=A;oe0&&arguments[0]!==void 0?arguments[0]:1,w=this._config,_=w.total,E=w.reverse;g<1&&!E&&(g=1);for(var L=g;L<_;L++)E?L===0?this._itemPositions[0]=this._scrollHeight-this._itemHeights[0]:this._itemPositions[L]=this._itemPositions[L-1]-this._itemHeights[L]:this._itemPositions[L]=this._itemHeights[L-1]+this._itemPositions[L-1]}},{key:"_computeScrollHeight",value:function(){var g,w=this,_=this._config,E=!!_.horizontal,L=_.total,A=this._itemHeights.reduce(function(ve,Pe){return ve+Pe},0)+this._scrollPaddingBottom+this._scrollPaddingTop;f.mergeStyle(this._scroller,(g={opacity:0,position:"absolute",top:"0px"},a(g,E?"height":"width","1px"),a(g,E?"width":"height",A+"px"),g));var O=this._itemHeights.slice(0).sort(function(ve,Pe){return ve-Pe}),U=Math.floor(L/2),Y=L%2===0?(O[U]+O[U-1])/2:O[U],oe=E?"clientWidth":"clientHeight",te=_.scrollContainer?_.scrollContainer:this._element,Z=te[oe]?te[oe]:this._containerSize;return this._screenItemsLen=Math.ceil(Z/Y),this._containerSize=Z,this._cachedItemsLen=Math.max(this._cachedItemsLen||0,this._screenItemsLen*3),this._averageHeight=Y,_.reverse&&window.requestAnimationFrame(function(){E?w._element.scrollLeft=A:w._element.scrollTop=A}),A}},{key:"_computeScrollPadding",value:function(){var g=this._config,w=!!g.horizontal,_=g.reverse,E=window.getComputedStyle(this._element),L=function(O){var U=E.getPropertyValue("padding-"+O);return parseInt(U,10)||0};return w&&_?{bottom:L("left"),top:L("right")}:w?{bottom:L("right"),top:L("left")}:_?{bottom:L("top"),top:L("bottom")}:{bottom:L("bottom"),top:L("top")}}},{key:"_getFrom",value:function(g){for(var w=0;this._itemPositions[w]0&&this._itemPositions[w]{(function(i,e){"use strict";function t(){r.width=i.innerWidth,r.height=5*c.barThickness;var u=r.getContext("2d");u.shadowBlur=c.shadowBlur,u.shadowColor=c.shadowColor;var h,f=u.createLinearGradient(0,0,r.width,0);for(h in c.barColors)f.addColorStop(h,c.barColors[h]);u.lineWidth=c.barThickness,u.beginPath(),u.moveTo(0,c.barThickness/2),u.lineTo(Math.ceil(n*r.width),c.barThickness/2),u.strokeStyle=f,u.stroke()}var r,n,o,s=null,a=null,l=null,c={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},d={config:function(u){for(var h in u)c.hasOwnProperty(h)&&(c[h]=u[h])},show:function(u){var h,f;o||(u?l=l||setTimeout(()=>d.show(),u):(o=!0,a!==null&&i.cancelAnimationFrame(a),r||((f=(r=e.createElement("canvas")).style).position="fixed",f.top=f.left=f.right=f.margin=f.padding=0,f.zIndex=100001,f.display="none",c.className&&r.classList.add(c.className),e.body.appendChild(r),h="resize",u=t,(f=i).addEventListener?f.addEventListener(h,u,!1):f.attachEvent?f.attachEvent("on"+h,u):f["on"+h]=u),r.style.opacity=1,r.style.display="block",d.progress(0),c.autoRun&&function m(){s=i.requestAnimationFrame(m),d.progress("+"+.05*Math.pow(1-Math.sqrt(n),2))}()))},progress:function(u){return u===void 0||(typeof u=="string"&&(u=(0<=u.indexOf("+")||0<=u.indexOf("-")?n:0)+parseFloat(u)),n=1typeof i=="function"?i:function(){return i},Ene=typeof self!="undefined"?self:null,hg=typeof window!="undefined"?window:null,pg=Ene||hg||pg,Tne="2.0.0",Sa={connecting:0,open:1,closing:2,closed:3},Ine=1e4,Ane=1e3,Ro={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Il={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},zk={longpoll:"longpoll",websocket:"websocket"},Lne={complete:4},ay=class{constructor(i,e,t,r){this.channel=i,this.event=e,this.payload=t||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(i){this.timeout=i,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(i,e){return this.hasReceived(i)&&e(this.receivedResp.response),this.recHooks.push({status:i,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:i,response:e,_ref:t}){this.recHooks.filter(r=>r.status===i).forEach(r=>r.callback(e))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,i=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=i,this.matchReceive(i)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(i){return this.receivedResp&&this.receivedResp.status===i}trigger(i,e){this.channel.trigger(this.refEvent,{status:i,response:e})}},kz=class{constructor(i,e){this.callback=i,this.timerCalc=e,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},Dne=class{constructor(i,e,t){this.state=Ro.closed,this.topic=i,this.params=fg(e||{}),this.socket=t,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new ay(this,Il.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new kz(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Ro.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=Ro.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=Ro.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=Ro.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new ay(this,Il.leave,fg({}),this.timeout).send(),this.state=Ro.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Il.reply,(r,n)=>{this.trigger(this.replyEventName(n),r)})}join(i=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=i,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(i){this.on(Il.close,i)}onError(i){return this.on(Il.error,e=>i(e))}on(i,e){let t=this.bindingRef++;return this.bindings.push({event:i,ref:t,callback:e}),t}off(i,e){this.bindings=this.bindings.filter(t=>!(t.event===i&&(typeof e=="undefined"||e===t.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(i,e,t=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${i}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new ay(this,i,function(){return e},t);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(i=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Ro.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Il.close,"leave")},t=new ay(this,Il.leave,fg({}),i);return t.receive("ok",()=>e()).receive("timeout",()=>e()),t.send(),this.canPush()||t.trigger("ok",{}),t}onMessage(i,e,t){return e}isMember(i,e,t,r){return this.topic!==i?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:i,event:e,payload:t,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(i=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Ro.joining,this.joinPush.resend(i))}trigger(i,e,t,r){let n=this.onMessage(i,e,t,r);if(e&&!n)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let o=this.bindings.filter(s=>s.event===i);for(let s=0;s{let a=this.parseJSON(i.responseText);s&&s(a)},o&&(i.ontimeout=o),i.onprogress=()=>{},i.send(r),i}static xhrRequest(i,e,t,r,n,o,s,a){return i.open(e,t,!0),i.timeout=o,i.setRequestHeader("Content-Type",r),i.onerror=()=>a&&a(null),i.onreadystatechange=()=>{if(i.readyState===Lne.complete&&a){let l=this.parseJSON(i.responseText);a(l)}},s&&(i.ontimeout=s),i.send(n),i}static parseJSON(i){if(!i||i==="")return null;try{return JSON.parse(i)}catch(e){return console&&console.log("failed to parse JSON response",i),null}}static serialize(i,e){let t=[];for(var r in i){if(!Object.prototype.hasOwnProperty.call(i,r))continue;let n=e?`${e}[${r}]`:r,o=i[r];typeof o=="object"?t.push(this.serialize(o,n)):t.push(encodeURIComponent(n)+"="+encodeURIComponent(o))}return t.join("&")}static appendParams(i,e){if(Object.keys(e).length===0)return i;let t=i.match(/\?/)?"&":"?";return`${i}${t}${this.serialize(e)}`}},Mne=i=>{let e="",t=new Uint8Array(i),r=t.byteLength;for(let n=0;nthis.ontimeout(),i=>{if(i){var{status:e,token:t,messages:r}=i;this.token=t}else e=0;switch(e){case 200:r.forEach(n=>{setTimeout(()=>this.onmessage({data:n}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Sa.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${e}`)}})}send(i){typeof i!="string"&&(i=Mne(i)),this.currentBatch?this.currentBatch.push(i):this.awaitingBatchAck?this.batchBuffer.push(i):(this.currentBatch=[i],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(i){this.awaitingBatchAck=!0,this.ajax("POST","application/x-ndjson",i.join(` +`),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,!e||e.status!==200?(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(i,e,t){for(let n of this.reqs)n.abort();this.readyState=Sa.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:i,reason:e,wasClean:t});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent!="undefined"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(i,e,t,r,n){let o,s=()=>{this.reqs.delete(o),r()};o=cy.request(i,this.endpointURL(),e,t,this.timeout,s,a=>{this.reqs.delete(o),this.isActive()&&n(a)}),this.reqs.add(o)}};var ly={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(i,e){if(i.payload.constructor===ArrayBuffer)return e(this.binaryEncode(i));{let t=[i.join_ref,i.ref,i.topic,i.event,i.payload];return e(JSON.stringify(t))}},decode(i,e){if(i.constructor===ArrayBuffer)return e(this.binaryDecode(i));{let[t,r,n,o,s]=JSON.parse(i);return e({join_ref:t,ref:r,topic:n,event:o,payload:s})}},binaryEncode(i){let{join_ref:e,ref:t,event:r,topic:n,payload:o}=i,s=this.META_LENGTH+e.length+t.length+n.length+r.length,a=new ArrayBuffer(this.HEADER_LENGTH+s),l=new DataView(a),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,e.length),l.setUint8(c++,t.length),l.setUint8(c++,n.length),l.setUint8(c++,r.length),Array.from(e,u=>l.setUint8(c++,u.charCodeAt(0))),Array.from(t,u=>l.setUint8(c++,u.charCodeAt(0))),Array.from(n,u=>l.setUint8(c++,u.charCodeAt(0))),Array.from(r,u=>l.setUint8(c++,u.charCodeAt(0)));var d=new Uint8Array(a.byteLength+o.byteLength);return d.set(new Uint8Array(a),0),d.set(new Uint8Array(o),a.byteLength),d.buffer},binaryDecode(i){let e=new DataView(i),t=e.getUint8(0),r=new TextDecoder;switch(t){case this.KINDS.push:return this.decodePush(i,e,r);case this.KINDS.reply:return this.decodeReply(i,e,r);case this.KINDS.broadcast:return this.decodeBroadcast(i,e,r)}},decodePush(i,e,t){let r=e.getUint8(1),n=e.getUint8(2),o=e.getUint8(3),s=this.HEADER_LENGTH+this.META_LENGTH-1,a=t.decode(i.slice(s,s+r));s=s+r;let l=t.decode(i.slice(s,s+n));s=s+n;let c=t.decode(i.slice(s,s+o));s=s+o;let d=i.slice(s,i.byteLength);return{join_ref:a,ref:null,topic:l,event:c,payload:d}},decodeReply(i,e,t){let r=e.getUint8(1),n=e.getUint8(2),o=e.getUint8(3),s=e.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=t.decode(i.slice(a,a+r));a=a+r;let c=t.decode(i.slice(a,a+n));a=a+n;let d=t.decode(i.slice(a,a+o));a=a+o;let u=t.decode(i.slice(a,a+s));a=a+s;let h=i.slice(a,i.byteLength),f={status:u,response:h};return{join_ref:l,ref:c,topic:d,event:Il.reply,payload:f}},decodeBroadcast(i,e,t){let r=e.getUint8(1),n=e.getUint8(2),o=this.HEADER_LENGTH+2,s=t.decode(i.slice(o,o+r));o=o+r;let a=t.decode(i.slice(o,o+n));o=o+n;let l=i.slice(o,i.byteLength);return{join_ref:null,ref:null,topic:s,event:a,payload:l}}},dy=class{constructor(i,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=e.timeout||Ine,this.transport=e.transport||pg.WebSocket||Fk,this.establishedConnections=0,this.defaultEncoder=ly.encode.bind(ly),this.defaultDecoder=ly.decode.bind(ly),this.closeWasClean=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Fk?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let t=null;hg&&hg.addEventListener&&(hg.addEventListener("pagehide",r=>{this.conn&&(this.disconnect(),t=this.connectClock)}),hg.addEventListener("pageshow",r=>{t===this.connectClock&&(t=null,this.connect())})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=r=>e.rejoinAfterMs?e.rejoinAfterMs(r):[1e3,2e3,5e3][r-1]||1e4,this.reconnectAfterMs=r=>e.reconnectAfterMs?e.reconnectAfterMs(r):[10,50,100,150,200,250,500,1e3,2e3][r-1]||5e3,this.logger=e.logger||null,this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=fg(e.params||{}),this.endPoint=`${i}/${zk.websocket}`,this.vsn=e.vsn||Tne,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new kz(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Fk}replaceTransport(i){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=i}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let i=cy.appendParams(cy.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return i.charAt(0)!=="/"?i:i.charAt(1)==="/"?`${this.protocol()}:${i}`:`${this.protocol()}://${location.host}${i}`}disconnect(i,e,t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(i,e,t)}connect(i){i&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=fg(i)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e))}log(i,e,t){this.logger(i,e,t)}hasLogger(){return this.logger!==null}onOpen(i){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,i]),e}onClose(i){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,i]),e}onError(i){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,i]),e}onMessage(i){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,i]),e}ping(i){if(!this.isConnected())return!1;let e=this.makeRef(),t=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let r=this.onMessage(n=>{n.ref===e&&(this.off([r]),i(Date.now()-t))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,i])=>i())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),Ane,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(i,e,t){if(!this.conn)return i&&i();this.waitForBufferDone(()=>{this.conn&&(e?this.conn.close(e,t||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),i&&i()})})}waitForBufferDone(i,e=1){if(e===5||!this.conn||!this.conn.bufferedAmount){i();return}setTimeout(()=>{this.waitForBufferDone(i,e+1)},150*e)}waitForSocketClosed(i,e=1){if(e===5||!this.conn||this.conn.readyState===Sa.closed){i();return}setTimeout(()=>{this.waitForSocketClosed(i,e+1)},150*e)}onConnClose(i){let e=i&&i.code;this.hasLogger()&&this.log("transport","close",i),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&e!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,t])=>t(i))}onConnError(i){this.hasLogger()&&this.log("transport",i);let e=this.transport,t=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,r])=>{r(i,e,t)}),(e===this.transport||t>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(i=>{i.isErrored()||i.isLeaving()||i.isClosed()||i.trigger(Il.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Sa.connecting:return"connecting";case Sa.open:return"open";case Sa.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(i){this.off(i.stateChangeRefs),this.channels=this.channels.filter(e=>e.joinRef()!==i.joinRef())}off(i){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter(([t])=>i.indexOf(t)===-1)}channel(i,e={}){let t=new Dne(i,e,this);return this.channels.push(t),t}push(i){if(this.hasLogger()){let{topic:e,event:t,payload:r,ref:n,join_ref:o}=i;this.log("push",`${e} ${t} (${o}, ${n})`,r)}this.isConnected()?this.encode(i,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(i,e=>this.conn.send(e)))}makeRef(){let i=this.ref+1;return i===this.ref?this.ref=0:this.ref=i,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(i=>i()),this.sendBuffer=[])}onConnMessage(i){this.decode(i.data,e=>{let{topic:t,event:r,payload:n,ref:o,join_ref:s}=e;o&&o===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${n.status||""} ${t} ${r} ${o&&"("+o+")"||""}`,n);for(let a=0;at.topic===i&&(t.isJoined()||t.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${i}"`),e.leave())}};var Xz="consecutive-reloads",Nne=10,Rne=5e3,Pne=1e4,One=3e4,Qz=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading"],Ll="data-phx-component",Bk="data-phx-link",Fne="track-static",zne="data-phx-link-state",os="data-phx-ref",Su="data-phx-ref-src",Zz="track-uploads",Zc="data-phx-upload-ref",Zk="data-phx-preflighted-refs",Bne="data-phx-done-refs",Ez="drop-target",Yk="data-phx-active-refs",Cy="phx:live-file:updated",Jz="data-phx-skip",eB="data-phx-id",Tz="data-phx-prune",Iz="page-loading",Az="phx-connected",mg="phx-loading",Hk="phx-no-feedback",uy="phx-error",Lz="phx-client-error",Uk="phx-server-error",Tf="data-phx-parent-id",Jk="data-phx-main",Sg="data-phx-root-id",tB="viewport-top",iB="viewport-bottom",Hne="trigger-action",ky="feedback-for",Xk="phx-has-focused",Une=["text","textarea","number","email","password","search","tel","url","date","time","datetime-local","color","range"],rB=["checkbox","radio"],Ey="phx-has-submitted",Jc="data-phx-session",Af=`[${Jc}]`,Dz="data-phx-sticky",xg="data-phx-static",jk="data-phx-readonly",hy="data-phx-disabled",Qk="disable-with",fy="data-phx-disable-with-restore",gg="hook",jne="debounce",Wne="throttle",Ty="update",py="stream",bg="data-phx-stream",Vne="key",ka="phxPrivate",Mz="auto-recover",my="phx:live-socket:debug",Wk="phx:live-socket:profiling",Vk="phx:live-socket:latency-sim",qne="progress",Nz="mounted",Kne=1,$ne=200,Gne="phx-",Yne=3e4,vg="debounce-trigger",gy="throttled",Rz="debounce-prev-key",Xne={debounce:300,throttle:300},by="d",Ea="s",qk="r",Po="c",Pz="e",Oz="r",Fz="t",Qne="p",zz="stream",Zne=class{constructor(i,e,t){this.liveSocket=t,this.entry=i,this.offset=0,this.chunkSize=e,this.chunkTimer=null,this.errored=!1,this.uploadChannel=t.channel(`lvu:${i.ref}`,{token:i.metadata()})}error(i){this.errored||(this.uploadChannel.leave(),this.errored=!0,clearTimeout(this.chunkTimer),this.entry.error(i))}upload(){this.uploadChannel.onError(i=>this.error(i)),this.uploadChannel.join().receive("ok",i=>this.readNextChunk()).receive("error",i=>this.error(i))}isDone(){return this.offset>=this.entry.file.size}readNextChunk(){let i=new window.FileReader,e=this.entry.file.slice(this.offset,this.chunkSize+this.offset);i.onload=t=>{if(t.target.error===null)this.offset+=t.target.result.byteLength,this.pushChunk(t.target.result);else return Oo("Read error: "+t.target.error)},i.readAsArrayBuffer(e)}pushChunk(i){this.uploadChannel.isJoined()&&this.uploadChannel.push("chunk",i).receive("ok",()=>{this.entry.progress(this.offset/this.entry.file.size*100),this.isDone()||(this.chunkTimer=setTimeout(()=>this.readNextChunk(),this.liveSocket.getLatencySim()||0))}).receive("error",({reason:e})=>this.error(e))}},Oo=(i,e)=>console.error&&console.error(i,e),Al=i=>{let e=typeof i;return e==="number"||e==="string"&&/^(0|[1-9]\d*)$/.test(i)};function Jne(){let i=new Set,e=document.querySelectorAll("*[id]");for(let t=0,r=e.length;t{i.liveSocket.isDebugEnabled()&&console.log(`${i.id} ${e}: ${t} - `,r)},Kk=i=>typeof i=="function"?i:function(){return i},Sy=i=>JSON.parse(JSON.stringify(i)),Cg=(i,e,t)=>{do{if(i.matches(`[${e}]`)&&!i.disabled)return i;i=i.parentElement||i.parentNode}while(i!==null&&i.nodeType===1&&!(t&&t.isSameNode(i)||i.matches(Af)));return null},_g=i=>i!==null&&typeof i=="object"&&!(i instanceof Array),toe=(i,e)=>JSON.stringify(i)===JSON.stringify(e),Bz=i=>{for(let e in i)return!1;return!0},Qc=(i,e)=>i&&e(i),ioe=function(i,e,t,r){i.forEach(n=>{new Zne(n,t.config.chunk_size,r).upload()})},nB={canPushState(){return typeof history.pushState!="undefined"},dropLocal(i,e,t){return i.removeItem(this.localKey(e,t))},updateLocal(i,e,t,r,n){let o=this.getLocal(i,e,t),s=this.localKey(e,t),a=o===null?r:n(o);return i.setItem(s,JSON.stringify(a)),a},getLocal(i,e,t){return JSON.parse(i.getItem(this.localKey(e,t)))},updateCurrentState(i){this.canPushState()&&history.replaceState(i(history.state||{}),"",window.location.href)},pushState(i,e,t){if(this.canPushState()){if(t!==window.location.href){if(e.type=="redirect"&&e.scroll){let n=history.state||{};n.scroll=e.scroll,history.replaceState(n,"",window.location.href)}delete e.scroll,history[i+"State"](e,"",t||null);let r=this.getHashTargetEl(window.location.hash);r?r.scrollIntoView():e.type==="redirect"&&window.scroll(0,0)}}else this.redirect(t)},setCookie(i,e){document.cookie=`${i}=${e}`},getCookie(i){return document.cookie.replace(new RegExp(`(?:(?:^|.*;s*)${i}s*=s*([^;]*).*$)|^.*$`),"$1")},redirect(i,e){e&&nB.setCookie("__phoenix_flash__",e+"; max-age=60000; path=/"),window.location=i},localKey(i,e){return`${i}-${e}`},getHashTargetEl(i){let e=i.toString().substring(1);if(e!=="")return document.getElementById(e)||document.querySelector(`a[name="${e}"]`)}},Ta=nB,ns={byId(i){return document.getElementById(i)||Oo(`no id found for ${i}`)},removeClass(i,e){i.classList.remove(e),i.classList.length===0&&i.removeAttribute("class")},all(i,e,t){if(!i)return[];let r=Array.from(i.querySelectorAll(e));return t?r.forEach(t):r},childNodeLength(i){let e=document.createElement("template");return e.innerHTML=i,e.content.childElementCount},isUploadInput(i){return i.type==="file"&&i.getAttribute(Zc)!==null},isAutoUpload(i){return i.hasAttribute("data-phx-auto-upload")},findUploadInputs(i){return this.all(i,`input[type="file"][${Zc}]`)},findComponentNodeList(i,e){return this.filterWithinSameLiveView(this.all(i,`[${Ll}="${e}"]`),i)},isPhxDestroyed(i){return!!(i.id&&ns.private(i,"destroyed"))},wantsNewTab(i){let e=i.ctrlKey||i.shiftKey||i.metaKey||i.button&&i.button===1,t=i.target instanceof HTMLAnchorElement&&i.target.hasAttribute("download"),r=i.target.hasAttribute("target")&&i.target.getAttribute("target").toLowerCase()==="_blank";return e||r||t},isUnloadableFormSubmit(i){return i.target&&i.target.getAttribute("method")==="dialog"||i.submitter&&i.submitter.getAttribute("formmethod")==="dialog"?!1:!i.defaultPrevented&&!this.wantsNewTab(i)},isNewPageClick(i,e){let t=i.target instanceof HTMLAnchorElement?i.target.getAttribute("href"):null,r;if(i.defaultPrevented||t===null||this.wantsNewTab(i)||t.startsWith("mailto:")||t.startsWith("tel:")||i.target.isContentEditable)return!1;try{r=new URL(t)}catch(n){try{r=new URL(t,e)}catch(o){return!0}}return r.host===e.host&&r.protocol===e.protocol&&r.pathname===e.pathname&&r.search===e.search?r.hash===""&&!r.href.endsWith("#"):r.protocol.startsWith("http")},markPhxChildDestroyed(i){this.isPhxChild(i)&&i.setAttribute(Jc,""),this.putPrivate(i,"destroyed",!0)},findPhxChildrenInFragment(i,e){let t=document.createElement("template");return t.innerHTML=i,this.findPhxChildren(t.content,e)},isIgnored(i,e){return(i.getAttribute(e)||i.getAttribute("data-phx-update"))==="ignore"},isPhxUpdate(i,e,t){return i.getAttribute&&t.indexOf(i.getAttribute(e))>=0},findPhxSticky(i){return this.all(i,`[${Dz}]`)},findPhxChildren(i,e){return this.all(i,`${Af}[${Tf}="${e}"]`)},findParentCIDs(i,e){let t=new Set(e),r=e.reduce((n,o)=>{let s=`[${Ll}="${o}"] [${Ll}]`;return this.filterWithinSameLiveView(this.all(i,s),i).map(a=>parseInt(a.getAttribute(Ll))).forEach(a=>n.delete(a)),n},t);return r.size===0?new Set(e):r},filterWithinSameLiveView(i,e){return e.querySelector(Af)?i.filter(t=>this.withinSameLiveView(t,e)):i},withinSameLiveView(i,e){for(;i=i.parentNode;){if(i.isSameNode(e))return!0;if(i.getAttribute(Jc)!==null)return!1}},private(i,e){return i[ka]&&i[ka][e]},deletePrivate(i,e){i[ka]&&delete i[ka][e]},putPrivate(i,e,t){i[ka]||(i[ka]={}),i[ka][e]=t},updatePrivate(i,e,t,r){let n=this.private(i,e);n===void 0?this.putPrivate(i,e,r(t)):this.putPrivate(i,e,r(n))},copyPrivates(i,e){e[ka]&&(i[ka]=e[ka])},putTitle(i){let e=document.querySelector("title");if(e){let{prefix:t,suffix:r}=e.dataset;document.title=`${t||""}${i}${r||""}`}else document.title=i},debounce(i,e,t,r,n,o,s,a){let l=i.getAttribute(t),c=i.getAttribute(n);l===""&&(l=r),c===""&&(c=o);let d=l||c;switch(d){case null:return a();case"blur":this.once(i,"debounce-blur")&&i.addEventListener("blur",()=>a());return;default:let u=parseInt(d),h=()=>c?this.deletePrivate(i,gy):a(),f=this.incCycle(i,vg,h);if(isNaN(u))return Oo(`invalid throttle/debounce value: ${d}`);if(c){let g=!1;if(e.type==="keydown"){let w=this.private(i,Rz);this.putPrivate(i,Rz,e.key),g=w!==e.key}if(!g&&this.private(i,gy))return!1;a(),this.putPrivate(i,gy,!0),setTimeout(()=>{s()&&this.triggerCycle(i,vg)},u)}else setTimeout(()=>{s()&&this.triggerCycle(i,vg,f)},u);let m=i.form;m&&this.once(m,"bind-debounce")&&m.addEventListener("submit",()=>{Array.from(new FormData(m).entries(),([g])=>{let w=m.querySelector(`[name="${g}"]`);this.incCycle(w,vg),this.deletePrivate(w,gy)})}),this.once(i,"bind-debounce")&&i.addEventListener("blur",()=>this.triggerCycle(i,vg))}},triggerCycle(i,e,t){let[r,n]=this.private(i,e);t||(t=r),t===r&&(this.incCycle(i,e),n())},once(i,e){return this.private(i,e)===!0?!1:(this.putPrivate(i,e,!0),!0)},incCycle(i,e,t=function(){}){let[r]=this.private(i,e)||[0,t];return r++,this.putPrivate(i,e,[r,t]),r},maybeAddPrivateHooks(i,e,t){i.hasAttribute&&(i.hasAttribute(e)||i.hasAttribute(t))&&i.setAttribute("data-phx-hook","Phoenix.InfiniteScroll")},maybeHideFeedback(i,e,t){if(!(this.private(e,Xk)||this.private(e,Ey))){let r=[e.name];e.name.endsWith("[]")&&r.push(e.name.slice(0,-2));let n=r.map(o=>`[${t}="${o}"]`).join(", ");ns.all(i,n,o=>o.classList.add(Hk))}},resetForm(i,e){Array.from(i.elements).forEach(t=>{let r=`[${e}="${t.id}"], [${e}="${t.name}"], [${e}="${t.name.replace(/\[\]$/,"")}"]`;this.deletePrivate(t,Xk),this.deletePrivate(t,Ey),this.all(document,r,n=>{n.classList.add(Hk)})})},showError(i,e){(i.id||i.name)&&this.all(i.form,`[${e}="${i.id}"], [${e}="${i.name}"]`,t=>{this.removeClass(t,Hk)})},isPhxChild(i){return i.getAttribute&&i.getAttribute(Tf)},isPhxSticky(i){return i.getAttribute&&i.getAttribute(Dz)!==null},firstPhxChild(i){return this.isPhxChild(i)?i:this.all(i,`[${Tf}]`)[0]},dispatchEvent(i,e,t={}){let n={bubbles:t.bubbles===void 0?!0:!!t.bubbles,cancelable:!0,detail:t.detail||{}},o=e==="click"?new MouseEvent("click",n):new CustomEvent(e,n);i.dispatchEvent(o)},cloneNode(i,e){if(typeof e=="undefined")return i.cloneNode(!0);{let t=i.cloneNode(!1);return t.innerHTML=e,t}},mergeAttrs(i,e,t={}){let r=t.exclude||[],n=t.isIgnored,o=e.attributes;for(let a=o.length-1;a>=0;a--){let l=o[a].name;r.indexOf(l)<0&&i.setAttribute(l,e.getAttribute(l))}let s=i.attributes;for(let a=s.length-1;a>=0;a--){let l=s[a].name;n?l.startsWith("data-")&&!e.hasAttribute(l)&&i.removeAttribute(l):e.hasAttribute(l)||i.removeAttribute(l)}},mergeFocusedInput(i,e){i instanceof HTMLSelectElement||ns.mergeAttrs(i,e,{exclude:["value"]}),e.readOnly?i.setAttribute("readonly",!0):i.removeAttribute("readonly")},hasSelectionRange(i){return i.setSelectionRange&&(i.type==="text"||i.type==="textarea")},restoreFocus(i,e,t){if(!ns.isTextualInput(i))return;let r=i.matches(":focus");i.readOnly&&i.blur(),r||i.focus(),this.hasSelectionRange(i)&&i.setSelectionRange(e,t)},isFormInput(i){return/^(?:input|select|textarea)$/i.test(i.tagName)&&i.type!=="button"},syncAttrsToProps(i){i instanceof HTMLInputElement&&rB.indexOf(i.type.toLocaleLowerCase())>=0&&(i.checked=i.getAttribute("checked")!==null)},isTextualInput(i){return Une.indexOf(i.type)>=0},isNowTriggerFormExternal(i,e){return i.getAttribute&&i.getAttribute(e)!==null},syncPendingRef(i,e,t){let r=i.getAttribute(os);if(r===null)return!0;let n=i.getAttribute(Su);return ns.isFormInput(i)||i.getAttribute(t)!==null?(ns.isUploadInput(i)&&ns.mergeAttrs(i,e,{isIgnored:!0}),ns.putPrivate(i,os,e),!1):(Qz.forEach(o=>{i.classList.contains(o)&&e.classList.add(o)}),e.setAttribute(os,r),e.setAttribute(Su,n),!0)},cleanChildNodes(i,e){if(ns.isPhxUpdate(i,e,["append","prepend"])){let t=[];i.childNodes.forEach(r=>{r.id||(r.nodeType===Node.TEXT_NODE&&r.nodeValue.trim()===""||Oo(`only HTML element tags with an id are allowed inside containers with phx-update. removing illegal node: "${(r.outerHTML||r.nodeValue).trim()}" -`),t.push(r))}),t.forEach(r=>r.remove())}},replaceRootContainer(i,e,t){let r=new Set(["id",Jc,xg,Jk,Sg]);if(i.tagName.toLowerCase()===e.toLowerCase())return Array.from(i.attributes).filter(n=>!r.has(n.name.toLowerCase())).forEach(n=>i.removeAttribute(n.name)),Object.keys(t).filter(n=>!r.has(n.toLowerCase())).forEach(n=>i.setAttribute(n,t[n])),i;{let n=document.createElement(e);return Object.keys(t).forEach(o=>n.setAttribute(o,t[o])),r.forEach(o=>n.setAttribute(o,i.getAttribute(o))),n.innerHTML=i.innerHTML,i.replaceWith(n),n}},getSticky(i,e,t){let r=(ns.private(i,"sticky")||[]).find(([n])=>e===n);if(r){let[n,o,s]=r;return s}else return typeof t=="function"?t():t},deleteSticky(i,e){this.updatePrivate(i,"sticky",[],t=>t.filter(([r,n])=>r!==e))},putSticky(i,e,t){let r=t(i);this.updatePrivate(i,"sticky",[],n=>{let o=n.findIndex(([s])=>e===s);return o>=0?n[o]=[e,t,r]:n.push([e,t,r]),n})},applyStickyOperations(i){let e=ns.private(i,"sticky");e&&e.forEach(([t,r,n])=>this.putSticky(i,t,r))}},pe=ns,$k=class{static isActive(i,e){let t=e._phxRef===void 0,n=i.getAttribute(Yk).split(",").indexOf(mn.genFileRef(e))>=0;return e.size>0&&(t||n)}static isPreflighted(i,e){return i.getAttribute(Zk).split(",").indexOf(mn.genFileRef(e))>=0&&this.isActive(i,e)}constructor(i,e,t){this.ref=mn.genFileRef(e),this.fileEl=i,this.file=e,this.view=t,this.meta=null,this._isCancelled=!1,this._isDone=!1,this._progress=0,this._lastProgressSent=-1,this._onDone=function(){},this._onElUpdated=this.onElUpdated.bind(this),this.fileEl.addEventListener(Cy,this._onElUpdated)}metadata(){return this.meta}progress(i){this._progress=Math.floor(i),this._progress>this._lastProgressSent&&(this._progress>=100?(this._progress=100,this._lastProgressSent=100,this._isDone=!0,this.view.pushFileProgress(this.fileEl,this.ref,100,()=>{mn.untrackFile(this.fileEl,this.file),this._onDone()})):(this._lastProgressSent=this._progress,this.view.pushFileProgress(this.fileEl,this.ref,this._progress)))}cancel(){this._isCancelled=!0,this._isDone=!0,this._onDone()}isDone(){return this._isDone}error(i="failed"){this.fileEl.removeEventListener(Cy,this._onElUpdated),this.view.pushFileProgress(this.fileEl,this.ref,{error:i}),pe.isAutoUpload(this.fileEl)||mn.clearFiles(this.fileEl)}onDone(i){this._onDone=()=>{this.fileEl.removeEventListener(Cy,this._onElUpdated),i()}}onElUpdated(){this.fileEl.getAttribute(Yk).split(",").indexOf(this.ref)===-1&&this.cancel()}toPreflightPayload(){return{last_modified:this.file.lastModified,name:this.file.name,relative_path:this.file.webkitRelativePath,size:this.file.size,type:this.file.type,ref:this.ref,meta:typeof this.file.meta=="function"?this.file.meta():void 0}}uploader(i){if(this.meta.uploader){let e=i[this.meta.uploader]||Oo(`no uploader configured for ${this.meta.uploader}`);return{name:this.meta.uploader,callback:e}}else return{name:"channel",callback:ioe}}zipPostFlight(i){this.meta=i.entries[this.ref],this.meta||Oo(`no preflight upload response returned with ref ${this.ref}`,{input:this.fileEl,response:i})}},roe=0,mn=class{static genFileRef(i){let e=i._phxRef;return e!==void 0?e:(i._phxRef=(roe++).toString(),i._phxRef)}static getEntryDataURL(i,e,t){let r=this.activeFiles(i).find(n=>this.genFileRef(n)===e);t(URL.createObjectURL(r))}static hasUploadsInProgress(i){let e=0;return pe.findUploadInputs(i).forEach(t=>{t.getAttribute(Zk)!==t.getAttribute(Bne)&&e++}),e>0}static serializeUploads(i){let e=this.activeFiles(i),t={};return e.forEach(r=>{let n={path:i.name},o=i.getAttribute(Zc);t[o]=t[o]||[],n.ref=this.genFileRef(r),n.last_modified=r.lastModified,n.name=r.name||n.ref,n.relative_path=r.webkitRelativePath,n.type=r.type,n.size=r.size,typeof r.meta=="function"&&(n.meta=r.meta()),t[o].push(n)}),t}static clearFiles(i){i.value=null,i.removeAttribute(Zc),pe.putPrivate(i,"files",[])}static untrackFile(i,e){pe.putPrivate(i,"files",pe.private(i,"files").filter(t=>!Object.is(t,e)))}static trackFiles(i,e,t){if(i.getAttribute("multiple")!==null){let r=e.filter(n=>!this.activeFiles(i).find(o=>Object.is(o,n)));pe.putPrivate(i,"files",this.activeFiles(i).concat(r)),i.value=null}else t&&t.files.length>0&&(i.files=t.files),pe.putPrivate(i,"files",e)}static activeFileInputs(i){let e=pe.findUploadInputs(i);return Array.from(e).filter(t=>t.files&&this.activeFiles(t).length>0)}static activeFiles(i){return(pe.private(i,"files")||[]).filter(e=>$k.isActive(i,e))}static inputsAwaitingPreflight(i){let e=pe.findUploadInputs(i);return Array.from(e).filter(t=>this.filesAwaitingPreflight(t).length>0)}static filesAwaitingPreflight(i){return this.activeFiles(i).filter(e=>!$k.isPreflighted(i,e))}constructor(i,e,t){this.view=e,this.onComplete=t,this._entries=Array.from(mn.filesAwaitingPreflight(i)||[]).map(r=>new $k(i,r,e)),this.numEntriesInProgress=this._entries.length}entries(){return this._entries}initAdapterUpload(i,e,t){this._entries=this._entries.map(n=>(n.zipPostFlight(i),n.onDone(()=>{this.numEntriesInProgress--,this.numEntriesInProgress===0&&this.onComplete()}),n));let r=this._entries.reduce((n,o)=>{if(!o.meta)return n;let{name:s,callback:a}=o.uploader(t.uploaders);return n[s]=n[s]||{callback:a,entries:[]},n[s].entries.push(o),n},{});for(let n in r){let{callback:o,entries:s}=r[n];o(s,e,i,t)}}},noe={focusMain(){let i=document.querySelector("main h1, main, h1");if(i){let e=i.tabIndex;i.tabIndex=-1,i.focus(),i.tabIndex=e}},anyOf(i,e){return e.find(t=>i instanceof t)},isFocusable(i,e){return i instanceof HTMLAnchorElement&&i.rel!=="ignore"||i instanceof HTMLAreaElement&&i.href!==void 0||!i.disabled&&this.anyOf(i,[HTMLInputElement,HTMLSelectElement,HTMLTextAreaElement,HTMLButtonElement])||i instanceof HTMLIFrameElement||i.tabIndex>0||!e&&i.tabIndex===0&&i.getAttribute("tabindex")!==null&&i.getAttribute("aria-hidden")!=="true"},attemptFocus(i,e){if(this.isFocusable(i,e))try{i.focus()}catch(t){}return!!document.activeElement&&document.activeElement.isSameNode(i)},focusFirstInteractive(i){let e=i.firstElementChild;for(;e;){if(this.attemptFocus(e,!0)||this.focusFirstInteractive(e,!0))return!0;e=e.nextElementSibling}},focusFirst(i){let e=i.firstElementChild;for(;e;){if(this.attemptFocus(e)||this.focusFirst(e))return!0;e=e.nextElementSibling}},focusLast(i){let e=i.lastElementChild;for(;e;){if(this.attemptFocus(e)||this.focusLast(e))return!0;e=e.previousElementSibling}}},If=noe,oB={LiveFileUpload:{activeRefs(){return this.el.getAttribute(Yk)},preflightedRefs(){return this.el.getAttribute(Zk)},mounted(){this.preflightedWas=this.preflightedRefs()},updated(){let i=this.preflightedRefs();this.preflightedWas!==i&&(this.preflightedWas=i,i===""&&this.__view.cancelSubmit(this.el.form)),this.activeRefs()===""&&(this.el.value=null),this.el.dispatchEvent(new CustomEvent(Cy))}},LiveImgPreview:{mounted(){this.ref=this.el.getAttribute("data-phx-entry-ref"),this.inputEl=document.getElementById(this.el.getAttribute(Zc)),mn.getEntryDataURL(this.inputEl,this.ref,i=>{this.url=i,this.el.src=i})},destroyed(){URL.revokeObjectURL(this.url)}},FocusWrap:{mounted(){this.focusStart=this.el.firstElementChild,this.focusEnd=this.el.lastElementChild,this.focusStart.addEventListener("focus",()=>If.focusLast(this.el)),this.focusEnd.addEventListener("focus",()=>If.focusFirst(this.el)),this.el.addEventListener("phx:show-end",()=>this.el.focus()),window.getComputedStyle(this.el).display!=="none"&&If.focusFirst(this.el)}}},Hz=()=>document.documentElement.scrollTop||document.body.scrollTop,eE=()=>window.innerHeight||document.documentElement.clientHeight,ooe=i=>{let e=i.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.top<=eE()},soe=i=>{let e=i.getBoundingClientRect();return e.right>=0&&e.left>=0&&e.bottom<=eE()},Uz=i=>{let e=i.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.top<=eE()};oB.InfiniteScroll={mounted(){let i=Hz(),e=!1,t=500,r=null,n=this.throttle(t,(a,l)=>{r=()=>!0,this.liveSocket.execJSHookPush(this.el,a,{id:l.id,_overran:!0},()=>{r=null})}),o=this.throttle(t,(a,l)=>{r=()=>l.scrollIntoView({block:"start"}),this.liveSocket.execJSHookPush(this.el,a,{id:l.id},()=>{r=null,Uz(l)||l.scrollIntoView({block:"start"})})}),s=this.throttle(t,(a,l)=>{r=()=>l.scrollIntoView({block:"end"}),this.liveSocket.execJSHookPush(this.el,a,{id:l.id},()=>{r=null,Uz(l)||l.scrollIntoView({block:"end"})})});this.onScroll=a=>{let l=Hz();if(r)return i=l,r();let c=this.el.getBoundingClientRect(),d=this.el.getAttribute(this.liveSocket.binding("viewport-top")),u=this.el.getAttribute(this.liveSocket.binding("viewport-bottom")),h=this.el.lastElementChild,f=this.el.firstElementChild,m=li;m&&d&&!e&&c.top>=0?(e=!0,n(d,f)):g&&e&&c.top<=0&&(e=!1),d&&m&&ooe(f)?o(d,f):u&&g&&soe(h)&&s(u,h),i=l},window.addEventListener("scroll",this.onScroll)},destroyed(){window.removeEventListener("scroll",this.onScroll)},throttle(i,e){let t=0,r;return(...n)=>{let o=Date.now(),s=i-(o-t);s<=0||s>i?(r&&(clearTimeout(r),r=null),t=o,e(...n)):r||(r=setTimeout(()=>{t=Date.now(),r=null,e(...n)},s))}}};var aoe=oB,loe=class{constructor(i,e,t){let r=new Set,n=new Set([...e.children].map(s=>s.id)),o=[];Array.from(i.children).forEach(s=>{if(s.id&&(r.add(s.id),n.has(s.id))){let a=s.previousElementSibling&&s.previousElementSibling.id;o.push({elementId:s.id,previousElementId:a})}}),this.containerId=e.id,this.updateType=t,this.elementsToModify=o,this.elementIdsToAdd=[...n].filter(s=>!r.has(s))}perform(){let i=pe.byId(this.containerId);this.elementsToModify.forEach(e=>{e.previousElementId?Qc(document.getElementById(e.previousElementId),t=>{Qc(document.getElementById(e.elementId),r=>{r.previousElementSibling&&r.previousElementSibling.id==t.id||t.insertAdjacentElement("afterend",r)})}):Qc(document.getElementById(e.elementId),t=>{t.previousElementSibling==null||i.insertAdjacentElement("afterbegin",t)})}),this.updateType=="prepend"&&this.elementIdsToAdd.reverse().forEach(e=>{Qc(document.getElementById(e),t=>i.insertAdjacentElement("afterbegin",t))})}},jz=11;function coe(i,e){var t=e.attributes,r,n,o,s,a;if(!(e.nodeType===jz||i.nodeType===jz)){for(var l=t.length-1;l>=0;l--)r=t[l],n=r.name,o=r.namespaceURI,s=r.value,o?(n=r.localName||n,a=i.getAttributeNS(o,n),a!==s&&(r.prefix==="xmlns"&&(n=r.name),i.setAttributeNS(o,n,s))):(a=i.getAttribute(n),a!==s&&i.setAttribute(n,s));for(var c=i.attributes,d=c.length-1;d>=0;d--)r=c[d],n=r.name,o=r.namespaceURI,o?(n=r.localName||n,e.hasAttributeNS(o,n)||i.removeAttributeNS(o,n)):e.hasAttribute(n)||i.removeAttribute(n)}}var vy,doe="http://www.w3.org/1999/xhtml",lo=typeof document=="undefined"?void 0:document,uoe=!!lo&&"content"in lo.createElement("template"),hoe=!!lo&&lo.createRange&&"createContextualFragment"in lo.createRange();function foe(i){var e=lo.createElement("template");return e.innerHTML=i,e.content.childNodes[0]}function poe(i){vy||(vy=lo.createRange(),vy.selectNode(lo.body));var e=vy.createContextualFragment(i);return e.childNodes[0]}function moe(i){var e=lo.createElement("body");return e.innerHTML=i,e.childNodes[0]}function goe(i){return i=i.trim(),uoe?foe(i):hoe?poe(i):moe(i)}function _y(i,e){var t=i.nodeName,r=e.nodeName,n,o;return t===r?!0:(n=t.charCodeAt(0),o=r.charCodeAt(0),n<=90&&o>=97?t===r.toUpperCase():o<=90&&n>=97?r===t.toUpperCase():!1)}function boe(i,e){return!e||e===doe?lo.createElement(i):lo.createElementNS(e,i)}function voe(i,e){for(var t=i.firstChild;t;){var r=t.nextSibling;e.appendChild(t),t=r}return e}function Gk(i,e,t){i[t]!==e[t]&&(i[t]=e[t],i[t]?i.setAttribute(t,""):i.removeAttribute(t))}var Wz={OPTION:function(i,e){var t=i.parentNode;if(t){var r=t.nodeName.toUpperCase();r==="OPTGROUP"&&(t=t.parentNode,r=t&&t.nodeName.toUpperCase()),r==="SELECT"&&!t.hasAttribute("multiple")&&(i.hasAttribute("selected")&&!e.selected&&(i.setAttribute("selected","selected"),i.removeAttribute("selected")),t.selectedIndex=-1)}Gk(i,e,"selected")},INPUT:function(i,e){Gk(i,e,"checked"),Gk(i,e,"disabled"),i.value!==e.value&&(i.value=e.value),e.hasAttribute("value")||i.removeAttribute("value")},TEXTAREA:function(i,e){var t=e.value;i.value!==t&&(i.value=t);var r=i.firstChild;if(r){var n=r.nodeValue;if(n==t||!t&&n==i.placeholder)return;r.nodeValue=t}},SELECT:function(i,e){if(!e.hasAttribute("multiple")){for(var t=-1,r=0,n=i.firstChild,o,s;n;)if(s=n.nodeName&&n.nodeName.toUpperCase(),s==="OPTGROUP")o=n,n=o.firstChild;else{if(s==="OPTION"){if(n.hasAttribute("selected")){t=r;break}r++}n=n.nextSibling,!n&&o&&(n=o.nextSibling,o=null)}i.selectedIndex=t}}},yg=1,Vz=11,qz=3,Kz=8;function Xc(){}function _oe(i){if(i)return i.getAttribute&&i.getAttribute("id")||i.id}function yoe(i){return function(t,r,n){if(n||(n={}),typeof r=="string")if(t.nodeName==="#document"||t.nodeName==="HTML"||t.nodeName==="BODY"){var o=r;r=lo.createElement("html"),r.innerHTML=o}else r=goe(r);else r.nodeType===Vz&&(r=r.firstElementChild);var s=n.getNodeKey||_oe,a=n.onBeforeNodeAdded||Xc,l=n.onNodeAdded||Xc,c=n.onBeforeElUpdated||Xc,d=n.onElUpdated||Xc,u=n.onBeforeNodeDiscarded||Xc,h=n.onNodeDiscarded||Xc,f=n.onBeforeElChildrenUpdated||Xc,m=n.skipFromChildren||Xc,g=n.addChild||function(be,we){return be.appendChild(we)},w=n.childrenOnly===!0,_=Object.create(null),E=[];function I(be){E.push(be)}function N(be,we){if(be.nodeType===yg)for(var X=be.firstChild;X;){var R=void 0;we&&(R=s(X))?I(R):(h(X),X.firstChild&&N(X,we)),X=X.nextSibling}}function U(be,we,X){u(be)!==!1&&(we&&we.removeChild(be),h(be),N(be,X))}function z(be){if(be.nodeType===yg||be.nodeType===Vz)for(var we=be.firstChild;we;){var X=s(we);X&&(_[X]=we),z(we),we=we.nextSibling}}z(t);function Y(be){l(be);for(var we=be.firstChild;we;){var X=we.nextSibling,R=s(we);if(R){var ne=_[R];ne&&_y(we,ne)?(we.parentNode.replaceChild(ne,we),re(ne,we)):Y(we)}else Y(we);we=X}}function le(be,we,X){for(;we;){var R=we.nextSibling;(X=s(we))?I(X):U(we,be,!0),we=R}}function re(be,we,X){var R=s(we);R&&delete _[R],!(!X&&(c(be,we)===!1||(i(be,we),d(be),f(be,we)===!1)))&&(be.nodeName!=="TEXTAREA"?Z(be,we):Wz.TEXTAREA(be,we))}function Z(be,we){var X=m(be),R=we.firstChild,ne=be.firstChild,me,G,Tt,Ft,li;e:for(;R;){for(Ft=R.nextSibling,me=s(R);!X&≠){if(Tt=ne.nextSibling,R.isSameNode&&R.isSameNode(ne)){R=Ft,ne=Tt;continue e}G=s(ne);var Ai=ne.nodeType,Et=void 0;if(Ai===R.nodeType&&(Ai===yg?(me?me!==G&&((li=_[me])?Tt===li?Et=!1:(be.insertBefore(li,ne),G?I(G):U(ne,be,!0),ne=li):Et=!1):G&&(Et=!1),Et=Et!==!1&&_y(ne,R),Et&&re(ne,R)):(Ai===qz||Ai==Kz)&&(Et=!0,ne.nodeValue!==R.nodeValue&&(ne.nodeValue=R.nodeValue))),Et){R=Ft,ne=Tt;continue e}G?I(G):U(ne,be,!0),ne=Tt}if(me&&(li=_[me])&&_y(li,R))X||g(be,li),re(li,R);else{var Ii=a(R);Ii!==!1&&(Ii&&(R=Ii),R.actualize&&(R=R.actualize(be.ownerDocument||lo)),g(be,R),Y(R))}R=Ft,ne=Tt}le(be,ne,G);var pi=Wz[be.nodeName];pi&&pi(be,we)}var ye=t,Pe=ye.nodeType,Ee=r.nodeType;if(!w){if(Pe===yg)Ee===yg?_y(t,r)||(h(t),ye=voe(t,boe(r.nodeName,r.namespaceURI))):ye=r;else if(Pe===qz||Pe===Kz){if(Ee===Pe)return ye.nodeValue!==r.nodeValue&&(ye.nodeValue=r.nodeValue),ye;ye=r}}if(ye===r)h(t);else{if(r.isSameNode&&r.isSameNode(ye))return;if(re(ye,r,w),E)for(var Oe=0,Xe=E.length;Oe{if(t&&t.isSameNode(r)&&pe.isFormInput(r))return pe.mergeFocusedInput(r,n),!1}})}constructor(i,e,t,r,n,o){this.view=i,this.liveSocket=i.liveSocket,this.container=e,this.id=t,this.rootID=i.root.id,this.html=r,this.streams=n,this.streamInserts={},this.targetCID=o,this.cidPatch=Al(this.targetCID),this.pendingRemoves=[],this.phxRemove=this.liveSocket.binding("remove"),this.callbacks={beforeadded:[],beforeupdated:[],beforephxChildAdded:[],afteradded:[],afterupdated:[],afterdiscarded:[],afterphxChildAdded:[],aftertransitionsDiscarded:[]}}before(i,e){this.callbacks[`before${i}`].push(e)}after(i,e){this.callbacks[`after${i}`].push(e)}trackBefore(i,...e){this.callbacks[`before${i}`].forEach(t=>t(...e))}trackAfter(i,...e){this.callbacks[`after${i}`].forEach(t=>t(...e))}markPrunableContentForRemoval(){let i=this.liveSocket.binding(Ty);pe.all(this.container,`[${i}=${py}]`,e=>e.innerHTML=""),pe.all(this.container,`[${i}=append] > *, [${i}=prepend] > *`,e=>{e.setAttribute(Tz,"")})}perform(){let{view:i,liveSocket:e,container:t,html:r}=this,n=this.isCIDPatch()?this.targetCIDContainer(r):t;if(this.isCIDPatch()&&!n)return;let o=e.getActiveElement(),{selectionStart:s,selectionEnd:a}=o&&pe.hasSelectionRange(o)?o:{},l=e.binding(Ty),c=e.binding(ky),d=e.binding(Qk),u=e.binding(tB),h=e.binding(iB),f=e.binding(Hne),m=[],g=[],w=[],_=[],E=null;return this.trackBefore("added",t),this.trackBefore("updated",t,t),e.time("morphdom",()=>{this.streams.forEach(([I,N,U,z])=>{Object.entries(N).forEach(([Y,[le,re]])=>{this.streamInserts[Y]={ref:I,streamAt:le,limit:re,resetKept:!1}}),z!==void 0&&pe.all(t,`[${bg}="${I}"]`,Y=>{N[Y.id]?this.streamInserts[Y.id].resetKept=!0:this.removeStreamChildElement(Y)}),U.forEach(Y=>{let le=t.querySelector(`[id="${Y}"]`);le&&this.removeStreamChildElement(le)})}),$z(n,r,{childrenOnly:n.getAttribute(Ll)===null,getNodeKey:I=>pe.isPhxDestroyed(I)?null:I.id||I.getAttribute&&I.getAttribute(eB),skipFromChildren:I=>I.getAttribute(l)===py,addChild:(I,N)=>{let{ref:U,streamAt:z,limit:Y}=this.getStreamInsert(N);if(U===void 0)return I.appendChild(N);if(pe.putSticky(N,bg,Z=>Z.setAttribute(bg,U)),z===0)I.insertAdjacentElement("afterbegin",N);else if(z===-1)I.appendChild(N);else if(z>0){let Z=Array.from(I.children)[z];I.insertBefore(N,Z)}let le=Y!==null&&Array.from(I.children),re=[];Y&&Y<0&&le.length>Y*-1?re=le.slice(0,le.length+Y):Y&&Y>=0&&le.length>Y&&(re=le.slice(Y)),re.forEach(Z=>{this.streamInserts[Z.id]||this.removeStreamChildElement(Z)})},onBeforeNodeAdded:I=>(pe.maybeAddPrivateHooks(I,u,h),this.trackBefore("added",I),I),onNodeAdded:I=>{I.getAttribute&&this.maybeReOrderStream(I),I instanceof HTMLImageElement&&I.srcset?I.srcset=I.srcset:I instanceof HTMLVideoElement&&I.autoplay&&I.play(),pe.isNowTriggerFormExternal(I,f)&&(E=I),I.getAttribute&&I.getAttribute("name")&&pe.isFormInput(I)&&g.push(I),(pe.isPhxChild(I)&&i.ownsElement(I)||pe.isPhxSticky(I)&&i.ownsElement(I.parentNode))&&this.trackAfter("phxChildAdded",I),m.push(I)},onBeforeElChildrenUpdated:(I,N)=>{if(I.getAttribute(l)===py){let U=Array.from(N.children).map(z=>z.id);Array.from(I.children).filter(z=>{let{resetKept:Y}=this.getStreamInsert(z);return Y}).sort((z,Y)=>{let le=U.indexOf(z.id),re=U.indexOf(Y.id);return le===re?0:leI.appendChild(z))}},onNodeDiscarded:I=>this.onNodeDiscarded(I),onBeforeNodeDiscarded:I=>I.getAttribute&&I.getAttribute(Tz)!==null?!0:!(I.parentElement!==null&&I.id&&pe.isPhxUpdate(I.parentElement,l,[py,"append","prepend"])||this.maybePendingRemove(I)||this.skipCIDSibling(I)),onElUpdated:I=>{pe.isNowTriggerFormExternal(I,f)&&(E=I),w.push(I),this.maybeReOrderStream(I)},onBeforeElUpdated:(I,N)=>{if(pe.maybeAddPrivateHooks(N,u,h),pe.cleanChildNodes(N,l),this.skipCIDSibling(N)||pe.isPhxSticky(I))return!1;if(pe.isIgnored(I,l)||I.form&&I.form.isSameNode(E))return this.trackBefore("updated",I,N),pe.mergeAttrs(I,N,{isIgnored:!0}),w.push(I),pe.applyStickyOperations(I),!1;if(I.type==="number"&&I.validity&&I.validity.badInput)return!1;if(!pe.syncPendingRef(I,N,d))return pe.isUploadInput(I)&&(this.trackBefore("updated",I,N),w.push(I)),pe.applyStickyOperations(I),!1;if(pe.isPhxChild(N)){let z=I.getAttribute(Jc);return pe.mergeAttrs(I,N,{exclude:[xg]}),z!==""&&I.setAttribute(Jc,z),I.setAttribute(Sg,this.rootID),pe.applyStickyOperations(I),!1}return pe.copyPrivates(N,I),o&&I.isSameNode(o)&&pe.isFormInput(I)&&I.type!=="hidden"?(this.trackBefore("updated",I,N),pe.mergeFocusedInput(I,N),pe.syncAttrsToProps(I),w.push(I),pe.applyStickyOperations(I),g.push(I),!1):(pe.isPhxUpdate(N,l,["append","prepend"])&&_.push(new loe(I,N,N.getAttribute(l))),pe.syncAttrsToProps(N),pe.applyStickyOperations(N),N.getAttribute("name")&&pe.isFormInput(N)&&g.push(N),this.trackBefore("updated",I,N),!0)}})}),e.isDebugEnabled()&&Jne(),_.length>0&&e.time("post-morph append/prepend restoration",()=>{_.forEach(I=>I.perform())}),g.forEach(I=>{pe.maybeHideFeedback(n,I,c)}),e.silenceEvents(()=>pe.restoreFocus(o,s,a)),pe.dispatchEvent(document,"phx:update"),m.forEach(I=>this.trackAfter("added",I)),w.forEach(I=>this.trackAfter("updated",I)),this.transitionPendingRemoves(),E&&(e.unload(),Object.getPrototypeOf(E).submit.call(E)),!0}onNodeDiscarded(i){(pe.isPhxChild(i)||pe.isPhxSticky(i))&&this.liveSocket.destroyViewByEl(i),this.trackAfter("discarded",i)}maybePendingRemove(i){return i.getAttribute&&i.getAttribute(this.phxRemove)!==null?(this.pendingRemoves.push(i),!0):!1}removeStreamChildElement(i){this.maybePendingRemove(i)||(i.remove(),this.onNodeDiscarded(i))}getStreamInsert(i){return(i.id?this.streamInserts[i.id]:{})||{}}maybeReOrderStream(i){let{ref:e,streamAt:t,limit:r}=this.getStreamInsert(i);if(t!==void 0){if(pe.putSticky(i,bg,n=>n.setAttribute(bg,e)),t===0)i.parentElement.insertBefore(i,i.parentElement.firstElementChild);else if(t>0){let n=Array.from(i.parentElement.children),o=n.indexOf(i);if(t>=n.length-1)i.parentElement.appendChild(i);else{let s=n[t];o>t?i.parentElement.insertBefore(i,s):i.parentElement.insertBefore(i,s.nextElementSibling)}}}}transitionPendingRemoves(){let{pendingRemoves:i,liveSocket:e}=this;i.length>0&&(e.transitionRemoves(i),e.requestDOMUpdate(()=>{i.forEach(t=>{let r=pe.firstPhxChild(t);r&&e.destroyViewByEl(r),t.remove()}),this.trackAfter("transitionsDiscarded",i)}))}isCIDPatch(){return this.cidPatch}skipCIDSibling(i){return i.nodeType===Node.ELEMENT_NODE&&i.hasAttribute(Jz)}targetCIDContainer(i){if(!this.isCIDPatch())return;let[e,...t]=pe.findComponentNodeList(this.container,this.targetCID);return t.length===0&&pe.childNodeLength(i)===1?e:e&&e.parentNode}indexOf(i,e){return Array.from(i.children).indexOf(e)}},xoe=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Coe=new Set([">","/"," ",` -`," ","\r"]),Soe=new Set(["'",'"']),Gz=(i,e,t)=>{let r=0,n=!1,o,s,a,l,c,d;for(;r"?(n=!1,r+=3):r++;else if(f==="<"&&i.slice(r,r+4)===""?(n=!1,r+=3):r++;else if(f==="<"&&i.slice(r,r+4)==="` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `` in ``",description:"Unexpected text character `%c`. Only use text in `